Agara

Submit an account batch

POST
/trade/v1/batches

Authorization

Authorization
Required
Bearer <token>

Personal access token issued from the web app's Settings → API tokens page. Send as Authorization: Bearer agt_….

In: header

Scope: batches:submit

Request Body

application/jsonRequired

deadline_unix_seconds
Required
integer

Signature deadline, unix seconds.

Minimum: 0Format: "int64"

heals_batch_hashstring | null

The FAILED_DIVERGENT batch this batch heals, if any.

ops
Required
array<object | object | object | object | object | object | object>

Typed ops in execution order.

seq
Required
integer

Account seq the signature binds. The live seq, or the next one above it when batches are already queued on this wallet; it may not skip a seq that no batch holds.

Minimum: 0Format: "int64"

signature
Required
string

Holder signature over the batch digest, 0x hex.

curl -X POST "https://app.agara.xyz/trade/v1/batches" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "deadline_unix_seconds": 1794700800,
    "ops": [
      {
        "condition_id": "0x21742633143463906290569050155826241533067272736897614950488156847949938836455",
        "kind": "MERGE",
        "market_id": "9b2f9c6e-0000-0000-0000-000000000000",
        "shares_micro": 1000000
      }
    ],
    "seq": 7,
    "signature": "0x4f3a8e9b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
  }'

Batch accepted; durable execution started.

{
  "batch_hash": "string"
}