On this page
API reference
Listing and seller review
Prepare marketplace listings and review options for a holder without sending transactions.
The Ethereum listing flow uses Seaport 1.6. Pass the original prepared order back with its signature. An operator settings change can invalidate a previously prepared order. The listing’s signed payout includes any fee and on-chain royalty for your collection.
Seaport order components#
Keep the exact prepared values, including the salt bound to your marketplace settings. An order’s consideration contains the seller’s proceeds and any signed operator fee and creator royalty.
| Field | Type | Meaning |
|---|---|---|
offerer, zone |
addresses | Maker and order zone. |
offer, consideration |
arrays | Each item has itemType, token, identifierOrCriteria, startAmount and endAmount. Consideration items also have recipient. Each array takes one to eight items. |
orderType |
integer | Seaport order type, 0 to 3. |
startTime, endTime |
decimal strings | Order validity in Unix seconds. |
zoneHash, conduitKey |
32-byte hex strings | Zone and transfer conduit selection. |
salt, counter |
decimal strings | The prepared salt and maker’s Seaport counter. |
POST /v1/collections/:chainId/:collection/listings/prepare#
Check the holder, conduit approval, on-chain royalty, counter and order admission. The response shows seller proceeds and the next required wallet action.
Note. When approval is required the holder’s wallet signs and sends setApprovalForAll(conduit, true) to the collection. Wait for its receipt, then prepare again. When approved, the holder signs the Seaport EIP-712 OrderComponents message. The server never signs or sends. The example response comes from a local call with the token’s indexed holder. Replace the example seller with the actual holder when preparing an order.
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. |
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
seller |
address | Yes | Holder’s wallet. | — | Nonzero 20-byte wallet address. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
priceWei |
decimal string | Yes | Positive price per NFT. | — | Within uint256. |
durationSeconds |
integer | No | Order lifetime in seconds. | 604800 | 3600–2592000. |
{
"seller": "0x1111111111111111111111111111111111111111",
"tokenId": "344",
"priceWei": "10000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
route, exchange, operator, walletEnabled |
strings and boolean | Seaport route, exchange display name, conduit and wallet feature state. |
amounts |
object | Price, fee in basis points and wei, fee recipient, royalty in wei and its recipient, seller proceeds and Unix-second expiry. |
orderHash |
hex string | Hash of the prepared order. Call prepare again after approval and use the fresh result. |
approval |
object or null | Unsigned approval containing target, calldata, value and a human-readable label. |
typedData |
object or null | EIP-712 domain, types, primary type and message for the maker’s wallet. |
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. |
| 409 | configuration_changed |
Marketplace settings changed during preparation or since signing. Prepare again. |
| 503 | not_configured |
The required checkout or order setting is unavailable. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"seller":"0x1111111111111111111111111111111111111111","tokenId":"344","priceWei":"10000000000000000"}' \
https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/listings/prepareconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/listings/prepare", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"seller": "0x1111111111111111111111111111111111111111", "tokenId": "344", "priceWei": "10000000000000000"})
});
const result = await response.json();Example response#
{
"route": "seaport",
"exchange": "Seaport 1.6",
"operator": "0x1e0049783f008a0085193e00003d00cd54003c71",
"walletEnabled": true,
"amounts": {
"priceWei": "10000000000000000",
"feeBps": 50,
"feeWei": "50000000000000",
"feeRecipient": "0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed",
"royaltyWei": "0",
"royaltyRecipient": null,
"sellerWei": "9950000000000000",
"expiration": 1796989739
},
"approval": {
"to": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"data": "0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c710000000000000000000000000000000000000000000000000000000000000001",
"value": "0",
"label": "Allow Seaport (through OpenSea's conduit) to transfer this collection's NFTs when they sell"
},
"typedData": null,
"orderHash": "0x82fdcc35599bf12b65dc8a57657f91c50897286353ca2e3bb6c4eb368da17a2d"
}POST /v1/collections/:chainId/:collection/listings/submit#
Admit a maker-signed listing after checking the exact order, holder, signature, proceeds and simulated fill. Success returns HTTP 201.
Note. The example contains illustrative order fields and an all-zero placeholder signature. Use the holder’s EIP-712 signature over the prepared order. The server stores the admitted order and never signs or sends a transaction.
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. |
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
route |
string | Yes | Order family. | — | seaport. |
order |
object | Yes | Seaport OrderComponents from typedData.message. Keep every field unchanged. |
— | — |
signature |
hex string | Yes | Signature returned by the maker’s wallet for the prepared order. | — | — |
{
"route": "seaport",
"order": {
"offerer": "0x1111111111111111111111111111111111111111",
"zone": "0x0000000000000000000000000000000000000000",
"offer": [
{
"itemType": 2,
"token": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"identifierOrCriteria": "344",
"startAmount": "1",
"endAmount": "1"
}
],
"consideration": [
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "10000000000000000",
"endAmount": "10000000000000000",
"recipient": "0x1111111111111111111111111111111111111111"
}
],
"orderType": 0,
"startTime": "1796384939",
"endTime": "1796989739",
"zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"salt": "1",
"conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
"counter": "0"
},
"signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
id, orderHash |
strings | Book ID and Seaport order hash. |
tokenId, priceWei, expiresAt |
strings and integer | NFT, signed price and expiry in Unix seconds. |
seq |
integer | Book sequence after admission. |
amounts |
object | Fee, royalty and seller proceeds from the signed order. |
admission |
object | State and check details of the order admission. |
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 | not_configured |
The required checkout or order setting is unavailable. |
| 409 | configuration_changed |
Marketplace settings changed during preparation or since signing. Prepare again. |
| 413 | invalid_request |
The Cloudflare order revision check refused an oversized submission. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"route":"seaport","order":{"offerer":"0x1111111111111111111111111111111111111111","zone":"0x0000000000000000000000000000000000000000","offer":[{"itemType":2,"token":"0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c","identifierOrCriteria":"344","startAmount":"1","endAmount":"1"}],"consideration":[{"itemType":0,"token":"0x0000000000000000000000000000000000000000","identifierOrCriteria":"0","startAmount":"10000000000000000","endAmount":"10000000000000000","recipient":"0x1111111111111111111111111111111111111111"}],"orderType":0,"startTime":"1796384939","endTime":"1796989739","zoneHash":"0x0000000000000000000000000000000000000000000000000000000000000000","salt":"1","conduitKey":"0x0000000000000000000000000000000000000000000000000000000000000000","counter":"0"},"signature":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}' \
https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/listings/submitconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/listings/submit", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"route": "seaport", "order": {"offerer": "0x1111111111111111111111111111111111111111", "zone": "0x0000000000000000000000000000000000000000", "offer": [{"itemType": 2, "token": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c", "identifierOrCriteria": "344", "startAmount": "1", "endAmount": "1"}], "consideration": [{"itemType": 0, "token": "0x0000000000000000000000000000000000000000", "identifierOrCriteria": "0", "startAmount": "10000000000000000", "endAmount": "10000000000000000", "recipient": "0x1111111111111111111111111111111111111111"}], "orderType": 0, "startTime": "1796384939", "endTime": "1796989739", "zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "salt": "1", "conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000", "counter": "0"}, "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"})
});
const result = await response.json();Example response#
Not verified. This example is written from the response's schema and was not produced by a running site.
{
"id": "native:0x1111111111111111111111111111111111111111111111111111111111111111",
"orderHash": "0x1111111111111111111111111111111111111111111111111111111111111111",
"tokenId": "344",
"priceWei": "10000000000000000",
"expiresAt": 1796989739,
"seq": 42,
"amounts": {
"feeWei": "0",
"royaltyWei": "0",
"royaltyRecipient": null,
"sellerWei": "10000000000000000"
},
"admission": {
"simulated": true,
"block": "26556600",
"taker": "0x2222222222222222222222222222222222222222",
"tokenId": "344",
"gasUsed": "149000"
}
}POST /v1/collections/:chainId/:collection/listings#
Legacy submission URL for the same listing checks and HTTP 201 result. Use the explicit submit route for new clients.
Note. The holder signs the prepared order in their wallet. The server never signs or sends a transaction.
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. |
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
order |
object | Yes | Seaport OrderComponents from typedData.message. Keep every field unchanged. |
— | — |
signature |
hex string | Yes | Signature returned by the maker’s wallet for the prepared order. | — | — |
{
"order": {
"offerer": "0x1111111111111111111111111111111111111111",
"zone": "0x0000000000000000000000000000000000000000",
"offer": [
{
"itemType": 2,
"token": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"identifierOrCriteria": "344",
"startAmount": "1",
"endAmount": "1"
}
],
"consideration": [
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "10000000000000000",
"endAmount": "10000000000000000",
"recipient": "0x1111111111111111111111111111111111111111"
}
],
"orderType": 0,
"startTime": "1796384939",
"endTime": "1796989739",
"zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"salt": "1",
"conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
"counter": "0"
},
"signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
id, orderHash |
strings | Book ID and Seaport order hash. |
tokenId, priceWei, expiresAt |
strings and integer | NFT, signed price and expiry in Unix seconds. |
seq |
integer | Book sequence after admission. |
amounts |
object | Fee, royalty and seller proceeds from the signed order. |
admission |
object | State and check details of the order admission. |
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 | not_configured |
The required checkout or order setting is unavailable. |
| 409 | configuration_changed |
Marketplace settings changed during preparation or since signing. Prepare again. |
| 413 | invalid_request |
The Cloudflare order revision check refused an oversized submission. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"order":{"offerer":"0x1111111111111111111111111111111111111111","zone":"0x0000000000000000000000000000000000000000","offer":[{"itemType":2,"token":"0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c","identifierOrCriteria":"344","startAmount":"1","endAmount":"1"}],"consideration":[{"itemType":0,"token":"0x0000000000000000000000000000000000000000","identifierOrCriteria":"0","startAmount":"10000000000000000","endAmount":"10000000000000000","recipient":"0x1111111111111111111111111111111111111111"}],"orderType":0,"startTime":"1796384939","endTime":"1796989739","zoneHash":"0x0000000000000000000000000000000000000000000000000000000000000000","salt":"1","conduitKey":"0x0000000000000000000000000000000000000000000000000000000000000000","counter":"0"},"signature":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}' \
https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/listingsconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/listings", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"order": {"offerer": "0x1111111111111111111111111111111111111111", "zone": "0x0000000000000000000000000000000000000000", "offer": [{"itemType": 2, "token": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c", "identifierOrCriteria": "344", "startAmount": "1", "endAmount": "1"}], "consideration": [{"itemType": 0, "token": "0x0000000000000000000000000000000000000000", "identifierOrCriteria": "0", "startAmount": "10000000000000000", "endAmount": "10000000000000000", "recipient": "0x1111111111111111111111111111111111111111"}], "orderType": 0, "startTime": "1796384939", "endTime": "1796989739", "zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "salt": "1", "conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000", "counter": "0"}, "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"})
});
const result = await response.json();Example response#
Not verified. This example is written from the response's schema and was not produced by a running site.
{
"id": "native:0x1111111111111111111111111111111111111111111111111111111111111111",
"orderHash": "0x1111111111111111111111111111111111111111111111111111111111111111",
"tokenId": "344",
"priceWei": "10000000000000000",
"expiresAt": 1796989739,
"seq": 42,
"amounts": {
"feeWei": "0",
"royaltyWei": "0",
"royaltyRecipient": null,
"sellerWei": "10000000000000000"
},
"admission": {
"simulated": true,
"block": "26556600",
"taker": "0x2222222222222222222222222222222222222222",
"tokenId": "344",
"gasUsed": "149000"
}
}POST /v1/collections/:chainId/:collection/listings/build#
This route returns HTTP 410. Use the prepare route to get the approval or typed data.
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. |
The request has no body.
Cache. Cache-Control: no-store.
Limit. None specific.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 410 | not_found |
The route is retired. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
Example request#
curl \
-X POST https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/listings/buildconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/listings/build", {
method: "POST"
});
const result = await response.json();Example response#
{
"error": {
"type": "not_found",
"message": "This route is retired. Use POST /v1/collections/:chainId/:collection/listings/prepare to get the typed data to sign (it reads the holder, the approval, the Seaport counter and the creator royalty), then POST …/listings/submit."
}
}POST /v1/listings/bulk/build#
Prepare one Seaport bulk EIP-712 tree for up to 100 reviewed listings by the same holder.
Note. The holder’s wallet sends each required collection approval. Prepare again after receipts, then the holder signs the bulk EIP-712 tree once. The server never signs or sends. The example response uses the indexed holder.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
seller |
address | Yes | Holder’s wallet. | — | Nonzero 20-byte wallet address. |
listings |
array | Yes | Each entry has collection, tokenId, priceWei and optional durationSeconds with the single listing rules. |
— | 1–100 entries. No duplicate collection and token pair. |
{
"seller": "0x1111111111111111111111111111111111111111",
"listings": [
{
"collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"tokenId": "344",
"priceWei": "10000000000000000"
}
]
}Response fields#
| Field | Type | Meaning |
|---|---|---|
listings |
array | Collection, token and calculated amounts for each NFT. |
approvals |
array | One required approval per collection when any is needed. |
orders, typedData |
array and object or null | Prepared Seaport orders and a single bulk typed-data request. Both are null until approvals are in place. |
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. |
| 503 | not_configured |
The required checkout or order setting is unavailable. |
| 409 | configuration_changed |
Marketplace settings changed during preparation or since signing. Prepare again. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"seller":"0x1111111111111111111111111111111111111111","listings":[{"collection":"0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c","tokenId":"344","priceWei":"10000000000000000"}]}' \
https://marketplace.example/v1/listings/bulk/buildconst response = await fetch("https://marketplace.example/v1/listings/bulk/build", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"seller": "0x1111111111111111111111111111111111111111", "listings": [{"collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c", "tokenId": "344", "priceWei": "10000000000000000"}]})
});
const result = await response.json();Example response#
{
"listings": [
{
"collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"tokenId": "344",
"priceWei": "10000000000000000",
"feeBps": 50,
"feeWei": "50000000000000",
"feeRecipient": "0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed",
"royaltyWei": "0",
"royaltyRecipient": null,
"sellerWei": "9950000000000000",
"expiration": 1796989931
}
],
"approvals": [
{
"to": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"data": "0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c710000000000000000000000000000000000000000000000000000000000000001",
"value": "0",
"label": "Allow Seaport (through OpenSea's conduit) to transfer this collection's NFTs when they sell"
}
],
"orders": null,
"typedData": null
}POST /v1/listings/bulk/submit#
Validate the bulk signature and admit each order independently. Inspect every result even when HTTP returns 200.
Note. The holder’s wallet signs the bulk typed data before submission. The server attaches the order proofs for individual admissions. It never signs or sends.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
orders |
array | Yes | Unchanged order components from bulk build. | — | 1–100 orders. |
signature |
hex string | Yes | Holder’s bulk wallet signature. | — | 64 or 65 bytes. |
{
"orders": [
{
"offerer": "0x1111111111111111111111111111111111111111",
"zone": "0x0000000000000000000000000000000000000000",
"offer": [
{
"itemType": 2,
"token": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"identifierOrCriteria": "344",
"startAmount": "1",
"endAmount": "1"
}
],
"consideration": [
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "10000000000000000",
"endAmount": "10000000000000000",
"recipient": "0x1111111111111111111111111111111111111111"
}
],
"orderType": 0,
"startTime": "1796384939",
"endTime": "1796989739",
"zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"salt": "1",
"conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
"counter": "0"
}
],
"signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
results |
array | index, collection, tokenId and ok for each input. A successful row carries listing with the single-submit response. A refused row carries reason. |
error |
object, optional | If every admission was refused because the settings changed, HTTP 409 can also include the per-order results. |
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. |
| 503 | not_configured |
The required checkout or order setting is unavailable. |
| 413 | invalid_request |
The Cloudflare order revision check refused an oversized submission. |
| 409 | configuration_changed |
Marketplace settings changed during preparation or since signing. Prepare again. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"orders":[{"offerer":"0x1111111111111111111111111111111111111111","zone":"0x0000000000000000000000000000000000000000","offer":[{"itemType":2,"token":"0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c","identifierOrCriteria":"344","startAmount":"1","endAmount":"1"}],"consideration":[{"itemType":0,"token":"0x0000000000000000000000000000000000000000","identifierOrCriteria":"0","startAmount":"10000000000000000","endAmount":"10000000000000000","recipient":"0x1111111111111111111111111111111111111111"}],"orderType":0,"startTime":"1796384939","endTime":"1796989739","zoneHash":"0x0000000000000000000000000000000000000000000000000000000000000000","salt":"1","conduitKey":"0x0000000000000000000000000000000000000000000000000000000000000000","counter":"0"}],"signature":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}' \
https://marketplace.example/v1/listings/bulk/submitconst response = await fetch("https://marketplace.example/v1/listings/bulk/submit", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"orders": [{"offerer": "0x1111111111111111111111111111111111111111", "zone": "0x0000000000000000000000000000000000000000", "offer": [{"itemType": 2, "token": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c", "identifierOrCriteria": "344", "startAmount": "1", "endAmount": "1"}], "consideration": [{"itemType": 0, "token": "0x0000000000000000000000000000000000000000", "identifierOrCriteria": "0", "startAmount": "10000000000000000", "endAmount": "10000000000000000", "recipient": "0x1111111111111111111111111111111111111111"}], "orderType": 0, "startTime": "1796384939", "endTime": "1796989739", "zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "salt": "1", "conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000", "counter": "0"}], "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"})
});
const result = await response.json();Example response#
Not verified. This example is written from the response's schema and was not produced by a running site.
{
"results": [
{
"index": 0,
"collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"tokenId": "344",
"ok": false,
"reason": "The chain or book could not be read to check this listing. Try again."
}
]
}POST /v1/collections/:chainId/:collection/sell/:tokenId/options#
Read indicative net proceeds for a holder’s NFT by venue. Sort order is highest net amount first, before gas.
Note. The response example uses the indexed holder. Supply the actual holder to review that NFT.
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. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
seller |
address | Yes | Holder’s wallet. | — | Nonzero 20-byte wallet address. |
{
"seller": "0x1111111111111111111111111111111111111111"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
seller, tokenId, walletEnabled |
strings and boolean | Holder, NFT and wallet feature state. |
options |
array | Venue, ID, scope, label, gross, venue fee, marketplace fee, net proceeds, currency, maker, optional expiry, remaining quantity and royalty. |
unavailable |
array | Reads the API could not complete. Treat those venues as unknown. |
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 | not_configured |
The required checkout or order setting is unavailable. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"seller":"0x1111111111111111111111111111111111111111"}' \
https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/sell/344/optionsconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/sell/344/options", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"seller": "0x1111111111111111111111111111111111111111"})
});
const result = await response.json();Example response#
{
"seller": "0x1111111111111111111111111111111111111111",
"tokenId": "344",
"options": [
{
"venue": "nftx-v2",
"id": "nftx:v2:bid",
"scope": "pool",
"label": "NFTX V2 pool",
"grossWei": "760340024594830",
"venueFeeWei": "0",
"hubFeeWei": "0",
"sellerWei": "760340024594830",
"currency": "ETH",
"maker": null,
"expiresAt": 1796385025
},
{
"venue": "nftx-v4",
"id": "nftx:v4:bid",
"scope": "pool",
"label": "NFTX V4 pool",
"grossWei": "727290588357950",
"venueFeeWei": "0",
"hubFeeWei": "0",
"sellerWei": "727290588357950",
"currency": "ETH",
"maker": null,
"expiresAt": 1796385025
}
],
"unavailable": [],
"walletEnabled": true
}POST /v1/collections/:chainId/:collection/sell/:tokenId/review#
Check one option, holder and fresh proceeds. When an approval is needed the Worker simulates the approval and sale before returning the approval.
Note. The holder’s wallet sends a venue-specific approval if required, then reviews again for the simulated sale call. For a marketplace offer (venue: "hub"), the returned transaction contains the buyer’s signed offer. The server never signs or sends. The local verification used the indexed holder.
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. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
seller |
address | Yes | Holder’s wallet. | — | Nonzero 20-byte wallet address. |
venue |
string | Yes | Venue selected from sell options. | — | hub, opensea, nftx-v2, nftx-v4. |
id |
string | Yes | Option ID from sell options. | — | 32-byte order hash or nftx:v2:bid / nftx:v4:bid. |
slippageBps |
integer | No | Permitted NFTX price movement in basis points. | 100 | 0–500. |
{
"seller": "0x1111111111111111111111111111111111111111",
"venue": "nftx-v4",
"id": "nftx:v4:bid"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
venue, id, label, currency |
strings | Selected option and denomination. |
amounts |
object | Gross, venue fee, marketplace fee, net, minimum and royalty if supplied. |
blockNumber, note |
decimal string or null and string | Simulation block and context. |
approval |
object or null | Unsigned approval containing target, calldata, value and a human-readable label. |
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 | not_configured |
The required checkout or order setting is unavailable. |
| 503 | upstream_error |
The response referenced a contract that the Worker blocks. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"seller":"0x1111111111111111111111111111111111111111","venue":"nftx-v4","id":"nftx:v4:bid"}' \
https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/sell/344/reviewconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/sell/344/review", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"seller": "0x1111111111111111111111111111111111111111", "venue": "nftx-v4", "id": "nftx:v4:bid"})
});
const result = await response.json();Example response#
{
"venue": "nftx-v4",
"id": "nftx:v4:bid",
"label": "NFTX V4 pool",
"currency": "ETH",
"amounts": {
"grossWei": "727290588357950",
"venueFeeWei": "0",
"hubFeeWei": "0",
"sellerWei": "727290588357950",
"minimumWei": "720017682474370"
},
"approval": {
"to": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"data": "0x095ea7b3000000000000000000000000000000144106c1bfc69fbbd04d56220e1a0a9a3c0000000000000000000000000000000000000000000000000000000000000158",
"value": "0x0",
"label": "Allow NFTX's V4 Zap to take this NFT (this one only) when you sell"
},
"transaction": null,
"blockNumber": "26556608",
"note": "Sold into the NFTX V4 pool by NFTX's Zap. The swap fee is included; the collection pays no royalty. No Hub fee."
}