On this page
API reference
Maker orders and cancellation
Find orders for a maker and check their cancellation against Seaport.
GET /v1/collections/:chainId/:collection/hub-orders#
Read a maker’s active or suspended marketplace orders. A token filter can verify current listing status for individual tokens.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
maker |
address | Yes | Order maker. | — | Nonzero 20-byte wallet address. |
tokenId |
string | No | Up to 50 comma-separated token IDs to inspect. | All maker orders. | 3950 characters. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
data |
array | Order ID, hash, side, NFT, route, exchange, price, currency, expiry, scope, quantity and suspension status. |
tokenIds |
array, optional | Deduplicated token filter when supplied. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor when tokenId is supplied.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 422 | unprocessable |
The current order, account or NFT did not pass the checks described above. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 503 | upstream_error |
The book could not verify current orders. |
Example request#
curl 'https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/hub-orders?maker=0x1111111111111111111111111111111111111111'const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/hub-orders?maker=0x1111111111111111111111111111111111111111");
const result = await response.json();Example response#
{
"data": []
}GET /v1/collections/:chainId/:collection/hub-orders/alerts#
Read order alert summaries for a wallet from the stored book.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
maker |
address | Yes | Order maker. | — | Nonzero 20-byte wallet address. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
data |
object | The listings, fills and ownBids arrays. Clients can compare these summaries with their last observations. |
Cache. Cache-Control: no-store.
Limit. None specific. Reads the stored book.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 422 | unprocessable |
The current order, account or NFT did not pass the checks described above. |
Example request#
curl 'https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/hub-orders/alerts?maker=0x1111111111111111111111111111111111111111'const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/hub-orders/alerts?maker=0x1111111111111111111111111111111111111111");
const result = await response.json();Example response#
{
"data": {
"listings": [],
"fills": [],
"ownBids": []
}
}POST /v1/collections/:chainId/:collection/hub-orders/:hash/cancel#
Read the order and simulate a Seaport cancellation from the maker. The result can instead report an order already cancelled or filled.
Note. The maker’s wallet signs and sends the Seaport cancel transaction. The server never signs or sends. Call confirm-cancel after its receipt.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
hash |
hex string | Yes | Order hash without the venue prefix. | — | 32 bytes, 0x prefix. |
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
maker |
address | Yes | Order maker. | — | Nonzero 20-byte wallet address. |
mode |
string | No | Cancel just this order. | order | Only order. |
{
"maker": "0x1111111111111111111111111111111111111111"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
orderHash, maker, route, exchange |
strings | Order identity and exchange. |
already |
string or null | Existing on-chain cancellation or fill. |
simulation, label, effect |
object or null and strings or null | Simulation block and gas, action label and effect. |
alternative |
object or null | Optional revocation of approval. The signature stays valid and can become usable again. |
transaction |
object or null | An unsigned call with chainId, target to, calldata data and value. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 422 | unprocessable |
The current order, account or NFT did not pass the checks described above. |
| 502 | upstream_error |
A venue, chain read or simulation service could not return a usable result. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"maker":"0x1111111111111111111111111111111111111111"}' \
https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/hub-orders/0x0000000000000000000000000000000000000000000000000000000000000000/cancelconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/hub-orders/0x0000000000000000000000000000000000000000000000000000000000000000/cancel", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"maker": "0x1111111111111111111111111111111111111111"})
});
const result = await response.json();Example response#
{
"error": {
"type": "unprocessable",
"message": "That order is not on the book. It may already have been cancelled, filled or expired."
}
}POST /v1/collections/:chainId/:collection/hub-orders/:hash/confirm-cancel#
Re-read the chain after cancellation. A seen but unfinalized cancellation or fill can hide the order while it awaits finality. A finalized result can remove the order permanently.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
hash |
hex string | Yes | Order hash without the venue prefix. | — | 32 bytes, 0x prefix. |
The request has no body.
Response fields#
| Field | Type | Meaning |
|---|---|---|
orderHash, state, detail |
strings | Order hash, confirmation outcome and description. States include absent, confirming, cancelled, filled, live, unreadable and suspension outcomes. |
removed |
array | Book IDs removed after final verification. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 422 | unprocessable |
The current order, account or NFT did not pass the checks described above. |
| 502 | upstream_error |
A venue, chain read or simulation service could not return a usable result. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/hub-orders/0x0000000000000000000000000000000000000000000000000000000000000000/confirm-cancelconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/hub-orders/0x0000000000000000000000000000000000000000000000000000000000000000/confirm-cancel", {
method: "POST"
});
const result = await response.json();Example response#
{
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"state": "absent",
"removed": [],
"detail": "That order is no longer on the book."
}