wallet_getCapabilities
Get wallet capabilities for supported chains. Implements EIP-5792 for capability discovery.
Authentication Required: No
Request
await jaw.provider.request({
method: 'wallet_getCapabilities',
params: ['0x1234...', ['0x1', '0x14a34']],
});Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | No | Account address |
chainIds | string[] | No | Filter by specific chain IDs (hex) |
Example
["0x1234567890123456789012345678901234567890", ["0x1", "0x14a34"]]Or without filtering:
[]Response
Returns capabilities per chain as an object keyed by chain ID (hex).
Type: Record<string, object>
Example
{
"0x1": {
"atomicBatch": { "supported": true },
"atomic": { "status": "supported" },
"paymasterService": { "supported": true },
"permissions": { "supported": true },
"feeToken": {
"supported": true,
"mode": "dynamic"
}
},
"0x14a34": {
"atomicBatch": { "supported": true },
"atomic": { "status": "supported" },
"paymasterService": { "supported": true },
"permissions": { "supported": true },
"feeToken": {
"supported": true,
"tokens": [
{
"uid": "usdc-base-sepolia",
"symbol": "USDC",
"address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"interop": true,
"decimals": 6,
"feeToken": true
}
]
}
}
}Capabilities Explained
atomicBatch
Value: { supported: true }
Indicates support for wallet_sendCalls - the ability to send multiple transactions atomically (all succeed or all fail).
atomic
Value: { status: "supported" }
Indicates atomic transaction execution where all operations in a batch are guaranteed to succeed or fail together.
paymasterService
Value: { supported: true }
Indicates support for ERC-7677 paymaster service - gasless transactions sponsored by paymasters.
permissions
Value: { supported: true }
Indicates support for the permission system (wallet_grantPermissions, wallet_revokePermissions).
feeToken
Dynamic value: { supported: true, mode: "dynamic" }
Static value: { supported: true, tokens: [...] }
Indicates support for paying network fees with tokens. Each chain explicitly chooses one of two modes:
dynamic: the wallet discovers candidate tokens and asks the paymaster which ones can be quoted. The capability does not include a token catalogue.- Static allowlist: the capability includes the tokens offered by the wallet.
| Field | Type | Description |
|---|---|---|
supported | boolean | Whether fee token selection is supported |
mode | string | "dynamic" when tokens are discovered at runtime |
tokens | array | Static list of available fee tokens |
tokens[].uid | string | Unique identifier for the token |
tokens[].symbol | string | Token symbol (e.g., "ETH", "USDC") |
tokens[].address | string | Token contract address (zero address for native token) |
tokens[].interop | boolean | Whether the token supports cross-chain interoperability |
tokens[].decimals | number | Token decimal places |
tokens[].feeToken | boolean | Whether this token can be used for gas fees |
mode and tokens are mutually exclusive. Clients should discover and quote
tokens when mode is "dynamic", and use the supplied list otherwise.
Behavior
- Can be called without authentication
- Returns capabilities for all supported chains by default
- Filters by chain IDs if
chainIdsparameter provided - When
showTestnetsis disabled (default), only mainnet chains are returned - Chains may also expose a
chainMetadatacapability: a free-form metadata object for the chain (the internalrpcentry is stripped server-side, so provider URLs are never exposed) - The response keys double as the list of supported chains — use them to enumerate which chains the wallet supports; there is no separate chain-listing method
Example
const capabilities = await jaw.provider.request({
method: 'wallet_getCapabilities',
});Related Methods
- wallet_sendCalls - Use atomic batch capability
- wallet_grantPermissions - Use permission capability