Skip to main content
Defined in the Base Account SDK
Returns all permissions available to a given spender for a user’s Base Account on a specific chain.

Parameters

address
required
User’s Base Account address to query.
number
required
Target chain ID.
address
required
Spender address you intend to use for spending.
EIP1193Provider
required
EIP-1193 compliant Ethereum provider instance. Get this from sdk.getProvider().

Returns

SpendPermission[]
Array of spend permissions matching the query.

Error Handling

Always wrap the call in a try-catch block to handle these errors gracefully.