On this page
API reference
Ink marketplace API
Read the THINKERS_ marketplace and review Ink transactions with its operator API.
These routes apply when the installed template selects Ink mainnet (57073). They use same-origin calls from the storefront. JSON errors use a string in error and may include fallback for OpenSea checkout. Early Worker configuration and admission checks can return the shared Ethereum-style error envelope. All native calls require order storage and, for new reviews, the operator’s Ink RPC.
GET /api/config#
Read storefront collection identity and capabilities.
There are no path or query parameters.
Response fields#
| Field | Type | Meaning |
|---|---|---|
collections |
array | THINKERS_ identity, openSeaSlug and canList. |
operatorData, setupRequired |
booleans | Whether the provider setting is present, and setup status. |
Cache. Cache-Control: no-store.
Limit. None specific.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 405 | — | Use the method shown above. |
| 503 | — | The marketplace settings are missing or invalid. |
Example request#
curl https://marketplace.example/api/configconst response = await fetch("https://marketplace.example/api/config");
const result = await response.json();Example response#
{
"collections": [
{
"name": "THINKERS_",
"chainId": 57073,
"address": "0xf0eb4d1ee2278b0874fb68af83e6443c04af7300",
"slug": "thinkers_",
"openSeaSlug": null,
"canList": false
}
],
"operatorData": false,
"setupRequired": false
}GET /api/ink/market#
Read the storefront inventory across enabled sources. A failed venue is represented by its status.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
collection |
address | No | Must match THINKERS_ if present. | Configured collection. | — |
opensea |
string | No | OpenSea continuation. | First page. | Previous venue cursor. |
nftx |
string | No | NFTX vault inventory continuation. | First page. | Previous venue cursor. |
nftx-listings |
string | No | NFTX premium listings continuation. | First page. | Previous venue cursor. |
native |
hex string | No | Local listing continuation. | First page. | Lowercase 32-byte hash. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
collection |
object | THINKERS_ identity and network. |
sources |
array | Enabled venue reads with status, rows, continuation and observation information. |
native |
object or null | Local listing page with state and observation data when present. |
capabilities |
object | nativeOrders and checkout booleans. |
dataPath, snapshotPath |
strings | Operator data console and stored snapshot endpoints. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl https://marketplace.example/api/ink/marketconst response = await fetch("https://marketplace.example/api/ink/market");
const result = await response.json();Example response#
{
"collection": {
"name": "THINKERS_",
"chainId": 57073,
"address": "0xf0eb4d1ee2278b0874fb68af83e6443c04af7300",
"slug": "thinkers_"
},
"sources": [
{
"rows": [
{
"tokenId": "2148",
"priceWei": null,
"href": "https://nftx.io/ink/collections/thinkers/2148"
},
{
"tokenId": "963",
"priceWei": null,
"href": "https://nftx.io/ink/collections/thinkers/963"
},
…
],
"next": "MjQ",
"venue": "nftx",
"status": "available",
"readAt": "2026-12-04T12:02:47.908Z",
"freshUntil": 1796385947908
},
{
"rows": [
{
"tokenId": "7",
"href": "https://nftx.io/ink/collections/thinkers/7",
"priceWei": null,
"venueListing": {
"id": "nftx:v4:listing:57073:0xf0eb4d1ee2278b0874fb68af83e6443c04af7300:7",
"format": "LIQUID",
"floorMultiple": 101,
"liveFloorMultiple": 101,
"price": null,
"createdAt": 1796005057,
"expiresAt": 1796609857,
"decayStartsAt": 1796609857,
"decayEndsAt": 1796955457
},
"venueTerms": "Liquid listing · observed at 1.01× floor"
},
{
"tokenId": "8",
"href": "https://nftx.io/ink/collections/thinkers/8",
"priceWei": null,
"venueListing": {
"id": "nftx:v4:listing:57073:0xf0eb4d1ee2278b0874fb68af83e6443c04af7300:8",
"format": "LIQUID",
"floorMultiple": 101,
"liveFloorMultiple": 101,
"price": null,
"createdAt": 1796005255,
"expiresAt": 1796610055,
"decayStartsAt": 1796610055,
"decayEndsAt": 1796955655
},
"venueTerms": "Liquid listing · observed at 1.01× floor"
},
…
],
"next": "v4-list:57073:0xf0eb4d1ee2278b0874fb68af83e6443c04af7300:24:248:eyJpZCI6ImJiZDlkODEzLTEwZjYtNDA1My04ZGE0LTFkZDZjODc3MzNiNSIsIm9mZnNldCI6MjR9",
"venue": "nftx-listings",
"status": "available",
"readAt": "2026-12-04T12:02:49.346Z",
"freshUntil": 1796385949346
}
],
"native": null,
"capabilities": {
"nativeOrders": false,
"checkout": false
},
"dataPath": "/operator/data/view/57073/0xf0eb4d1ee2278b0874fb68af83e6443c04af7300",
"snapshotPath": "/v1/market-data/57073/0xf0eb4d1ee2278b0874fb68af83e6443c04af7300"
}GET /c/thinkers_#
Open the Ink storefront’s collection view. The configured Ink deployment also serves this view at / and /index.html.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
collection |
address | No | Must match THINKERS_ if present. | Configured collection. | — |
opensea |
string | No | OpenSea continuation. | First page. | Previous venue cursor. |
nftx |
string | No | NFTX vault inventory continuation. | First page. | Previous venue cursor. |
nftx-listings |
string | No | NFTX premium listings continuation. | First page. | Previous venue cursor. |
native |
hex string | No | Local listing continuation. | First page. | Lowercase 32-byte hash. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
HTML | Ink storefront. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl https://marketplace.example/c/thinkers_Example response#
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: no-storeGET /index.html#
Open the same Ink storefront view. An unconfigured deployment redirects to /setup.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
collection |
address | No | Must match THINKERS_ if present. | Configured collection. | — |
opensea |
string | No | OpenSea continuation. | First page. | Previous venue cursor. |
nftx |
string | No | NFTX vault inventory continuation. | First page. | Previous venue cursor. |
nftx-listings |
string | No | NFTX premium listings continuation. | First page. | Previous venue cursor. |
native |
hex string | No | Local listing continuation. | First page. | Lowercase 32-byte hash. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
HTML | Ink storefront. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl https://marketplace.example/index.htmlExample response#
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: no-storeGET /api/ink/native#
Read current local orders. A maker-filtered read remains available for order management when new native orders are switched off.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
after |
hex string | No | Local page continuation. | First page. | Lowercase 32-byte hash. |
maker |
address | No | Filter the current storage page by maker. | All makers. | One nonzero wallet. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
status |
string | available or partial. |
rows |
array | Order hash, token ID, maker, price, indexed expiry and order state. |
next |
hex string or null | Continuation. |
block, readAt, freshUntil |
decimal string and integers or null | Verification block and read/expiry times. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl https://marketplace.example/api/ink/nativeconst response = await fetch("https://marketplace.example/api/ink/native");
const result = await response.json();Example response#
{
"error": "Configure the operator Ink RPC and order storage."
}POST /api/ink/native/prepare#
Prepare a direct Seaport listing and check holder, approval, royalty, fee and simulated fill.
Note. The maker’s wallet sends the token approval when required and signs the reviewed Seaport EIP-712 order. The server never signs or sends.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
maker |
address | Yes | Order maker. | — | Nonzero 20-byte wallet address. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
priceWei |
decimal string | Yes | Positive requested price. | — | Within uint256. |
days |
integer | Yes | Requested listing lifetime. | — | 1, 7 or 30. |
{
"maker": "0x1111111111111111111111111111111111111111",
"tokenId": "1",
"priceWei": "10000000000000000",
"days": 7
}Response fields#
| Field | Type | Meaning |
|---|---|---|
intent |
object | Original terms plus start, salt and draftNonce for submission. |
orderHash, royaltyWei, previousApproval |
strings | Seaport hash, royalty amount and current NFT approval address. |
fee |
object | Operator fee rate and recipient where configured. |
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. |
block, validUntil |
decimal string and integer | Review block and expiry in Unix milliseconds. |
Cache. Cache-Control: no-store.
Limit. Wallet review bucket, 30 per minute per visitor. JSON body at most 4096 bytes.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 403 | — | Use the same origin as the marketplace. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 413 | — | The request exceeded the route’s body size limit. |
| 415 | — | Send a JSON request body. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
| 409 | configuration_changed |
Marketplace settings changed during preparation. The Worker returns the shared error object in error. Prepare again. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"maker":"0x1111111111111111111111111111111111111111","tokenId":"1","priceWei":"10000000000000000","days":7}' \
https://marketplace.example/api/ink/native/prepareconst response = await fetch("https://marketplace.example/api/ink/native/prepare", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"maker": "0x1111111111111111111111111111111111111111", "tokenId": "1", "priceWei": "10000000000000000", "days": 7})
});
const result = await response.json();Example response#
{
"error": "Configure the operator Ink RPC and order storage."
}POST /api/ink/native/submit#
Validate the maker signature and reconstruct the prepared terms before adding the listing. An exact accepted retry reports added: false.
Note. The maker signs the prepared order. The server never signs or sends.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
maker |
address | Yes | Order maker. | — | Nonzero 20-byte wallet address. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
priceWei |
decimal string | Yes | Positive requested price. | — | Within uint256. |
days |
integer | Yes | Requested listing lifetime. | — | 1, 7 or 30. |
start |
integer | Yes | Prepared Unix-second start time. | — | — |
salt |
decimal string | Yes | Prepared salt. | — | — |
draftNonce |
hex string | No | Prepared nonce when present. | — | — |
orderHash |
hex string | Yes | Reviewed order hash. | — | Lowercase 32-byte hex. |
signature |
hex string | Yes | The maker’s EIP-712 signature. | — | 65 bytes. |
{
"maker": "0x1111111111111111111111111111111111111111",
"tokenId": "1",
"priceWei": "10000000000000000",
"days": 7,
"start": 1796384939,
"salt": "1",
"draftNonce": "0x0000000000000000000000000000000000000000000000000000000000000000",
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
orderHash, added |
hex string and boolean | Order identity and whether it was newly added. |
block, validUntil |
decimal string and integer | On a fresh submission, review block and expiry in Unix milliseconds. |
Cache. Cache-Control: no-store.
Limit. Wallet review bucket, 30 per minute per visitor. JSON body at most 4096 bytes.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 403 | — | Use the same origin as the marketplace. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 413 | — | The request exceeded the route’s body size limit. |
| 415 | — | Send a JSON request body. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
| 409 | — | The Worker returns {"error":"Marketplace settings changed. Prepare the order again."}. |
| 413 | invalid_request |
The Cloudflare order revision check refused an oversized submission. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"maker":"0x1111111111111111111111111111111111111111","tokenId":"1","priceWei":"10000000000000000","days":7,"start":1796384939,"salt":"1","draftNonce":"0x0000000000000000000000000000000000000000000000000000000000000000","orderHash":"0x0000000000000000000000000000000000000000000000000000000000000000","signature":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}' \
https://marketplace.example/api/ink/native/submitconst response = await fetch("https://marketplace.example/api/ink/native/submit", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"maker": "0x1111111111111111111111111111111111111111", "tokenId": "1", "priceWei": "10000000000000000", "days": 7, "start": 1796384939, "salt": "1", "draftNonce": "0x0000000000000000000000000000000000000000000000000000000000000000", "orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "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.
{
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"added": false
}POST /api/ink/native/buy#
Simulate a purchase from the selected buyer with the reviewed cap and verify gas funding.
Note. The shopper’s own wallet signs and sends any on-chain call. The server builds and checks the call. It never signs or sends one.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
account |
address | Yes | Wallet used in the review. | — | Nonzero 20-byte address. |
orderHash |
hex string | Yes | Reviewed order hash. | — | Lowercase 32-byte hex. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
maxValueWei |
decimal string | Yes | Maximum reviewed price. | — | Unsigned 256-bit integer. |
{
"account": "0x1111111111111111111111111111111111111111",
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"tokenId": "1",
"maxValueWei": "10000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
transaction |
object or null | An unsigned call with chainId, target to, calldata data and value. |
gas, gasPriceWei, orderHash |
strings | Estimated gas, gas price and order hash. |
listing |
object | Stored listing with order components and maker signature on a successful review. |
block, validUntil |
decimal string and integer | Review block and expiry in Unix milliseconds. |
Cache. Cache-Control: no-store.
Limit. Wallet review bucket, 30 per minute per visitor. JSON body at most 4096 bytes.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 403 | — | Use the same origin as the marketplace. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 413 | — | The request exceeded the route’s body size limit. |
| 415 | — | Send a JSON request body. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"account":"0x1111111111111111111111111111111111111111","orderHash":"0x0000000000000000000000000000000000000000000000000000000000000000","tokenId":"1","maxValueWei":"10000000000000000"}' \
https://marketplace.example/api/ink/native/buyconst response = await fetch("https://marketplace.example/api/ink/native/buy", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"account": "0x1111111111111111111111111111111111111111", "orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "tokenId": "1", "maxValueWei": "10000000000000000"})
});
const result = await response.json();Example response#
{
"error": "Configure the operator Ink RPC and order storage."
}POST /api/ink/native/cancel#
Review a stored order’s on-chain cancellation. A successful response includes the stored order.
Note. The maker’s wallet signs and sends the cancellation transaction. The server builds and checks the call. It never signs or sends one.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
account |
address | Yes | Wallet used in the review. | — | Nonzero 20-byte address. |
orderHash |
hex string | Yes | Reviewed order hash. | — | Lowercase 32-byte hex. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
{
"account": "0x1111111111111111111111111111111111111111",
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"tokenId": "1"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
transaction |
object or null | An unsigned call with chainId, target to, calldata data and value. |
orderHash, listing |
hex string and object | Order identity and stored listing. The listing includes the maker’s signature while native orders are enabled. |
block, validUntil |
decimal string and integer | Review block and expiry in Unix milliseconds. |
Cache. Cache-Control: no-store.
Limit. Wallet review bucket, 30 per minute per visitor. JSON body at most 4096 bytes.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 403 | — | Use the same origin as the marketplace. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 413 | — | The request exceeded the route’s body size limit. |
| 415 | — | Send a JSON request body. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"account":"0x1111111111111111111111111111111111111111","orderHash":"0x0000000000000000000000000000000000000000000000000000000000000000","tokenId":"1"}' \
https://marketplace.example/api/ink/native/cancelconst response = await fetch("https://marketplace.example/api/ink/native/cancel", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"account": "0x1111111111111111111111111111111111111111", "orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "tokenId": "1"})
});
const result = await response.json();Example response#
{
"error": "Configure the operator Ink RPC and order storage."
}POST /api/ink/native/cancel-draft#
Review cancellation using the prepared order components when a draft is missing from local order storage.
Note. The shopper’s own wallet signs and sends any on-chain call. The server builds and checks the call. It never signs or sends one.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
account |
address | Yes | Wallet used in the review. | — | Nonzero 20-byte address. |
orderHash |
hex string | Yes | Reviewed order hash. | — | Lowercase 32-byte hex. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
order |
object | Yes | Reviewed direct THINKERS_ Seaport order components. | — | — |
draftNonce |
hex string | No | Nonce returned with the prepared draft. | — | — |
{
"account": "0x1111111111111111111111111111111111111111",
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"tokenId": "1",
"order": {
"offerer": "0x1111111111111111111111111111111111111111",
"zone": "0x0000000000000000000000000000000000000000",
"offer": [
{
"itemType": 2,
"token": "0xf0eb4d1ee2278b0874fb68af83e6443c04af7300",
"identifierOrCriteria": "1",
"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"
},
"draftNonce": "0x0000000000000000000000000000000000000000000000000000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
transaction |
object or null | An unsigned call with chainId, target to, calldata data and value. |
orderHash |
hex string | Order to cancel. |
block, validUntil |
decimal string and integer | Review block and expiry in Unix milliseconds. |
Cache. Cache-Control: no-store.
Limit. Wallet review bucket, 30 per minute per visitor. JSON body at most 4096 bytes.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 403 | — | Use the same origin as the marketplace. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 413 | — | The request exceeded the route’s body size limit. |
| 415 | — | Send a JSON request body. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"account":"0x1111111111111111111111111111111111111111","orderHash":"0x0000000000000000000000000000000000000000000000000000000000000000","tokenId":"1","order":{"offerer":"0x1111111111111111111111111111111111111111","zone":"0x0000000000000000000000000000000000000000","offer":[{"itemType":2,"token":"0xf0eb4d1ee2278b0874fb68af83e6443c04af7300","identifierOrCriteria":"1","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"},"draftNonce":"0x0000000000000000000000000000000000000000000000000000000000000000"}' \
https://marketplace.example/api/ink/native/cancel-draftconst response = await fetch("https://marketplace.example/api/ink/native/cancel-draft", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"account": "0x1111111111111111111111111111111111111111", "orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "tokenId": "1", "order": {"offerer": "0x1111111111111111111111111111111111111111", "zone": "0x0000000000000000000000000000000000000000", "offer": [{"itemType": 2, "token": "0xf0eb4d1ee2278b0874fb68af83e6443c04af7300", "identifierOrCriteria": "1", "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"}, "draftNonce": "0x0000000000000000000000000000000000000000000000000000000000000000"})
});
const result = await response.json();Example response#
{
"error": "Configure the operator Ink RPC and order storage."
}POST /api/ink/native/receipt#
Verify an Ink native approval, purchase or cancel against its submitted transaction receipt and the reviewed call.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
kind |
string | Yes | Receipt kind. | — | approval, buy, cancel. |
account |
address | Yes | Wallet used in the review. | — | Nonzero 20-byte address. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
txHash |
hex string | Yes | Submitted transaction hash. | — | Nonzero 32-byte hash. |
orderHash |
hex string | No | Required for buy and cancel. | — | — |
reviewed |
object | No | Reviewed block, chainId, target, valueWei and dataHash. Required for approval. | — | — |
signed |
object | No | Optional buy recovery order and signature. | — | — |
order |
object | No | Optional cancel recovery order. | — | — |
legacyRecovery |
boolean | No | Legacy buy or cancel recovery flag. | Off. | Only true when supplied. |
{
"kind": "cancel",
"account": "0x1111111111111111111111111111111111111111",
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"tokenId": "1",
"txHash": "0x1111111111111111111111111111111111111111111111111111111111111111"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
confirmed, outcome, txHash |
boolean and strings | Verification result. Outcome is pending, reverted or confirmed. |
receiptBlock |
decimal string, optional | Mined block on success. |
block, validUntil |
decimal string and integer | Review block and expiry in Unix milliseconds. |
Cache. Cache-Control: no-store.
Limit. Wallet review bucket, 30 per minute per visitor. JSON body at most 4096 bytes.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 403 | — | Use the same origin as the marketplace. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 413 | — | The request exceeded the route’s body size limit. |
| 415 | — | Send a JSON request body. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"kind":"cancel","account":"0x1111111111111111111111111111111111111111","orderHash":"0x0000000000000000000000000000000000000000000000000000000000000000","tokenId":"1","txHash":"0x1111111111111111111111111111111111111111111111111111111111111111"}' \
https://marketplace.example/api/ink/native/receiptconst response = await fetch("https://marketplace.example/api/ink/native/receipt", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"kind": "cancel", "account": "0x1111111111111111111111111111111111111111", "orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "tokenId": "1", "txHash": "0x1111111111111111111111111111111111111111111111111111111111111111"})
});
const result = await response.json();Example response#
{
"error": "Configure the operator Ink RPC and order storage."
}POST /api/ink/purchase#
Build and simulate a checked OpenSea fill for THINKERS_ on Ink, with zero marketplace fee on the fill.
Note. The shopper’s own wallet signs and sends any on-chain call. The server builds and checks the call. It never signs or sends one.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
buyer |
address | Yes | Buyer’s wallet. | — | Nonzero 20-byte wallet address. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
orderHash |
hex string | Yes | Reviewed order hash. The Worker normalizes it to lowercase. | — | 32-byte hex, either case. |
maxValueWei |
decimal string | Yes | Maximum reviewed price. | — | Positive, within uint256. |
{
"buyer": "0x1111111111111111111111111111111111111111",
"tokenId": "1",
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"maxValueWei": "10000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
transaction |
object or null | An unsigned call with chainId, target to, calldata data and value. |
buyer, tokenId, orderHash, maxValueWei |
strings | Echoed reviewed request. |
calldataHash |
hex string | Hash of the exact call data. |
feeWei, price |
string and object | Marketplace fee and display price. |
expiresAt, simulatedAtBlock |
integer and string | Expiry in Unix milliseconds and simulated block. |
gasUsed, estimatedExecutionFeeWei |
strings | Simulated gas and estimated fee. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor. JSON body at most 2048 bytes.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 403 | — | Use the same origin as the marketplace. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 413 | — | The request exceeded the route’s body size limit. |
| 415 | — | Send a JSON request body. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"buyer":"0x1111111111111111111111111111111111111111","tokenId":"1","orderHash":"0x0000000000000000000000000000000000000000000000000000000000000000","maxValueWei":"10000000000000000"}' \
https://marketplace.example/api/ink/purchaseconst response = await fetch("https://marketplace.example/api/ink/purchase", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"buyer": "0x1111111111111111111111111111111111111111", "tokenId": "1", "orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "maxValueWei": "10000000000000000"})
});
const result = await response.json();Example response#
{
"error": "This venue is switched off for this marketplace."
}POST /api/ink/purchase/receipt#
Check delivery of the NFT for an OpenSea fill after the buyer wallet sends it.
There are no path or query parameters.
Request body#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
buyer |
address | Yes | Buyer’s wallet. | — | Nonzero 20-byte wallet address. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
orderHash |
hex string | Yes | Reviewed order hash. The Worker normalizes it to lowercase. | — | 32-byte hex, either case. |
maxValueWei |
decimal string | Yes | Maximum reviewed price. | — | Positive, within uint256. |
hash |
hex string | Yes | Submitted transaction hash. | — | — |
calldataHash |
hex string | Yes | Hash from the purchase review. | — | — |
{
"buyer": "0x1111111111111111111111111111111111111111",
"tokenId": "1",
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"maxValueWei": "10000000000000000",
"hash": "0x1111111111111111111111111111111111111111111111111111111111111111",
"calldataHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}Response fields#
| Field | Type | Meaning |
|---|---|---|
status |
string | Receipt state. A pending review returns HTTP 202. Other returned states use HTTP 200. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor. JSON body at most 2048 bytes.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | — | A body field, cursor or parameter is invalid. |
| 403 | — | Use the same origin as the marketplace. |
| 404 | — | The venue is disabled or the requested resource is outside this marketplace. |
| 405 | — | Use the method shown above. |
| 413 | — | The request exceeded the route’s body size limit. |
| 415 | — | Send a JSON request body. |
| 422 | — | Current ownership, order terms, account, receipt or simulation failed a review check. |
| 429 | — | Ink visitor limit reached. Retry after 60 seconds. |
| 503 | — | The operator’s Ink RPC or order storage is unavailable. |
Example request#
curl \
-X POST \
-H 'Content-Type: application/json' \
--data '{"buyer":"0x1111111111111111111111111111111111111111","tokenId":"1","orderHash":"0x0000000000000000000000000000000000000000000000000000000000000000","maxValueWei":"10000000000000000","hash":"0x1111111111111111111111111111111111111111111111111111111111111111","calldataHash":"0x0000000000000000000000000000000000000000000000000000000000000000"}' \
https://marketplace.example/api/ink/purchase/receiptconst response = await fetch("https://marketplace.example/api/ink/purchase/receipt", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"buyer": "0x1111111111111111111111111111111111111111", "tokenId": "1", "orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "maxValueWei": "10000000000000000", "hash": "0x1111111111111111111111111111111111111111111111111111111111111111", "calldataHash": "0x0000000000000000000000000000000000000000000000000000000000000000"})
});
const result = await response.json();Example response#
{
"error": "The operator’s Ink receipt service is unavailable. Check your wallet or the Ink explorer."
}