Skip to content

wallet_getCapabilities

Allows an application to request capabilities from a wallet (e.g. batch transactions, paymaster communication).

Example Usage

provider.request({
  method: 'wallet_getCapabilities',
  params: ['0xd46e8dd67c5d32be8058bb8eb970870f07244567']
})
{
"0x2105": {
atomicBatch: {
supported: true,
}
}
}

Parameters

  • [Address]

An array with a single element: the wallet address you are requesting the capabilities of.

Returns

Per chain ID (in hex), capabilities are returned in key/value pairs, with the key naming a capability and a value conforming to a shape defined for that name.