Returns permissions for a user’s Base Account on a specific chain. If a
spender is provided, returns only permissions for that spender. Otherwise, returns all permissions for the account.Parameters
address
required
User’s Base Account address to query.
number
required
Target chain ID.
address
Optional. Spender address you intend to use for spending. If not provided, returns all permissions for the account.
EIP1193Provider
Optional. EIP-1193 compliant Ethereum provider instance. Get this from
sdk.getProvider(). If not provided, uses the default SDK provider.Returns
SpendPermission[]
Array of spend permissions matching the query.