Function Signature
Description
Grant a delegate address 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, "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" for Solana) |
token | String | Yes | Token symbol or address (e.g., "USDC") |
delegateAddress | String | Yes | The address to delegate to |
amount | String | Yes | The amount to delegate (e.g., "100.0") |
Returns
DelegationApproveResponse - 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 | DelegationApproveMetadata? | Approval metadata with chain ID, delegate amount, delegate address, token symbol, etc. |
Example
EVM
Solana
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
DELEGATION_FAILED | The delegation approval failed |