POST
Transfer🔐 Auth RequiredTransfer tokens to another address (L1).
Request
| Parameter | Type |
|---|---|
fromoptional | Address |
tooptional | Address |
tokenoptional | TokenType |
amountoptional | Balance |
nonceoptional | uint64 |
gas_limitoptional | uint64 |
gas_priceoptional | uint64 |
signatureoptional | Signature |
pubkeyoptional | PublicKey |
Response
| Field | Type |
|---|---|
success | bool |
tx_hash | Hash |
new_balance | Balance |
message | string |
Example
Requesttypescript
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);
Responsejson
{// Response fields}