Look up the on-chain market binding

GET/api/v1/markets/{marketId}/chain-bindingPublic

Trading APIprice E4 · size E2 · amount E6 (integers)YES | NO

The only read path for the on-chain Market object id you sign into OrderV1. Only a 200 permits signed order placement; the four responses — 200, 404 (chain_binding_not_found), 409 (chain_binding_not_active, with status carrying the raw state) and 503 (chain_binding_source_unavailable) — are deliberately kept apart, and no failure returns a placeholder value. A 200 may be cached (a binding is immutable once ACTIVE), but do not cache 404/409. packageId is the address of the package that created the market, not the package_id in the signing domain (that one comes from the on-chain ProtocolConfig); account_epoch is not served here — read it from the chain directly.

Path parameters

  • marketIdstringpathrequired

    Engine market id (read endpoints do not accept a slug unless that endpoint says otherwise)

    Example"mkt-0001"

Response

200Binding is ACTIVE
  • marketIdstring

    Off-chain market id

    Example"mkt-0001"

  • onchainMarketIdstring

    On-chain Market object id (the market_id you sign into OrderV1)

    Example"onchainMarket_01K5H2M3N7"

  • packageIdstring

    Address of the package that created the market; the signing domain's package_id comes from the on-chain ProtocolConfig, and the two differ

    Example"0x2b7f…a903"

  • statusACTIVE | PENDING | FAILED

    Only ACTIVE permits signed order placement

    Example"ACTIVE"

Switch status codes in the response example to view errors. For all codes, see the Errors page.