Function Signature
Description
Send tokens from your Portal wallet to another address. This is the recommended method for simple token transfers.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | String | Yes | The chain ID in CAIP-2 format |
to | String | Yes | The recipient address |
token | String | Yes | Token address or "NATIVE" for native token |
amount | String | Yes | Amount to send (in human-readable format) |
signatureApprovalMemo | String | No | Optional memo for transaction approval |
sponsorGas | bool | No | Whether to use gas sponsorship (Account Abstraction) |
Returns
String - The transaction hash.
Example
Send ERC-20 Token
With Gas Sponsorship Control
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
INSUFFICIENT_BALANCE | Not enough tokens to send |
TRANSACTION_FAILED | The transaction failed |