Then transfer as a taker or make a market. Terms: concepts.

Check the deployment

  • /health answers 503 while chain observations, operator gas, the relay backlog or escrow integrity is not ready.
  • Pin the operator, escrows, tokens and timings from the deployment values, never from /v1/info or /v1/venues.

Sign in

  1. POST /v1/auth/challenge with {"address":"0xMASTER"}.
  2. Check that message names APP_ORIGIN, then sign it with personal_sign.
  3. Send {address, nonce, signature} to POST /v1/auth/verify.
The returned token is the master session. Every step below sends it as Authorization: Bearer $TOKEN.

Set up venue accounts

Link an account on each venue you use, then run its setup steps. The account is the address that owns it; on Polymarket, the signer EOA; on GMX, the owner of the GMX Account. POST /v1/accounts/link with {"venue":"polymarket","address":"0x…"}. An address other than the master also signs the link challenge (personal_sign) and adds its nonce and signature. On Lighter, the link records the address’s master account index as venue_wallet.

Setup steps

GET /v1/accounts/{venue}/setup lists the account’s steps, read from the venue now; ready once all are done. For each required step:
  1. POST /v1/accounts/{venue}/setup/{step} without a body. It returns to_sign: kind, signer, ref, and typed_data or message.
  2. Check it (signing) and sign it with the account: typed_data as EIP-712, message with personal_sign.
  3. Post {"ref": "…", "signature": "0x…"} to the same path.
  4. A pending step is relayed: read the setup again until done.
A done step turns required again, with a reason, when the venue no longer shows it, it expires (the Aster agent after 365 days) or LaMarge’s escrow, agent or key changes. A call that needs it answers 422 SETUP_REQUIRED with its venue and step.