wallet_getCapabilities ยท EIP-5792
Skip to content

wallet_getCapabilities

Allows an application to query what capabilities a wallet supports. This method should return a 4100 Unauthorized error if the user has not authorized a connection between the application and the requested address.

Note that the capabilities shown below are for illustrative purposes. We expect the community to align on the definition of additional capabilities in separate ERCs over time.

Example Usage

provider.request({
  method: 'wallet_getCapabilities',
  params: ['0xd46e8dd67c5d32be8058bb8eb970870f07244567', ['0x2105', '0x14A34']]
})
{
"0x0": {
"flow-control": {
"supported": true
}
},
"0x2105": {
"paymasterService": {
"supported": true
},
"sessionKeys": {
"supported": true
}
},
"0x14A34": {
"auxiliaryFunds": {
"supported": true
}
}
}

Parameters

  • [Address, string[]]

An array with:

  1. The wallet address to query capabilities for
  2. Optional array of chain IDs in hexadecimal format to query capabilities for

Returns

  • Record<string, Record<string, any>>

An object where:

  • The top-level keys are chain IDs in hexadecimal format
  • Chain ID "0x0" indicates capabilities supported across all chains
  • The values are objects mapping capability names to capability-specific parameters
  • Each capability's parameters are defined in that capability's specification