Skip to content
LogoLogo

getCapabilities

Extract capabilities (grouped by chain ID) that a connected wallet supports (e.g. paymasters, session keys, etc).

Read more

Usage

import { ,  } from './config'
 
const  = await .getCapabilities({
  ,
})
}

Account Hoisting

If you do not wish to pass an account to every getCapabilities, you can also hoist the Account on the Wallet Client (see config.ts).

Learn more.

import {  } from './config'
 
const  = await .getCapabilities()

Returns

WalletCapabilities

Capabilities of the wallet.

Parameters

account

  • Type: Address

The account to get capabilities for.

example.ts
const  = await .getCapabilities({
  : '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266', 
})

chainId

  • Type: number

The chain ID to get capabilities for.

example.ts
const  = await .getCapabilities({
  : '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
  : 8453, 
})