Function Signature
Description
Execute a transfer using previously approved delegated authority. The caller must have been granted delegation approval by thefromAddress owner.
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") |
fromAddress | String | Yes | The owner’s address (who approved the delegation) |
toAddress | String | Yes | The recipient’s address |
amount | String | Yes | The amount to transfer (e.g., "50.0") |
Returns
DelegationTransferFromResponse - 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 | DelegationTransferFromMetadata | Transfer metadata with chain ID, delegate address, amount, etc. |
Example
EVM
Solana
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
DELEGATION_FAILED | The delegated transfer failed |
INSUFFICIENT_ALLOWANCE | The delegation allowance is insufficient |