POST
Withdraw🔐 AuthWithdraw tokens from exchange to L1 wallet.
Request
| Parameter | Type | Description |
|---|---|---|
addressoptional | Address | |
tokenoptional | TokenType | |
amountoptional | Balance | |
nonceoptional | uint64 | |
signatureoptional | Signature | |
pubkeyoptional | PublicKey |
Response
| Field | Type | Description |
|---|---|---|
success | bool | |
new_l1_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.withdraw({ /* params */ });console.log(response);
Response
{// Response fields}