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