API 레퍼런스
현재 HTTP API의 요청·권한·응답과 연동 예제입니다.
실제 구현된 경로로 연동하세요
로컬 Rust API의 현재 계약입니다. API 키 발급이나 서버 지갑 서명은 제공하지 않습니다. 읽기 → 검토 → 지갑 서명/전송 → 해시 추적 순서로 연결합니다.
접속 주소와 실행 모델
Core·Demo 경로는 위 Rust 주소로 직접 요청합니다. AMM은 @mst/contracts/amm SDK와 Uniswap v4 계약을 직접 사용하며 /amm/quote HTTP 경로는 없습니다. 배포된 공개 API 호스트는 아직 지정하지 않았습니다.
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":[]}'인증·정밀도·오류
서명과 권한
NFT 판매는 Seaport EIP-712 서명, 주문장 저장·공개·숨김·비공개 조회는 challenge message의 EIP-191 서명을 씁니다. challenge는 5분·일회성이고 계정/액션/주문/체인/genesis에 묶입니다. mock oracle·demo engine POST는 Origin 검증도 필요합니다.
숫자와 시간
uint256 수량은 10진 문자열입니다. 선물 USD는30자리, 토큰 수량은 등록 토큰 decimals, 지수 가격은30−indexTokenDecimals를 사용합니다. executionFee/value는 wei, 시간은 Unix 초입니다. mock pricesUsd는 사람 기준 USD 소수 문자열(최대8자리)입니다.
본문 한도는65,536바이트입니다. 엄격한 DTO의 알 수 없는 필드는 거부됩니다. CORS는 설정된 웹 origin만 허용합니다. 400/422는 입력·추출 오류, 403은 권한/Origin, 404는 없는 리소스·비활성 데모, 409는 체인/원본 상태/준비 충돌, 503은 미설정·사용 불가입니다. 프레임워크 오류는 텍스트일 수 있고, JSON-RPC는 별도 error 객체를 씁니다.
현재 NFT 정책: 등록 ERC721 한 개, 등록 MST 고정가, 일반 전체 체결(orderType=0), zero zone/conduit, 고려 항목1–2개, 기간 최대7일입니다. 부분 체결·경매·임의 컬렉션 주문은 지원 범위에 포함되지 않습니다.
엔드포인트
31 / 31* 필수 필드. 각 행을 열어 query·본문·권한 조건을 확인하세요.
GET/api/commerce판매·이용권 상태
앱 웹 서버의 읽기 전용 API입니다. 계정 없이도 판매·수수료·요율을 조회하며 account를 넣으면 최근 요청·이용권을 함께 반환합니다. 체인 정수는10진 문자열입니다.
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId | query31337 | 91342 | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
account | queryAddress | 20바이트 EVM 주소입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
POST/api/commerce/usage제품별 사용량 정산
앱 웹 서버에서 제품별 Bearer 서버 키로 인증합니다. 본문은 최대8192바이트이며 모든 값은 문자열입니다. 예약된 서비스·operator 범위만 정산합니다. 성공한 작업의 고유 reference는 같은 lot/units로 재시도하면 같은 canonical receipt를 반환하고 중복 소각하지 않습니다. 변경된 재사용은409, 인증 실패401입니다. 외부 작업 실행 API가 아닙니다.
제품별 서버 Bearer 키가 필요합니다. 브라우저 코드에 넣지 마세요.
JSON 요청 본문 · CommerceUsage
| 필드 | 타입 | 상세 |
|---|---|---|
chainId * | 31337 | 91342 | |
product * | meshcode | meshclan | meshlaw | aidocx | arise | |
lotId * | string | |
units * | string | |
reference * | string |
요청 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"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/healthAPI 상태
RPC·체인·데모 엔진 설정 여부를 반환합니다. 계약 준비 완료와는 다릅니다.
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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/rpc읽기 전용 JSON-RPC
chainId는 query에 넣습니다. 12개 읽기 메서드만 허용하며 batch는 1–20개, id는 중복할 수 없습니다. 전송·서명 메서드는 403입니다.
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId | queryinteger | 선택 항목입니다. 생략하면 설정된 기본 체인을 사용합니다. |
JSON 요청 본문 · RpcInput
단일 JSON-RPC 요청 또는 batch 배열입니다.
요청 JSON Schema 보기
{
"oneOf": [
{
"$ref": "#/components/schemas/RpcRequest"
},
{
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"$ref": "#/components/schemas/RpcRequest"
}
}
],
"description": "일괄 요청의 ID는 중복할 수 없습니다."
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/perps/status선물 준비 상태·계약
ready/readReady/reasons, 등록 계약과 observation을 확인합니다. 실제 oracle·keeper 상태를 확인하는 기준입니다.
앱 동일 출처 proxy: /api/perps/status
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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/markets시장 목록
등록된 원본 GMX 시장·토큰·정밀도·관측값을 반환합니다.
앱 동일 출처 proxy: /api/perps/markets
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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/account계정 주문·포지션
선택 계정의 주문과 포지션을 canonical 관측 블록에서 조회합니다.
앱 동일 출처 proxy: /api/perps/account
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
account * | queryAddress | 20바이트 EVM 주소입니다. |
cursor | queryinteger | 계정 항목의 시작 위치입니다. 기본값은 0이며 history에서는 현재 사용하지 않습니다. |
limit | queryinteger | account의 기본값은 20, history의 기본값은 50입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/perps/risk포지션 위험 검토
positionKey로 원본 포지션을 조회합니다. estimate=true일 때 추정치를 요청합니다.
앱 동일 출처 proxy: /api/perps/risk
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
account * | queryAddress | 20바이트 EVM 주소입니다. |
positionKey * | queryBytes32 | 원본 GMX 포지션 키입니다. |
estimate | queryboolean | 기본값은 false입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/perps/claims청구 가능 금액
funding·collateral 청구 후보와 원본 관측값을 조회합니다.
앱 동일 출처 proxy: /api/perps/claims
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
account * | queryAddress | 20바이트 EVM 주소입니다. |
cursor | queryinteger | 선택 항목인 스캔 커서입니다. |
span | queryinteger | 스캔 구간입니다. 기본값은 4096입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
POST/perps/plan서명되지 않은 거래 계획
create/update/cancel/claimFunding/claimCollateral을 검토합니다. transaction·approval·riskReview·observation·유효 기한을 반환하며 서버는 서명/전송하지 않습니다. plan은 관측 블록+2 또는 관측 시간+30초까지입니다.
앱 동일 출처 proxy: /api/perps/plan
JSON 요청 본문 · PerpsIntent
| 필드 | 타입 | 상세 |
|---|---|---|
chainId * | integer | |
account * | Address | |
market * | Address | |
collateralToken * | Address | |
isLong * | boolean | |
action * | create | update | cancel | claimFunding | claimCollateral | |
orderType | 0 | 2 | 3 | 4 | 5 | 6 | 생성 주문은 2 시장가 증가, 3 지정가 증가, 4 시장가 종료, 5 익절(TP), 6 손절(SL)을 사용합니다. 기본값 0은 생성 주문에서 지원하지 않습니다. 기본값: 0 |
orderKey | Bytes32 | null | |
sizeDeltaUsd | Uint256 | 기본값: "0" |
collateralDeltaAmount | Uint256 | 기본값: "0" |
acceptablePrice | Uint256 | 기본값: "0" |
triggerPrice | Uint256 | 기본값: "0" |
minOutputUsd | Uint256 | 기본값: "0" |
executionFee | Uint256 | 기본값: "0" |
validFromTime | Uint256 | 기본값: "0" |
timeKey | Uint256 | 기본값: "0" |
autoCancel | boolean | 기본값: false |
nativeCollateral | boolean | 기본값: false |
receiveNative | boolean | WNT 수령 풀을 사용하는 신규 종료·익절·손절 주문에서만 지원합니다. 기본값: false |
closePosition | boolean | 기본값: false |
요청 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": "생성 주문은 2 시장가 증가, 3 지정가 증가, 4 시장가 종료, 5 익절(TP), 6 손절(SL)을 사용합니다. 기본값 0은 생성 주문에서 지원하지 않습니다."
},
"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": "WNT 수령 풀을 사용하는 신규 종료·익절·손절 주문에서만 지원합니다."
},
"closePosition": {
"type": "boolean",
"default": false
}
},
"required": [
"chainId",
"account",
"market",
"collateralToken",
"isLong",
"action"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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/history선물 이력
영속 journal의 계정 이력입니다. limit 기본값은50이며 cursor는 현재 이 핸들러에서 사용하지 않습니다.
앱 동일 출처 proxy: /api/perps/history
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
account * | queryAddress | 20바이트 EVM 주소입니다. |
cursor | queryinteger | 계정 항목의 시작 위치입니다. 기본값은 0이며 history에서는 현재 사용하지 않습니다. |
limit | queryinteger | account의 기본값은 20, history의 기본값은 50입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
POST/perps/transactions전송한 거래 추적
이미 지갑에서 전송한 hash를 등록하고 영수증/상태를 관측합니다. 거래 전송 API가 아닙니다.
앱 동일 출처 proxy: /api/perps/transactions
JSON 요청 본문 · PerpsTransaction
| 필드 | 타입 | 상세 |
|---|---|---|
chainId * | integer | |
account * | Address | |
hash * | Bytes32 |
요청 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"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/perps/mock-oracle로컬 mock oracle 상태
원하는 revision과 적용 revision, 현재 가격·fault를 조회합니다. 실제 피드와 구분되는 로컬 전용 제어입니다.
앱 동일 출처 proxy: /api/perps/mock-oracle
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
POST/perps/mock-oracle로컬 mock 가격 변경 요청
현재 expectedRevision과 모든 등록 토큰의 가격 map을 보냅니다. Origin 검증 후 명령을 저장하고 keeper가 적용합니다. 반환은 적용 완료가 아니며 revision을 다시 조회해야 합니다.
앱 동일 출처 proxy: /api/perps/mock-oracle
Origin 헤더가 설정된 웹 origin과 일치해야 합니다. 기본값: http://127.0.0.1:3177
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
JSON 요청 본문 · MockOracleChange
| 필드 | 타입 | 상세 |
|---|---|---|
expectedRevision * | integer | |
pricesUsd * | object | 등록된 모든 토큰의 심볼과 USD 가격 소수 문자열을 전달합니다. 가격은 0보다 크고 최대 1,000,000,000이며 소수점 이하 8자리, 전체 24자까지 허용합니다. |
fault | none | stale | invalid-price | 기본값: "none" |
faultSymbol | string | null |
요청 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": "등록된 모든 토큰의 심볼과 USD 가격 소수 문자열을 전달합니다. 가격은 0보다 크고 최대 1,000,000,000이며 소수점 이하 8자리, 전체 24자까지 허용합니다."
},
"fault": {
"type": "string",
"enum": [
"none",
"stale",
"invalid-price"
],
"default": "none"
},
"faultSymbol": {
"anyOf": [
{
"type": "string",
"description": "오류 주입 시 등록된 토큰 심볼이 필요합니다. none이면 생략하거나 null로 설정합니다."
},
{
"type": "null"
}
]
}
},
"required": [
"expectedRevision",
"pricesUsd"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/market/statusNFT 마켓 상태
registry·observation·meshpet-fixed-v1 policy를 조회합니다. 현재 등록 MeshPet/MST 고정가 거래 범위입니다.
앱 동일 출처 proxy: /api/nft-market/status
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
cursor | querystring | nextCursor 값을 그대로 전달하는 페이지 커서입니다. |
limit | queryinteger | 페이지 크기는 1–50이며 기본값은 12입니다. |
sort | querynewest | priceAsc | priceDesc | 기본값은 newest입니다. |
seller | queryAddress | 20바이트 EVM 주소입니다. |
owner | queryAddress | 20바이트 EVM 주소입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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/challenges주문장 서명 challenge
5분 유효한 일회성 nonce/message를 발급합니다. 반환된 message를 그대로 personal_sign(EIP-191)하고 nonce/signature를 authorization에 넣습니다. Seaport 판매 EIP-712 서명과 별개입니다.
앱 동일 출처 proxy: /api/nft-market/challenges
JSON 요청 본문 · ChallengeRequest
| 필드 | 타입 | 상세 |
|---|---|---|
chainId * | integer | |
account * | Address | |
action * | save | publish | hide | read | |
orderHash * | Bytes32 | read에서만 0 해시를 사용합니다. save/publish/hide에는 0이 아닌 주문 해시를 전달합니다. |
요청 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": "read에서만 0 해시를 사용합니다. save/publish/hide에는 0이 아닌 주문 해시를 전달합니다."
}
},
"required": [
"chainId",
"account",
"action",
"orderHash"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 JSON Schema 보기 · ChallengeResponse
{
"type": "object",
"additionalProperties": false,
"properties": {
"challenge": {
"$ref": "#/components/schemas/Challenge"
},
"registry": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"challenge",
"registry"
]
}GET/market/orders공개 판매 목록
공개 주문 목록과 nextCursor·observation을 반환합니다.
앱 동일 출처 proxy: /api/nft-market/orders
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
cursor | querystring | nextCursor 값을 그대로 전달하는 페이지 커서입니다. |
limit | queryinteger | 페이지 크기는 1–50이며 기본값은 12입니다. |
sort | querynewest | priceAsc | priceDesc | 기본값은 newest입니다. |
seller | queryAddress | 20바이트 EVM 주소입니다. |
owner | queryAddress | 20바이트 EVM 주소입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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/orders서명된 판매 비공개 저장
검증된 Seaport 주문과 save challenge의 authorization을 저장합니다. 최초 저장은 비공개이며 별도 공개가 필요합니다. 온체인 체결은 하지 않습니다.
앱 동일 출처 proxy: /api/nft-market/orders
JSON 요청 본문 · SaveOrder
| 필드 | 타입 | 상세 |
|---|---|---|
chainId * | integer | |
order * | SeaportOrder | |
authorization * | Authorization |
요청 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"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 JSON Schema 보기 · MarketItem
{
"type": "object",
"additionalProperties": false,
"properties": {
"item": {
"type": "object",
"additionalProperties": true
},
"observation": {
"$ref": "#/components/schemas/MarketObservation"
}
},
"required": [
"item",
"observation"
]
}POST/market/orders/private내 비공개 판매 조회
action=read, orderHash=0의 challenge 서명을 사용합니다. 다른 판매자의 비공개 주문은 읽지 못합니다.
앱 동일 출처 proxy: /api/nft-market/orders/private
JSON 요청 본문 · PrivateOrders
| 필드 | 타입 | 상세 |
|---|---|---|
chainId * | integer | |
authorization * | Authorization | |
cursor | string | null | |
limit | integer | null | |
sort | newest | priceAsc | priceDesc | null |
요청 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"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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}공개 판매 상세
공개 order hash의 item과 observation을 조회합니다.
앱 동일 출처 proxy: /api/nft-market/orders/{hash}
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
hash * | pathBytes32 | EVM 주소 또는 주문 해시입니다. |
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
cursor | querystring | nextCursor 값을 그대로 전달하는 페이지 커서입니다. |
limit | queryinteger | 페이지 크기는 1–50이며 기본값은 12입니다. |
sort | querynewest | priceAsc | priceDesc | 기본값은 newest입니다. |
seller | queryAddress | 20바이트 EVM 주소입니다. |
owner | queryAddress | 20바이트 EVM 주소입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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}/visibility판매 공개·숨김
visible=true는 publish, false는 hide challenge를 사용합니다. 숨겨도 온체인 서명 주문은 취소되지 않습니다. 공개 시 원본 상태를 다시 검증합니다.
앱 동일 출처 proxy: /api/nft-market/orders/{hash}/visibility
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
hash * | pathBytes32 | EVM 주소 또는 주문 해시입니다. |
JSON 요청 본문 · OrderVisibility
| 필드 | 타입 | 상세 |
|---|---|---|
chainId * | integer | |
visible * | boolean | |
authorization * | Authorization |
요청 JSON Schema 보기
{
"type": "object",
"additionalProperties": false,
"properties": {
"chainId": {
"type": "integer",
"minimum": 1
},
"visible": {
"type": "boolean"
},
"authorization": {
"$ref": "#/components/schemas/Authorization"
}
},
"required": [
"chainId",
"visible",
"authorization"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 JSON Schema 보기 · MarketItem
{
"type": "object",
"additionalProperties": false,
"properties": {
"item": {
"type": "object",
"additionalProperties": true
},
"observation": {
"$ref": "#/components/schemas/MarketObservation"
}
},
"required": [
"item",
"observation"
]
}GET/market/owned보유 NFT
owner 주소는 필수이며 등록 컬렉션의 보유 NFT를 조회합니다.
앱 동일 출처 proxy: /api/nft-market/owned
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
cursor | querystring | nextCursor 값을 그대로 전달하는 페이지 커서입니다. |
limit | queryinteger | 페이지 크기는 1–50이며 기본값은 12입니다. |
sort | querynewest | priceAsc | priceDesc | 기본값은 newest입니다. |
seller | queryAddress | 20바이트 EVM 주소입니다. |
owner * | queryAddress | 20바이트 EVM 주소입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
응답 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 활동 이력
원본 이벤트와 canonical 관측값에 따른 활동을 조회합니다.
앱 동일 출처 proxy: /api/nft-market/activity
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
cursor | querystring | nextCursor 값을 그대로 전달하는 페이지 커서입니다. |
limit | queryinteger | 페이지 크기는 1–50이며 기본값은 12입니다. |
sort | querynewest | priceAsc | priceDesc | 기본값은 newest입니다. |
seller | queryAddress | 20바이트 EVM 주소입니다. |
owner | queryAddress | 20바이트 EVM 주소입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/market/transactions계정 거래 이력
owner 주소가 필요합니다. 추적된 거래와 영수증 상태를 조회합니다.
앱 동일 출처 proxy: /api/nft-market/transactions
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
cursor | querystring | nextCursor 값을 그대로 전달하는 페이지 커서입니다. |
limit | queryinteger | 페이지 크기는 1–50이며 기본값은 12입니다. |
sort | querynewest | priceAsc | priceDesc | 기본값은 newest입니다. |
seller | queryAddress | 20바이트 EVM 주소입니다. |
owner * | queryAddress | 20바이트 EVM 주소입니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
POST/market/transactionsNFT 거래 관측
이미 전송한 txHash와 orderHash를 추적합니다. 서명·전송·구매 체결은 클라이언트 지갑과 Seaport가 담당합니다.
앱 동일 출처 proxy: /api/nft-market/transactions
JSON 요청 본문 · MarketTransaction
| 필드 | 타입 | 상세 |
|---|---|---|
chainId * | integer | |
txHash * | Bytes32 | |
orderHash * | Bytes32 |
요청 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"
]
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/market/media/{collection}/{token}펫 NFT 메타데이터
등록 컬렉션/token의 메타데이터와 앱용 미디어 URL을 반환합니다.
앱 동일 출처 proxy: /api/nft-market/media/{collection}/{token}
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
collection * | pathAddress | EVM 주소 또는 주문 해시입니다. |
token * | pathUint256 | NFT 토큰 ID를 10진 uint256 문자열로 전달합니다. |
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/market/media/{collection}/{token}/{file}펫 PNG·sprite
file은 메타데이터가 반환한 0x{64자리 digest}.png입니다. 현재 art 또는 sprite digest와 일치해야 합니다.
앱 동일 출처 proxy: /api/nft-market/media/{collection}/{token}/{file}
| 필드 | 위치 / 타입 | 조건 |
|---|---|---|
collection * | pathAddress | EVM 주소 또는 주문 해시입니다. |
token * | pathUint256 | NFT 토큰 ID를 10진 uint256 문자열로 전달합니다. |
file * | pathstring | 메타데이터에서 받은 digest 뒤에 .png를 붙인 값입니다. |
chainId * | queryinteger | 등록된 체인 ID입니다. 로컬은 31337입니다. 체인 ID만으로는 제네시스를 식별할 수 없습니다. |
성공 응답: 200 · image/png. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/demo/oracle데모 시나리오 조회
교육용 시나리오 프레임입니다. 운영 oracle 피드나 실제 체결 결과가 아닙니다.
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
POST/demo/oracle데모 시나리오 선택
데모가 켜진 로컬 환경에서 normal/long-crash/short-squeeze/stale을 선택합니다. 이것만으로 계약 가격을 변경하지 않습니다.
JSON 요청 본문 · OracleScenario
| 필드 | 타입 | 상세 |
|---|---|---|
scenario * | normal | long-crash | short-squeeze | stale |
요청 JSON Schema 보기
{
"type": "object",
"required": [
"scenario"
],
"properties": {
"scenario": {
"type": "string",
"enum": [
"normal",
"long-crash",
"short-squeeze",
"stale"
]
}
}
}성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
GET/demo/engine데모 작업 조회
설정된 원본 엔진 작업의 configured/job을 조회합니다.
성공 응답: 200 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
POST/demo/engine로컬 데모 엔진 실행
JSON body 없이 현재 시나리오를 실행합니다. Origin이 일치해야 하며202/job은 접수 상태입니다. 이미 실행 중이면409입니다.
Origin 헤더가 설정된 웹 origin과 일치해야 합니다. 기본값: http://127.0.0.1:3177
성공 응답: 202 · application/json. 체인 데이터는 observation과 준비 사유를 함께 확인하세요.
읽기 전용 RPC 허용 메서드
eth_chainIdeth_blockNumbereth_getBalanceeth_getCodeeth_calleth_getLogseth_getBlockByNumbereth_getTransactionReceipteth_getTransactionByHasheth_getTransactionCounteth_estimateGaseth_gasPrice서명·전송 메서드는 허용하지 않습니다. JSON-RPC body의 id는 필수이며 null은 허용되지 않습니다.
공유 스키마
요청·응답의 중첩 필드와 $ref는 아래에서 확인할 수 있습니다. 동일한 스키마가 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 주소입니다."
}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": "선행 0이 없는 10진 정수 문자열입니다. uint256 범위여야 하며 JSON 숫자를 사용하면 안 됩니다."
}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": "알림 요청은 지원하지 않습니다. id는 필수이며 null일 수 없습니다. 허용 목록의 읽기 메서드만 사용할 수 있습니다."
}RpcInput
{
"oneOf": [
{
"$ref": "#/components/schemas/RpcRequest"
},
{
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"$ref": "#/components/schemas/RpcRequest"
}
}
],
"description": "일괄 요청의 ID는 중복할 수 없습니다."
}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": "생성 주문은 2 시장가 증가, 3 지정가 증가, 4 시장가 종료, 5 익절(TP), 6 손절(SL)을 사용합니다. 기본값 0은 생성 주문에서 지원하지 않습니다."
},
"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": "WNT 수령 풀을 사용하는 신규 종료·익절·손절 주문에서만 지원합니다."
},
"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": "등록된 모든 토큰의 심볼과 USD 가격 소수 문자열을 전달합니다. 가격은 0보다 크고 최대 1,000,000,000이며 소수점 이하 8자리, 전체 24자까지 허용합니다."
},
"fault": {
"type": "string",
"enum": [
"none",
"stale",
"invalid-price"
],
"default": "none"
},
"faultSymbol": {
"anyOf": [
{
"type": "string",
"description": "오류 주입 시 등록된 토큰 심볼이 필요합니다. none이면 생략하거나 null로 설정합니다."
},
{
"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": "read에서만 0 해시를 사용합니다. save/publish/hide에는 0이 아닌 주문 해시를 전달합니다."
}
},
"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": "애플리케이션 오류는 오류 코드를 반환합니다. 프레임워크 검증 실패는 일반 텍스트일 수 있습니다."
}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"
]
}