Function Signature
Description
Remove a delegate’s permission to transfer tokens on your behalf. Works across EVM and Solana chains.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | String | Yes | CAIP-2 chain ID (e.g., "eip155:11155111" for Sepolia) |
token | String | Yes | Token symbol or address (e.g., "USDC") |
delegateAddress | String | Yes | The address to revoke delegation from |
Returns
DelegationRevokeResponse - An object containing:
| Property | Type | Description |
|---|---|---|
transactions | List<DelegationConstructedTransaction?>? | Array of constructed transactions (for EVM chains) |
encodedTransactions | List<String?>? | Array of encoded transaction strings (for Solana) |
metadata | DelegationRevokeMetadata? | Revocation metadata with chain ID, revoked address, token symbol |
Example
EVM
Solana
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
DELEGATION_FAILED | The delegation revocation failed |