MMSTINTELLIGENCE TOKEN
KO
Launch app
MST HomeDOCUMENTATION
MST / DOCUMENTATION

API reference

Requests, authorization, responses and integration examples for the current HTTP API.

HTTP · REST + JSON-RPC

Integrate with the implemented routes

This is the current local Rust API contract. It provides no API-key issuance or server-side wallet signing. Read → review → wallet signing/sending → track the hash.

Download OpenAPI3.1.0 · JSON

Base URLs and execution model

Rust API
http://127.0.0.1:9411
Web proxy
/api/perps/* → /perps/*
/api/nft-market/* → /market/*

Call Core/Demo routes directly on the Rust base URL. AMM uses the @mst/contracts/amm SDK and Uniswap v4 contracts directly; there is no /amm/quote HTTP route. A hosted public API endpoint has not been designated.

Read perpetual status
curl 'http://127.0.0.1:9411/perps/status?chainId=31337'
Read public NFT listings
curl 'http://127.0.0.1:9411/market/orders?chainId=31337&limit=12&sort=newest'
Read-only RPC
curl 'http://127.0.0.1:9411/rpc?chainId=31337' \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'

Authorization, precision and errors

Signatures and permissions

NFT listings use Seaport EIP-712 signatures; order-book save/publish/hide/private reads use an EIP-191 challenge message. A challenge is single-use, expires in 5 minutes, and binds the account, action, order, chain and genesis. Mock-oracle and demo-engine POST also check Origin.

Numbers and time

uint256 amounts are decimal strings. Perpetual USD values use 30 decimals; token amounts use the registered token decimals; index prices use 30 − indexTokenDecimals. executionFee/value are wei; times are Unix seconds. Mock pricesUsd are human USD decimal strings (up to 8 fractional digits).

The request body limit is 65,536 bytes. Strict DTOs reject unknown fields. CORS allows the configured web origin. Status codes: 400/422 for input or extraction errors; 403 for authorization or Origin errors; 404 for a missing resource or disabled demo; 409 for a chain, original-state or readiness conflict; 503 for an unconfigured or unavailable service. Framework errors can be plain text; JSON-RPC uses its own error object.

The current NFT policy allows one registered ERC721 at a fixed registered-MST price: a full open order (orderType=0), zero zone/conduit, 1–2 consideration items and a maximum duration of 7 days. Partial fills, auctions and arbitrary collection orders are outside this policy.

Endpoints

31 / 31

* Required field. Expand a row for query, body and authorization requirements.

GET/api/commerceSale and reservation state

Read-only API on the app web server. Returns sale, fees and tariffs; optional account includes recent requests and lots. Chain integers are decimal strings.

FieldLocation / typeRequirement
chainIdquery
31337 | 91342
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
accountquery
Address
EVM address (20 bytes).

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

POST/api/commerce/usageSettle product usage

App web server; requires a product-scoped Bearer server key. Maximum8192-byte body, all values strings. Settles only the reserved service/operator scope. Retry a successful task reference with identical lot/units for the same canonical receipt and no second burn. Conflicting reuse409; unauthorized401. Does not execute an external task.

Requires a product-scoped server Bearer key. Keep it out of browser code.

JSON request body · CommerceUsage

FieldTypeDetails
chainId *31337 | 91342
product *meshcode | meshclan | meshlaw | aidocx | arise
lotId *string
units *string
reference *string
Show request JSON Schema
CommerceUsage
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "string",
      "enum": [
        "31337",
        "91342"
      ]
    },
    "product": {
      "type": "string",
      "enum": [
        "meshcode",
        "meshclan",
        "meshlaw",
        "aidocx",
        "arise"
      ]
    },
    "lotId": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}$"
    },
    "units": {
      "type": "string",
      "pattern": "^(?:[1-9][0-9]{0,5}|1000000)$"
    },
    "reference": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9._:@-]+$"
    }
  },
  "required": [
    "chainId",
    "product",
    "lotId",
    "units",
    "reference"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/healthAPI health

Reports RPC, chain and demo-engine configuration; this is separate from contract readiness.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · Health
Health
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "status": {
      "const": "ok"
    },
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "rpcConfigured": {
      "type": "boolean"
    },
    "rpcProviders": {
      "type": "integer",
      "minimum": 0
    },
    "rpcChains": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0
      }
    },
    "demoOracle": {
      "type": "boolean"
    },
    "engineConfigured": {
      "type": "boolean"
    }
  },
  "required": [
    "status",
    "chainId",
    "rpcConfigured",
    "rpcProviders",
    "rpcChains",
    "demoOracle",
    "engineConfigured"
  ]
}
POST/rpcRead-only JSON-RPC

Put chainId in the query. Only12 read methods are allowed; batches contain1–20 requests with unique IDs. Sending/signing methods return403.

FieldLocation / typeRequirement
chainIdquery
integer
Optional; defaults to the configured primary chain.

JSON request body · RpcInput

Single JSON-RPC request or batch array.

Show request JSON Schema
RpcInput
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/RpcRequest"
    },
    {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "$ref": "#/components/schemas/RpcRequest"
      }
    }
  ],
  "description": "Batch IDs must be unique."
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/perps/statusPerpetual readiness and contracts

Inspect ready/readReady/reasons, registered contracts and observation, including oracle/keeper readiness.

App same-origin proxy: /api/perps/status

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · PerpsStatus
PerpsStatus
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "ready": {
      "type": "boolean"
    },
    "readReady": {
      "type": "boolean"
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "capabilities": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "keeperBlock": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "keeperSource": {
      "type": "string"
    },
    "keeperIssuedAt": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "keeperValidUntil": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "sourceCommit": {
      "type": "string"
    },
    "contracts": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "wrappedNativeToken": {
      "$ref": "#/components/schemas/Address"
    },
    "observation": {
      "$ref": "#/components/schemas/PerpsObservation"
    }
  },
  "required": [
    "chainId",
    "ready",
    "readReady",
    "reasons",
    "capabilities",
    "keeperBlock",
    "keeperSource",
    "keeperIssuedAt",
    "keeperValidUntil",
    "sourceCommit",
    "contracts",
    "wrappedNativeToken",
    "observation"
  ]
}
GET/perps/marketsMarkets

Returns registered original GMX markets, tokens, precision and observations.

App same-origin proxy: /api/perps/markets

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · PerpsMarkets
PerpsMarkets
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "observation": {
      "$ref": "#/components/schemas/PerpsObservation"
    }
  },
  "required": [
    "chainId",
    "rows",
    "observation"
  ]
}
GET/perps/accountAccount orders and positions

Reads account orders and positions at a canonical observation block.

App same-origin proxy: /api/perps/account

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
account *query
Address
EVM address (20 bytes).
cursorquery
integer
Account item offset; default0. Accepted but unused by history.
limitquery
integer
Default20 for account;50 for history.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/perps/riskPosition risk review

Reads the original position by positionKey. Use estimate=true to request estimates.

App same-origin proxy: /api/perps/risk

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
account *query
Address
EVM address (20 bytes).
positionKey *query
Bytes32
Original GMX position key.
estimatequery
boolean
Default:false.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/perps/claimsClaimable amounts

Reads funding/collateral claim candidates and original observations.

App same-origin proxy: /api/perps/claims

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
account *query
Address
EVM address (20 bytes).
cursorquery
integer
Optional scan cursor.
spanquery
integer
Scan span; default4096.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

POST/perps/planUnsigned transaction plan

Reviews create/update/cancel/claimFunding/claimCollateral. Returns transaction, approval, riskReview, observation and expiry; the server does not sign/send. Valid through observation block+2 or time+30 seconds.

App same-origin proxy: /api/perps/plan

JSON request body · PerpsIntent

FieldTypeDetails
chainId *integer
account *Address
market *Address
collateralToken *Address
isLong *boolean
action *create | update | cancel | claimFunding | claimCollateral
orderType0 | 2 | 3 | 4 | 5 | 6Create requires2 market increase,3 limit increase,4 market decrease,5 TP or6 SL. Default0 is not a create order. Default: 0
orderKeyBytes32 | null
sizeDeltaUsdUint256 Default: "0"
collateralDeltaAmountUint256 Default: "0"
acceptablePriceUint256 Default: "0"
triggerPriceUint256 Default: "0"
minOutputUsdUint256 Default: "0"
executionFeeUint256 Default: "0"
validFromTimeUint256 Default: "0"
timeKeyUint256 Default: "0"
autoCancelboolean Default: false
nativeCollateralboolean Default: false
receiveNativebooleanOnly supported new decrease/TP/SL with a WNT output pool. Default: false
closePositionboolean Default: false
Show request JSON Schema
PerpsIntent
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "market": {
      "$ref": "#/components/schemas/Address"
    },
    "collateralToken": {
      "$ref": "#/components/schemas/Address"
    },
    "isLong": {
      "type": "boolean"
    },
    "action": {
      "type": "string",
      "enum": [
        "create",
        "update",
        "cancel",
        "claimFunding",
        "claimCollateral"
      ]
    },
    "orderType": {
      "type": "integer",
      "enum": [
        0,
        2,
        3,
        4,
        5,
        6
      ],
      "default": 0,
      "description": "Create requires2 market increase,3 limit increase,4 market decrease,5 TP or6 SL. Default0 is not a create order."
    },
    "orderKey": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/Bytes32"
        },
        {
          "type": "null"
        }
      ]
    },
    "sizeDeltaUsd": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "collateralDeltaAmount": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "acceptablePrice": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "triggerPrice": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "minOutputUsd": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "executionFee": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "validFromTime": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "timeKey": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "autoCancel": {
      "type": "boolean",
      "default": false
    },
    "nativeCollateral": {
      "type": "boolean",
      "default": false
    },
    "receiveNative": {
      "type": "boolean",
      "default": false,
      "description": "Only supported new decrease/TP/SL with a WNT output pool."
    },
    "closePosition": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "chainId",
    "account",
    "market",
    "collateralToken",
    "isLong",
    "action"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · PerpsPlan
PerpsPlan
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "intent": {
      "$ref": "#/components/schemas/PerpsIntent"
    },
    "transaction": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "to": {
          "$ref": "#/components/schemas/Address"
        },
        "data": {
          "$ref": "#/components/schemas/HexBytes"
        },
        "value": {
          "$ref": "#/components/schemas/Uint256"
        },
        "gas": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/Uint256"
            },
            {
              "type": "null"
            }
          ]
        },
        "gasPrice": {
          "$ref": "#/components/schemas/Uint256"
        }
      },
      "required": [
        "to",
        "data",
        "value",
        "gas",
        "gasPrice"
      ]
    },
    "approval": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "requiresApproval": {
      "type": "boolean"
    },
    "executionFee": {
      "$ref": "#/components/schemas/Uint256"
    },
    "minimumExecutionFee": {
      "$ref": "#/components/schemas/Uint256"
    },
    "estimatedPrice": {},
    "riskReview": {},
    "orderCost": {},
    "receiver": {
      "$ref": "#/components/schemas/Address"
    },
    "positionKey": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "observation": {
      "$ref": "#/components/schemas/PerpsObservation"
    },
    "validUntilBlock": {
      "type": "integer",
      "minimum": 0
    },
    "validUntilTime": {
      "type": "integer",
      "minimum": 0
    },
    "usdDecimals": {
      "const": 30
    }
  },
  "required": [
    "id",
    "chainId",
    "account",
    "intent",
    "transaction",
    "approval",
    "requiresApproval",
    "executionFee",
    "minimumExecutionFee",
    "estimatedPrice",
    "riskReview",
    "orderCost",
    "receiver",
    "positionKey",
    "observation",
    "validUntilBlock",
    "validUntilTime",
    "usdDecimals"
  ]
}
GET/perps/historyPerpetual history

Account history from the persistent journal. limit defaults to50; this handler currently does not use cursor.

App same-origin proxy: /api/perps/history

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
account *query
Address
EVM address (20 bytes).
cursorquery
integer
Account item offset; default0. Accepted but unused by history.
limitquery
integer
Default20 for account;50 for history.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

POST/perps/transactionsTrack a submitted transaction

Registers an already-submitted wallet transaction hash and observes its receipt/status; it does not broadcast.

App same-origin proxy: /api/perps/transactions

JSON request body · PerpsTransaction

FieldTypeDetails
chainId *integer
account *Address
hash *Bytes32
Show request JSON Schema
PerpsTransaction
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "hash": {
      "$ref": "#/components/schemas/Bytes32"
    }
  },
  "required": [
    "chainId",
    "account",
    "hash"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/perps/mock-oracleLocal mock oracle state

Reads desired/applied revisions, prices and faults for explicit local-only control, separate from real feeds.

Local demo onlyPermalink

App same-origin proxy: /api/perps/mock-oracle

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

POST/perps/mock-oracleRequest local mock prices

Send the current expectedRevision and a complete registered-token price map. Checks Origin, saves a command for the keeper, then returns before application. Re-read revisions to confirm application.

Local demo onlyPermalink

App same-origin proxy: /api/perps/mock-oracle

Origin header must match the configured web origin. Default: http://127.0.0.1:3177

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.

JSON request body · MockOracleChange

FieldTypeDetails
expectedRevision *integer
pricesUsd *objectComplete map of registered token symbols to human USD decimal strings:greater than0, at most1,000,000,000; at most8 fractional digits and24 characters.
faultnone | stale | invalid-price Default: "none"
faultSymbolstring | null
Show request JSON Schema
MockOracleChange
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "expectedRevision": {
      "type": "integer",
      "minimum": 0
    },
    "pricesUsd": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 24,
        "pattern": "^[0-9]+(\\.[0-9]{1,8})?$"
      },
      "description": "Complete map of registered token symbols to human USD decimal strings:greater than0, at most1,000,000,000; at most8 fractional digits and24 characters."
    },
    "fault": {
      "type": "string",
      "enum": [
        "none",
        "stale",
        "invalid-price"
      ],
      "default": "none"
    },
    "faultSymbol": {
      "anyOf": [
        {
          "type": "string",
          "description": "Required registered symbol for a fault; absent/null for none."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "expectedRevision",
    "pricesUsd"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/market/statusNFT market status

Returns registry, observation and meshpet-fixed-v1 policy for registered MeshPet/MST fixed-price trades.

App same-origin proxy: /api/nft-market/status

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
cursorquery
string
Opaque pagination cursor from nextCursor.
limitquery
integer
Page size:1–50; default12.
sortquery
newest | priceAsc | priceDesc
Default:newest.
sellerquery
Address
EVM address (20 bytes).
ownerquery
Address
EVM address (20 bytes).

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · MarketStatus
MarketStatus
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "registry": {
      "type": "object",
      "additionalProperties": true
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    },
    "policy": {
      "const": "meshpet-fixed-v1"
    }
  },
  "required": [
    "registry",
    "observation",
    "policy"
  ]
}
POST/market/challengesOrder-book signing challenge

Issues a five-minute, single-use nonce/message. personal_sign (EIP-191) the exact returned message and pass nonce/signature as authorization. This is separate from the Seaport listing EIP-712 signature.

App same-origin proxy: /api/nft-market/challenges

JSON request body · ChallengeRequest

FieldTypeDetails
chainId *integer
account *Address
action *save | publish | hide | read
orderHash *Bytes32Zero hash only for read; nonzero for save/publish/hide.
Show request JSON Schema
ChallengeRequest
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "action": {
      "type": "string",
      "enum": [
        "save",
        "publish",
        "hide",
        "read"
      ]
    },
    "orderHash": {
      "$ref": "#/components/schemas/Bytes32",
      "description": "Zero hash only for read; nonzero for save/publish/hide."
    }
  },
  "required": [
    "chainId",
    "account",
    "action",
    "orderHash"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · ChallengeResponse
ChallengeResponse
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "challenge": {
      "$ref": "#/components/schemas/Challenge"
    },
    "registry": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "challenge",
    "registry"
  ]
}
GET/market/ordersPublic listings

Returns public listings, nextCursor and observation.

App same-origin proxy: /api/nft-market/orders

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
cursorquery
string
Opaque pagination cursor from nextCursor.
limitquery
integer
Page size:1–50; default12.
sortquery
newest | priceAsc | priceDesc
Default:newest.
sellerquery
Address
EVM address (20 bytes).
ownerquery
Address
EVM address (20 bytes).

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · MarketPage
MarketPage
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    }
  },
  "required": [
    "items",
    "nextCursor",
    "observation"
  ]
}
POST/market/ordersSave a signed private listing

Stores a verified Seaport order with save-challenge authorization. Initially private; publish separately. Does not fulfill on-chain.

App same-origin proxy: /api/nft-market/orders

JSON request body · SaveOrder

FieldTypeDetails
chainId *integer
order *SeaportOrder
authorization *Authorization
Show request JSON Schema
SaveOrder
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "order": {
      "$ref": "#/components/schemas/SeaportOrder"
    },
    "authorization": {
      "$ref": "#/components/schemas/Authorization"
    }
  },
  "required": [
    "chainId",
    "order",
    "authorization"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · MarketItem
MarketItem
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "item": {
      "type": "object",
      "additionalProperties": true
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    }
  },
  "required": [
    "item",
    "observation"
  ]
}
POST/market/orders/privateRead my private listings

Uses a challenge with action=read and the zero orderHash. Cannot read another seller’s private listings.

App same-origin proxy: /api/nft-market/orders/private

JSON request body · PrivateOrders

FieldTypeDetails
chainId *integer
authorization *Authorization
cursorstring | null
limitinteger | null
sortnewest | priceAsc | priceDesc | null
Show request JSON Schema
PrivateOrders
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "authorization": {
      "$ref": "#/components/schemas/Authorization"
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 50,
          "default": 12
        },
        {
          "type": "null"
        }
      ]
    },
    "sort": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "newest",
            "priceAsc",
            "priceDesc"
          ],
          "default": "newest"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "chainId",
    "authorization"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · MarketPage
MarketPage
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    }
  },
  "required": [
    "items",
    "nextCursor",
    "observation"
  ]
}
GET/market/orders/{hash}Public listing detail

Reads item and observation for a public order hash.

App same-origin proxy: /api/nft-market/orders/{hash}

FieldLocation / typeRequirement
hash *path
Bytes32
EVM address or order hash.
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
cursorquery
string
Opaque pagination cursor from nextCursor.
limitquery
integer
Page size:1–50; default12.
sortquery
newest | priceAsc | priceDesc
Default:newest.
sellerquery
Address
EVM address (20 bytes).
ownerquery
Address
EVM address (20 bytes).

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · MarketItem
MarketItem
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "item": {
      "type": "object",
      "additionalProperties": true
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    }
  },
  "required": [
    "item",
    "observation"
  ]
}
POST/market/orders/{hash}/visibilityPublish or hide a listing

Use a publish challenge for visible=true, hide for false. Hiding does not cancel an on-chain signed order. Publishing revalidates original state.

App same-origin proxy: /api/nft-market/orders/{hash}/visibility

FieldLocation / typeRequirement
hash *path
Bytes32
EVM address or order hash.

JSON request body · OrderVisibility

FieldTypeDetails
chainId *integer
visible *boolean
authorization *Authorization
Show request JSON Schema
OrderVisibility
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "visible": {
      "type": "boolean"
    },
    "authorization": {
      "$ref": "#/components/schemas/Authorization"
    }
  },
  "required": [
    "chainId",
    "visible",
    "authorization"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · MarketItem
MarketItem
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "item": {
      "type": "object",
      "additionalProperties": true
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    }
  },
  "required": [
    "item",
    "observation"
  ]
}
GET/market/ownedOwned NFTs

owner is required; reads holdings of the registered collection.

App same-origin proxy: /api/nft-market/owned

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
cursorquery
string
Opaque pagination cursor from nextCursor.
limitquery
integer
Page size:1–50; default12.
sortquery
newest | priceAsc | priceDesc
Default:newest.
sellerquery
Address
EVM address (20 bytes).
owner *query
Address
EVM address (20 bytes).

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

Show response JSON Schema · MarketPage
MarketPage
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    }
  },
  "required": [
    "items",
    "nextCursor",
    "observation"
  ]
}
GET/market/activityNFT activity

Reads activity from original events and canonical observations.

App same-origin proxy: /api/nft-market/activity

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
cursorquery
string
Opaque pagination cursor from nextCursor.
limitquery
integer
Page size:1–50; default12.
sortquery
newest | priceAsc | priceDesc
Default:newest.
sellerquery
Address
EVM address (20 bytes).
ownerquery
Address
EVM address (20 bytes).

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/market/transactionsAccount transaction history

Requires owner; reads tracked transactions and receipt status.

App same-origin proxy: /api/nft-market/transactions

FieldLocation / typeRequirement
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.
cursorquery
string
Opaque pagination cursor from nextCursor.
limitquery
integer
Page size:1–50; default12.
sortquery
newest | priceAsc | priceDesc
Default:newest.
sellerquery
Address
EVM address (20 bytes).
owner *query
Address
EVM address (20 bytes).

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

POST/market/transactionsObserve an NFT transaction

Tracks an already-submitted txHash and orderHash. Signing, sending and fulfillment use the client wallet and Seaport.

App same-origin proxy: /api/nft-market/transactions

JSON request body · MarketTransaction

FieldTypeDetails
chainId *integer
txHash *Bytes32
orderHash *Bytes32
Show request JSON Schema
MarketTransaction
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "txHash": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "orderHash": {
      "$ref": "#/components/schemas/Bytes32"
    }
  },
  "required": [
    "chainId",
    "txHash",
    "orderHash"
  ]
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/market/media/{collection}/{token}Pet NFT metadata

Returns metadata and application media URLs for a registered collection/token.

App same-origin proxy: /api/nft-market/media/{collection}/{token}

FieldLocation / typeRequirement
collection *path
Address
EVM address or order hash.
token *path
Uint256
NFT token ID as a base10 uint256 string.
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/market/media/{collection}/{token}/{file}Pet PNG / sprite

file is the 0x{64-hex-digit digest}.png returned by metadata. Must match the current art or sprite digest.

App same-origin proxy: /api/nft-market/media/{collection}/{token}/{file}

FieldLocation / typeRequirement
collection *path
Address
EVM address or order hash.
token *path
Uint256
NFT token ID as a base10 uint256 string.
file *path
string
Metadata-provided digest followed by.png.
chainId *query
integer
Registered chain ID. Local:31337. Chain ID alone does not identify the genesis.

Success: 200 · image/png. For chain data, inspect observation and readiness reasons together.

GET/demo/oracleRead demo scenario

Educational scenario frame, separate from an operational oracle feed or actual execution result.

Local demo onlyPermalink

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

POST/demo/oracleSelect demo scenario

Select normal/long-crash/short-squeeze/stale when local demo mode is enabled. This alone does not change contract prices.

Local demo onlyPermalink

JSON request body · OracleScenario

FieldTypeDetails
scenario *normal | long-crash | short-squeeze | stale
Show request JSON Schema
OracleScenario
{
  "type": "object",
  "required": [
    "scenario"
  ],
  "properties": {
    "scenario": {
      "type": "string",
      "enum": [
        "normal",
        "long-crash",
        "short-squeeze",
        "stale"
      ]
    }
  }
}

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

GET/demo/engineRead demo job

Reads configured/job for the configured original-engine demo job.

Local demo onlyPermalink

Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.

POST/demo/engineRun the local demo engine

Runs the current scenario with no JSON body. Requires matching Origin.202/job means accepted;409 if a job is already running.

Local demo onlyPermalink

Origin header must match the configured web origin. Default: http://127.0.0.1:3177

Success: 202 · application/json. For chain data, inspect observation and readiness reasons together.

Allowed read-only RPC methods

eth_chainIdeth_blockNumbereth_getBalanceeth_getCodeeth_calleth_getLogseth_getBlockByNumbereth_getTransactionReceipteth_getTransactionByHasheth_getTransactionCounteth_estimateGaseth_gasPrice

Signing/sending methods are not allowed. JSON-RPC body id is required and cannot be null.

Shared schemas

Inspect nested request/response fields and $ref definitions below. These same schemas are included in the OpenAPI JSON.

CommerceUsage
CommerceUsage
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "string",
      "enum": [
        "31337",
        "91342"
      ]
    },
    "product": {
      "type": "string",
      "enum": [
        "meshcode",
        "meshclan",
        "meshlaw",
        "aidocx",
        "arise"
      ]
    },
    "lotId": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}$"
    },
    "units": {
      "type": "string",
      "pattern": "^(?:[1-9][0-9]{0,5}|1000000)$"
    },
    "reference": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9._:@-]+$"
    }
  },
  "required": [
    "chainId",
    "product",
    "lotId",
    "units",
    "reference"
  ]
}
Address
Address
{
  "type": "string",
  "pattern": "^0x[0-9a-fA-F]{40}$",
  "description": "EVM address."
}
Bytes32
Bytes32
{
  "type": "string",
  "pattern": "^0x[0-9a-fA-F]{64}$"
}
HexBytes
HexBytes
{
  "type": "string",
  "pattern": "^0x([0-9a-fA-F]{2})*$"
}
Uint256
Uint256
{
  "type": "string",
  "pattern": "^(0|[1-9][0-9]{0,77})$",
  "description": "Base10 integer string, no leading zeros; must fit uint256. Do not use a JSON number."
}
RpcRequest
RpcRequest
{
  "type": "object",
  "required": [
    "jsonrpc",
    "id",
    "method"
  ],
  "properties": {
    "jsonrpc": {
      "const": "2.0"
    },
    "id": {
      "type": [
        "string",
        "number"
      ]
    },
    "method": {
      "type": "string",
      "enum": [
        "eth_chainId",
        "eth_blockNumber",
        "eth_getBalance",
        "eth_getCode",
        "eth_call",
        "eth_getLogs",
        "eth_getBlockByNumber",
        "eth_getTransactionReceipt",
        "eth_getTransactionByHash",
        "eth_getTransactionCount",
        "eth_estimateGas",
        "eth_gasPrice"
      ]
    },
    "params": {
      "type": "array",
      "items": {},
      "default": []
    }
  },
  "description": "No notifications: id is required and cannot be null. Only allowlisted read methods are accepted."
}
RpcInput
RpcInput
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/RpcRequest"
    },
    {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "$ref": "#/components/schemas/RpcRequest"
      }
    }
  ],
  "description": "Batch IDs must be unique."
}
PerpsIntent
PerpsIntent
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "market": {
      "$ref": "#/components/schemas/Address"
    },
    "collateralToken": {
      "$ref": "#/components/schemas/Address"
    },
    "isLong": {
      "type": "boolean"
    },
    "action": {
      "type": "string",
      "enum": [
        "create",
        "update",
        "cancel",
        "claimFunding",
        "claimCollateral"
      ]
    },
    "orderType": {
      "type": "integer",
      "enum": [
        0,
        2,
        3,
        4,
        5,
        6
      ],
      "default": 0,
      "description": "Create requires2 market increase,3 limit increase,4 market decrease,5 TP or6 SL. Default0 is not a create order."
    },
    "orderKey": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/Bytes32"
        },
        {
          "type": "null"
        }
      ]
    },
    "sizeDeltaUsd": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "collateralDeltaAmount": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "acceptablePrice": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "triggerPrice": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "minOutputUsd": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "executionFee": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "validFromTime": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "timeKey": {
      "$ref": "#/components/schemas/Uint256",
      "default": "0"
    },
    "autoCancel": {
      "type": "boolean",
      "default": false
    },
    "nativeCollateral": {
      "type": "boolean",
      "default": false
    },
    "receiveNative": {
      "type": "boolean",
      "default": false,
      "description": "Only supported new decrease/TP/SL with a WNT output pool."
    },
    "closePosition": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "chainId",
    "account",
    "market",
    "collateralToken",
    "isLong",
    "action"
  ]
}
PerpsTransaction
PerpsTransaction
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "hash": {
      "$ref": "#/components/schemas/Bytes32"
    }
  },
  "required": [
    "chainId",
    "account",
    "hash"
  ]
}
MockOracleChange
MockOracleChange
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "expectedRevision": {
      "type": "integer",
      "minimum": 0
    },
    "pricesUsd": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 24,
        "pattern": "^[0-9]+(\\.[0-9]{1,8})?$"
      },
      "description": "Complete map of registered token symbols to human USD decimal strings:greater than0, at most1,000,000,000; at most8 fractional digits and24 characters."
    },
    "fault": {
      "type": "string",
      "enum": [
        "none",
        "stale",
        "invalid-price"
      ],
      "default": "none"
    },
    "faultSymbol": {
      "anyOf": [
        {
          "type": "string",
          "description": "Required registered symbol for a fault; absent/null for none."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "expectedRevision",
    "pricesUsd"
  ]
}
Authorization
Authorization
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "nonce": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "signature": {
      "$ref": "#/components/schemas/HexBytes"
    }
  },
  "required": [
    "nonce",
    "signature"
  ]
}
ChallengeRequest
ChallengeRequest
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "action": {
      "type": "string",
      "enum": [
        "save",
        "publish",
        "hide",
        "read"
      ]
    },
    "orderHash": {
      "$ref": "#/components/schemas/Bytes32",
      "description": "Zero hash only for read; nonzero for save/publish/hide."
    }
  },
  "required": [
    "chainId",
    "account",
    "action",
    "orderHash"
  ]
}
OfferItem
OfferItem
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "itemType": {
      "type": "integer",
      "const": 2
    },
    "token": {
      "$ref": "#/components/schemas/Address"
    },
    "identifierOrCriteria": {
      "$ref": "#/components/schemas/Uint256"
    },
    "startAmount": {
      "const": "1"
    },
    "endAmount": {
      "const": "1"
    }
  },
  "required": [
    "itemType",
    "token",
    "identifierOrCriteria",
    "startAmount",
    "endAmount"
  ]
}
ConsiderationItem
ConsiderationItem
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "itemType": {
      "type": "integer",
      "const": 1
    },
    "token": {
      "$ref": "#/components/schemas/Address"
    },
    "identifierOrCriteria": {
      "const": "0"
    },
    "startAmount": {
      "$ref": "#/components/schemas/Uint256"
    },
    "endAmount": {
      "$ref": "#/components/schemas/Uint256"
    },
    "recipient": {
      "$ref": "#/components/schemas/Address"
    }
  },
  "required": [
    "itemType",
    "token",
    "identifierOrCriteria",
    "startAmount",
    "endAmount",
    "recipient"
  ]
}
OrderParameters
OrderParameters
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "offerer": {
      "$ref": "#/components/schemas/Address"
    },
    "zone": {
      "$ref": "#/components/schemas/Address"
    },
    "offer": {
      "type": "array",
      "minItems": 1,
      "maxItems": 1,
      "items": {
        "$ref": "#/components/schemas/OfferItem"
      }
    },
    "consideration": {
      "type": "array",
      "minItems": 1,
      "maxItems": 2,
      "items": {
        "$ref": "#/components/schemas/ConsiderationItem"
      }
    },
    "orderType": {
      "const": 0
    },
    "startTime": {
      "$ref": "#/components/schemas/Uint256"
    },
    "endTime": {
      "$ref": "#/components/schemas/Uint256"
    },
    "zoneHash": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "salt": {
      "$ref": "#/components/schemas/Uint256"
    },
    "conduitKey": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "counter": {
      "$ref": "#/components/schemas/Uint256"
    },
    "totalOriginalConsiderationItems": {
      "$ref": "#/components/schemas/Uint256"
    }
  },
  "required": [
    "offerer",
    "zone",
    "offer",
    "consideration",
    "orderType",
    "startTime",
    "endTime",
    "zoneHash",
    "salt",
    "conduitKey",
    "counter",
    "totalOriginalConsiderationItems"
  ]
}
SeaportOrder
SeaportOrder
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "parameters": {
      "$ref": "#/components/schemas/OrderParameters"
    },
    "signature": {
      "$ref": "#/components/schemas/HexBytes"
    }
  },
  "required": [
    "parameters",
    "signature"
  ]
}
SaveOrder
SaveOrder
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "order": {
      "$ref": "#/components/schemas/SeaportOrder"
    },
    "authorization": {
      "$ref": "#/components/schemas/Authorization"
    }
  },
  "required": [
    "chainId",
    "order",
    "authorization"
  ]
}
PrivateOrders
PrivateOrders
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "authorization": {
      "$ref": "#/components/schemas/Authorization"
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 50,
          "default": 12
        },
        {
          "type": "null"
        }
      ]
    },
    "sort": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "newest",
            "priceAsc",
            "priceDesc"
          ],
          "default": "newest"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "chainId",
    "authorization"
  ]
}
OrderVisibility
OrderVisibility
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "visible": {
      "type": "boolean"
    },
    "authorization": {
      "$ref": "#/components/schemas/Authorization"
    }
  },
  "required": [
    "chainId",
    "visible",
    "authorization"
  ]
}
MarketTransaction
MarketTransaction
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 1
    },
    "txHash": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "orderHash": {
      "$ref": "#/components/schemas/Bytes32"
    }
  },
  "required": [
    "chainId",
    "txHash",
    "orderHash"
  ]
}
OracleScenario
OracleScenario
{
  "type": "object",
  "required": [
    "scenario"
  ],
  "properties": {
    "scenario": {
      "type": "string",
      "enum": [
        "normal",
        "long-crash",
        "short-squeeze",
        "stale"
      ]
    }
  }
}
Error
Error
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "observation": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    }
  },
  "description": "Application errors use an error code. Framework validation failures may be plain text."
}
Health
Health
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "status": {
      "const": "ok"
    },
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "rpcConfigured": {
      "type": "boolean"
    },
    "rpcProviders": {
      "type": "integer",
      "minimum": 0
    },
    "rpcChains": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0
      }
    },
    "demoOracle": {
      "type": "boolean"
    },
    "engineConfigured": {
      "type": "boolean"
    }
  },
  "required": [
    "status",
    "chainId",
    "rpcConfigured",
    "rpcProviders",
    "rpcChains",
    "demoOracle",
    "engineConfigured"
  ]
}
PerpsObservation
PerpsObservation
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "blockNumber": {
      "type": "integer",
      "minimum": 0
    },
    "blockHash": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "timestamp": {
      "type": "integer",
      "minimum": 0
    },
    "configurationVersion": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "environment": {
      "type": "string"
    },
    "genesisHash": {
      "$ref": "#/components/schemas/Bytes32"
    }
  },
  "required": [
    "blockNumber",
    "blockHash",
    "timestamp",
    "configurationVersion",
    "environment",
    "genesisHash"
  ]
}
MarketObservation
MarketObservation
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "blockNumber": {
      "type": "integer",
      "minimum": 0
    },
    "blockHash": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "timestamp": {
      "type": "integer",
      "minimum": 0
    },
    "head": {
      "type": "integer",
      "minimum": 0
    },
    "lag": {
      "type": "integer",
      "minimum": 0
    },
    "confirmations": {
      "type": "integer",
      "minimum": 0
    },
    "ready": {
      "type": "boolean"
    }
  },
  "required": [
    "chainId",
    "blockNumber",
    "blockHash",
    "timestamp",
    "head",
    "lag",
    "confirmations",
    "ready"
  ]
}
PerpsStatus
PerpsStatus
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "ready": {
      "type": "boolean"
    },
    "readReady": {
      "type": "boolean"
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "capabilities": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "keeperBlock": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "keeperSource": {
      "type": "string"
    },
    "keeperIssuedAt": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "keeperValidUntil": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "sourceCommit": {
      "type": "string"
    },
    "contracts": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "wrappedNativeToken": {
      "$ref": "#/components/schemas/Address"
    },
    "observation": {
      "$ref": "#/components/schemas/PerpsObservation"
    }
  },
  "required": [
    "chainId",
    "ready",
    "readReady",
    "reasons",
    "capabilities",
    "keeperBlock",
    "keeperSource",
    "keeperIssuedAt",
    "keeperValidUntil",
    "sourceCommit",
    "contracts",
    "wrappedNativeToken",
    "observation"
  ]
}
PerpsMarkets
PerpsMarkets
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "observation": {
      "$ref": "#/components/schemas/PerpsObservation"
    }
  },
  "required": [
    "chainId",
    "rows",
    "observation"
  ]
}
PerpsPlan
PerpsPlan
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "chainId": {
      "type": "integer",
      "minimum": 0
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "intent": {
      "$ref": "#/components/schemas/PerpsIntent"
    },
    "transaction": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "to": {
          "$ref": "#/components/schemas/Address"
        },
        "data": {
          "$ref": "#/components/schemas/HexBytes"
        },
        "value": {
          "$ref": "#/components/schemas/Uint256"
        },
        "gas": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/Uint256"
            },
            {
              "type": "null"
            }
          ]
        },
        "gasPrice": {
          "$ref": "#/components/schemas/Uint256"
        }
      },
      "required": [
        "to",
        "data",
        "value",
        "gas",
        "gasPrice"
      ]
    },
    "approval": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "requiresApproval": {
      "type": "boolean"
    },
    "executionFee": {
      "$ref": "#/components/schemas/Uint256"
    },
    "minimumExecutionFee": {
      "$ref": "#/components/schemas/Uint256"
    },
    "estimatedPrice": {},
    "riskReview": {},
    "orderCost": {},
    "receiver": {
      "$ref": "#/components/schemas/Address"
    },
    "positionKey": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "observation": {
      "$ref": "#/components/schemas/PerpsObservation"
    },
    "validUntilBlock": {
      "type": "integer",
      "minimum": 0
    },
    "validUntilTime": {
      "type": "integer",
      "minimum": 0
    },
    "usdDecimals": {
      "const": 30
    }
  },
  "required": [
    "id",
    "chainId",
    "account",
    "intent",
    "transaction",
    "approval",
    "requiresApproval",
    "executionFee",
    "minimumExecutionFee",
    "estimatedPrice",
    "riskReview",
    "orderCost",
    "receiver",
    "positionKey",
    "observation",
    "validUntilBlock",
    "validUntilTime",
    "usdDecimals"
  ]
}
MarketStatus
MarketStatus
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "registry": {
      "type": "object",
      "additionalProperties": true
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    },
    "policy": {
      "const": "meshpet-fixed-v1"
    }
  },
  "required": [
    "registry",
    "observation",
    "policy"
  ]
}
MarketPage
MarketPage
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    }
  },
  "required": [
    "items",
    "nextCursor",
    "observation"
  ]
}
MarketItem
MarketItem
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "item": {
      "type": "object",
      "additionalProperties": true
    },
    "observation": {
      "$ref": "#/components/schemas/MarketObservation"
    }
  },
  "required": [
    "item",
    "observation"
  ]
}
Challenge
Challenge
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "nonce": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "account": {
      "$ref": "#/components/schemas/Address"
    },
    "action": {
      "type": "string",
      "enum": [
        "save",
        "publish",
        "hide",
        "read"
      ]
    },
    "orderHash": {
      "$ref": "#/components/schemas/Bytes32"
    },
    "expiresAt": {
      "type": "integer",
      "minimum": 0
    },
    "message": {
      "type": "string"
    },
    "used": {
      "type": "boolean"
    }
  },
  "required": [
    "nonce",
    "account",
    "action",
    "orderHash",
    "expiresAt",
    "message",
    "used"
  ]
}
ChallengeResponse
ChallengeResponse
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "challenge": {
      "$ref": "#/components/schemas/Challenge"
    },
    "registry": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "challenge",
    "registry"
  ]
}