Skip to content
Alchemy Logo

getCapabilities

function getCapabilities(client, params?): Promise<GetCapabilitiesResult>;

Defined in: packages/wallet-apis/src/actions/getCapabilities.ts:31

Gets the capabilities supported by the wallet for the given account. Delegates to viem's getCapabilities and renames paymasterService to paymaster for consistency with the SDK's public API.

const capabilities = await client.getCapabilities({
  account: "0x1234...",
});
// { paymaster: { supported: true }, atomic: { status: "supported" } }

ParameterTypeDescription

client

InnerWalletApiClient

The wallet API client to use for the request

params?

GetCapabilitiesParams

Optional parameters

Promise<GetCapabilitiesResult>

The capabilities for the given chain

Was this page helpful?