POST
BatchOrders🔐 AuthPlace, amend, or cancel multiple orders atomically.
Request
| Parameter | Type | Description |
|---|---|---|
addressoptional | Address | |
ordersoptional | BatchOrderItem[] | |
nonceoptional | uint64 | Single nonce for entire batch |
signatureoptional | Signature | Signs all orders together |
pubkeyoptional | PublicKey |
Response
| Field | Type | Description |
|---|---|---|
success | bool | |
results | BatchOrderResult[] | |
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.batchOrders({ /* params */ });console.log(response);
Response
{// Response fields}