Skip to content
LogoLogo

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

NameTypeRequiredDescription
addressstringNoAccount address
chainIdsstring[]NoFilter 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.
FieldTypeDescription
supportedbooleanWhether fee token selection is supported
modestring"dynamic" when tokens are discovered at runtime
tokensarrayStatic list of available fee tokens
tokens[].uidstringUnique identifier for the token
tokens[].symbolstringToken symbol (e.g., "ETH", "USDC")
tokens[].addressstringToken contract address (zero address for native token)
tokens[].interopbooleanWhether the token supports cross-chain interoperability
tokens[].decimalsnumberToken decimal places
tokens[].feeTokenbooleanWhether 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 chainIds parameter provided
  • When showTestnets is disabled (default), only mainnet chains are returned
  • Chains may also expose a chainMetadata capability: a free-form metadata object for the chain (the internal rpc entry 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',
});