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