Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.startale.com/llms.txt

Use this file to discover all available pages before exploring further.

Returns the capability map for the connected account on one or more chains. Per EIP-5792.

Request

const caps = await provider.request({
  method: 'wallet_getCapabilities',
  params: [address, ['0x74c']], // optional chain filter
})

Parameters

params[0]
`0x${string}`
required
Account address.
params[1]
`0x${string}`[]
Optional. Restrict the response to specific chain IDs (hex-encoded). Omit to return capabilities for all chains available in the wallet store.

Returns

{
  '0x74c': {
    atomic: { status: 'supported' },
    paymasterService: { supported: true },
    // ...
  },
}
A map keyed by hex chain ID.

Errors

CodeCause
4100Wallet not connected