POST
Transfer🔐 AuthTransfer tokens to another address (L1).
Request
| Parameter | Type | Description |
|---|---|---|
fromoptional | Address | |
tooptional | Address | |
tokenoptional | TokenType | |
amountoptional | Balance | |
nonceoptional | uint64 | |
gas_limitoptional | uint64 | 21000 for simple transfer |
gas_priceoptional | uint64 | Gas price in raw |
signatureoptional | Signature | |
pubkeyoptional | PublicKey |
Response
| Field | Type | Description |
|---|---|---|
success | bool | |
tx_hash | Hash | |
new_balance | Balance | |
message | string |
Example
Request
import { RealmClient } from '@realm/sdk';const client = new RealmClient('https://api.realm.com');await client.connect(wallet);const response = await client.transfer({ /* params */ });console.log(response);
Response
{// Response fields}