Retrieves permissions associated with a specific account, chain, and spender. This method excludes permissions that have expired or been revoked, returning only active spend permissions.
Parameters
The address of the account whose permissions are being queried.
The ID of the blockchain, in hexadecimal format.
The entity granted with the permission to spend the account’s funds.
Optional pagination settings for the request.
Returns
The permissions response object.
Error Handling
Code | Message | Description |
---|---|---|
4001 | User rejected the request | User denied the permission request |
4100 | Requested method not supported | The method is not supported by the wallet |
-32602 | Invalid params | Invalid account, chainId, or spender parameters |
Ensure the
chainId
, account
, and spender
parameters are correctly formatted and valid for the blockchain you are querying.