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.

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.