API reference
Requests, authorization, responses and integration examples for the current HTTP API.
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.
Base URLs and execution model
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.
curl 'http://127.0.0.1:9411/perps/status?chainId=31337'curl 'http://127.0.0.1:9411/market/orders?chainId=31337&limit=12&sort=newest'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.
| Field | Location / type | Requirement |
|---|---|---|
chainId | query31337 | 91342 | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
account | queryAddress | 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
| Field | Type | Details |
|---|---|---|
chainId * | 31337 | 91342 | |
product * | meshcode | meshclan | meshlaw | aidocx | arise | |
lotId * | string | |
units * | string | |
reference * | string |
Show request JSON Schema
{
"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
{
"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.
| Field | Location / type | Requirement |
|---|---|---|
chainId | queryinteger | Optional; defaults to the configured primary chain. |
JSON request body · RpcInput
Single JSON-RPC request or batch array.
Show request JSON Schema
{
"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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | 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
{
"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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | 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
{
"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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
account * | queryAddress | EVM address (20 bytes). |
cursor | queryinteger | Account item offset; default0. Accepted but unused by history. |
limit | queryinteger | 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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
account * | queryAddress | EVM address (20 bytes). |
positionKey * | queryBytes32 | Original GMX position key. |
estimate | queryboolean | 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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
account * | queryAddress | EVM address (20 bytes). |
cursor | queryinteger | Optional scan cursor. |
span | queryinteger | 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
| Field | Type | Details |
|---|---|---|
chainId * | integer | |
account * | Address | |
market * | Address | |
collateralToken * | Address | |
isLong * | boolean | |
action * | create | update | cancel | claimFunding | claimCollateral | |
orderType | 0 | 2 | 3 | 4 | 5 | 6 | Create requires2 market increase,3 limit increase,4 market decrease,5 TP or6 SL. Default0 is not a create order. Default: 0 |
orderKey | Bytes32 | null | |
sizeDeltaUsd | Uint256 | Default: "0" |
collateralDeltaAmount | Uint256 | Default: "0" |
acceptablePrice | Uint256 | Default: "0" |
triggerPrice | Uint256 | Default: "0" |
minOutputUsd | Uint256 | Default: "0" |
executionFee | Uint256 | Default: "0" |
validFromTime | Uint256 | Default: "0" |
timeKey | Uint256 | Default: "0" |
autoCancel | boolean | Default: false |
nativeCollateral | boolean | Default: false |
receiveNative | boolean | Only supported new decrease/TP/SL with a WNT output pool. Default: false |
closePosition | boolean | Default: false |
Show request JSON Schema
{
"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
{
"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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
account * | queryAddress | EVM address (20 bytes). |
cursor | queryinteger | Account item offset; default0. Accepted but unused by history. |
limit | queryinteger | 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
| Field | Type | Details |
|---|---|---|
chainId * | integer | |
account * | Address | |
hash * | Bytes32 |
Show request JSON Schema
{
"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.
App same-origin proxy: /api/perps/mock-oracle
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | 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.
App same-origin proxy: /api/perps/mock-oracle
Origin header must match the configured web origin. Default: http://127.0.0.1:3177
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
JSON request body · MockOracleChange
| Field | Type | Details |
|---|---|---|
expectedRevision * | integer | |
pricesUsd * | object | 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 | none | stale | invalid-price | Default: "none" |
faultSymbol | string | null |
Show request JSON Schema
{
"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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
cursor | querystring | Opaque pagination cursor from nextCursor. |
limit | queryinteger | Page size:1–50; default12. |
sort | querynewest | priceAsc | priceDesc | Default:newest. |
seller | queryAddress | EVM address (20 bytes). |
owner | queryAddress | EVM address (20 bytes). |
Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.
Show response JSON Schema · 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
| Field | Type | Details |
|---|---|---|
chainId * | integer | |
account * | Address | |
action * | save | publish | hide | read | |
orderHash * | Bytes32 | Zero hash only for read; nonzero for save/publish/hide. |
Show request JSON Schema
{
"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
{
"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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
cursor | querystring | Opaque pagination cursor from nextCursor. |
limit | queryinteger | Page size:1–50; default12. |
sort | querynewest | priceAsc | priceDesc | Default:newest. |
seller | queryAddress | EVM address (20 bytes). |
owner | queryAddress | EVM address (20 bytes). |
Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.
Show response JSON Schema · 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
| Field | Type | Details |
|---|---|---|
chainId * | integer | |
order * | SeaportOrder | |
authorization * | Authorization |
Show request JSON Schema
{
"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
{
"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
| Field | Type | Details |
|---|---|---|
chainId * | integer | |
authorization * | Authorization | |
cursor | string | null | |
limit | integer | null | |
sort | newest | priceAsc | priceDesc | null |
Show request JSON Schema
{
"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
{
"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}
| Field | Location / type | Requirement |
|---|---|---|
hash * | pathBytes32 | EVM address or order hash. |
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
cursor | querystring | Opaque pagination cursor from nextCursor. |
limit | queryinteger | Page size:1–50; default12. |
sort | querynewest | priceAsc | priceDesc | Default:newest. |
seller | queryAddress | EVM address (20 bytes). |
owner | queryAddress | EVM address (20 bytes). |
Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.
Show response JSON Schema · 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
| Field | Location / type | Requirement |
|---|---|---|
hash * | pathBytes32 | EVM address or order hash. |
JSON request body · OrderVisibility
| Field | Type | Details |
|---|---|---|
chainId * | integer | |
visible * | boolean | |
authorization * | Authorization |
Show request JSON Schema
{
"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
{
"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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
cursor | querystring | Opaque pagination cursor from nextCursor. |
limit | queryinteger | Page size:1–50; default12. |
sort | querynewest | priceAsc | priceDesc | Default:newest. |
seller | queryAddress | EVM address (20 bytes). |
owner * | queryAddress | EVM address (20 bytes). |
Success: 200 · application/json. For chain data, inspect observation and readiness reasons together.
Show response JSON Schema · 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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
cursor | querystring | Opaque pagination cursor from nextCursor. |
limit | queryinteger | Page size:1–50; default12. |
sort | querynewest | priceAsc | priceDesc | Default:newest. |
seller | queryAddress | EVM address (20 bytes). |
owner | queryAddress | 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
| Field | Location / type | Requirement |
|---|---|---|
chainId * | queryinteger | Registered chain ID. Local:31337. Chain ID alone does not identify the genesis. |
cursor | querystring | Opaque pagination cursor from nextCursor. |
limit | queryinteger | Page size:1–50; default12. |
sort | querynewest | priceAsc | priceDesc | Default:newest. |
seller | queryAddress | EVM address (20 bytes). |
owner * | queryAddress | 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
| Field | Type | Details |
|---|---|---|
chainId * | integer | |
txHash * | Bytes32 | |
orderHash * | Bytes32 |
Show request JSON Schema
{
"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}
| Field | Location / type | Requirement |
|---|---|---|
collection * | pathAddress | EVM address or order hash. |
token * | pathUint256 | NFT token ID as a base10 uint256 string. |
chainId * | queryinteger | 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}
| Field | Location / type | Requirement |
|---|---|---|
collection * | pathAddress | EVM address or order hash. |
token * | pathUint256 | NFT token ID as a base10 uint256 string. |
file * | pathstring | Metadata-provided digest followed by.png. |
chainId * | queryinteger | 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.
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.
JSON request body · OracleScenario
| Field | Type | Details |
|---|---|---|
scenario * | normal | long-crash | short-squeeze | stale |
Show request JSON Schema
{
"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.
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.
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_gasPriceSigning/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
{
"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
{
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "EVM address."
}Bytes32
{
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$"
}HexBytes
{
"type": "string",
"pattern": "^0x([0-9a-fA-F]{2})*$"
}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
{
"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
{
"oneOf": [
{
"$ref": "#/components/schemas/RpcRequest"
},
{
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"$ref": "#/components/schemas/RpcRequest"
}
}
],
"description": "Batch IDs must be unique."
}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
{
"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
{
"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
{
"type": "object",
"additionalProperties": false,
"properties": {
"nonce": {
"$ref": "#/components/schemas/Bytes32"
},
"signature": {
"$ref": "#/components/schemas/HexBytes"
}
},
"required": [
"nonce",
"signature"
]
}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
{
"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
{
"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
{
"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
{
"type": "object",
"additionalProperties": false,
"properties": {
"parameters": {
"$ref": "#/components/schemas/OrderParameters"
},
"signature": {
"$ref": "#/components/schemas/HexBytes"
}
},
"required": [
"parameters",
"signature"
]
}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
{
"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
{
"type": "object",
"additionalProperties": false,
"properties": {
"chainId": {
"type": "integer",
"minimum": 1
},
"visible": {
"type": "boolean"
},
"authorization": {
"$ref": "#/components/schemas/Authorization"
}
},
"required": [
"chainId",
"visible",
"authorization"
]
}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
{
"type": "object",
"required": [
"scenario"
],
"properties": {
"scenario": {
"type": "string",
"enum": [
"normal",
"long-crash",
"short-squeeze",
"stale"
]
}
}
}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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"type": "object",
"additionalProperties": false,
"properties": {
"item": {
"type": "object",
"additionalProperties": true
},
"observation": {
"$ref": "#/components/schemas/MarketObservation"
}
},
"required": [
"item",
"observation"
]
}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
{
"type": "object",
"additionalProperties": false,
"properties": {
"challenge": {
"$ref": "#/components/schemas/Challenge"
},
"registry": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"challenge",
"registry"
]
}