Pando Exchange Docs Build your marketplace
On this page

API reference

Published marketplace data

Read locally published collection data and use the operator’s import API.

These routes run on your marketplace. Public reads use the stored published copy and keep working after you disconnect the optional provider. Storage and console errors use a string in error. Administrative failures can also carry result, field, code or paymentOutcome.

The examples use a chain-qualified address. The same routes accept a path without the chain segment for Ethereum. Ink requires 57073. The collection must be selected on the marketplace for public reads and for imports. You can ask the provider to review a collection before you select it for trading.

GET /v1/market-data/:chainId/:collection#

Read one published snapshot page. An ownership lookup needs kind=ownership, one token ID and one snapshot block. The published page uses numbered links and omits the provider cursor.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
kind string No Published dataset. activity activity, ownership, vault-inventory.
snapshot integer No Pin a snapshot block. Latest published. Nonnegative integer.
page integer No One-based published page number. 1 Positive integer.
tokenId decimal string No Look up a token’s observed owner. Omit page and supply kind and snapshot. Page read. uint256.
preview string No Use exactly kind and preview=1 for the Ethereum first-page probe. A missing page returns 204. Disabled. Only 1.

Response fields#

Field Type Meaning
chainId, collection integer and address Collection identity.
startBlock, indexedThrough integers Inclusive block coverage.
data array Transfer, ownership or vault inventory records. See the provider data fields.
coverage string, optional Observation coverage for vault inventory.
importCoverage string complete, partial or unknown.
tokenId, publishedPages, hasContinuation, match lookup fields An ownership lookup returns token ID, page count, continuation flag and a nullable match with page, token ID, owner and last transfer position.
Link, Content-Location headers Published page navigation and pinned page URL on page responses.

Cache. Cache-Control: private, no-store.

Limit. No route-specific limiter.

Errors#

Status Code Meaning
400 — Invalid product, page, block or token lookup.
404 — Collection, snapshot or page is unavailable.
503 — Published data could not be read.

Example request#

bash
curl https://marketplace.example/v1/market-data/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c
js
const response = await fetch("https://marketplace.example/v1/market-data/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c");
const result = await response.json();

Example response#

json
{
  "error": "No snapshot published at this page."
}

GET /v1/market-data/:collection#

Read an Ethereum snapshot without the explicit chain segment. This preview returns an empty HTTP 204 when the collection is selected and no page has been published.

Path and query parameters#

Name Type Required Meaning Default Limits
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
kind string No Published dataset. activity activity, ownership, vault-inventory.
snapshot integer No Pin a snapshot block. Latest published. Nonnegative integer.
page integer No One-based published page number. 1 Positive integer.
tokenId decimal string No One ownership lookup. Requires an explicit kind and snapshot. — —
preview string No Use with kind as the only other query parameter. Disabled. Only 1.

Response fields#

Field Type Meaning
chainId, collection integer and address Collection identity.
startBlock, indexedThrough integers Inclusive block coverage.
data array Transfer, ownership or vault inventory records. See the provider data fields.
coverage string, optional Observation coverage for vault inventory.
importCoverage string complete, partial or unknown.
tokenId, publishedPages, hasContinuation, match lookup fields An ownership lookup returns token ID, page count, continuation flag and a nullable match with page, token ID, owner and last transfer position.
Link, Content-Location headers Published page navigation and pinned page URL on page responses.

Cache. Cache-Control: private, no-store.

Limit. No route-specific limiter.

Errors#

Status Code Meaning
400 — Invalid product, page, block or token lookup.
404 — Collection, snapshot or page is unavailable.
503 — Published data could not be read.

Example request#

bash
curl 'https://marketplace.example/v1/market-data/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c?kind=activity&preview=1'
js
const response = await fetch("https://marketplace.example/v1/market-data/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c?kind=activity&preview=1");

Example response#

http
HTTP/2 204
cache-control: private, no-store

GET /operator/data#

Open the operator console. The configured admin token must meet the length requirement. A GET request does not authenticate the visitor or contact the provider.

Path and query parameters#

Name Type Required Meaning Default Limits
collection address No Prefill the contract address. First selected collection. One nonzero address.

Response fields#

Field Type Meaning
body HTML Import console or setup guidance.

Cache. Cache-Control: private, no-store.

Limit. None specific.

Errors#

Status Code Meaning
400 — Collection value is invalid.
503 not_ready Configure the marketplace admin token.

Example request#

bash
curl https://marketplace.example/operator/data

Example response#

http
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store

GET /operator/data/view/:chainId/:collection#

Render published snapshots as an HTML page. The view can show tabs without data and returns 404 for a selected unpublished page.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
activity integer No Read a numbered activity page. 1 Positive integer.
ownership integer No Read a numbered ownership page. 1 Positive integer.
vault-inventory integer No Read a numbered vault-inventory page. 1 Positive integer.
activitySnapshot integer No Pin the activity snapshot. Latest published. Nonnegative integer.
ownershipSnapshot integer No Pin the ownership snapshot. Latest published. Nonnegative integer.
vault-inventorySnapshot integer No Pin the vault-inventory snapshot. Latest published. Nonnegative integer.

Response fields#

Field Type Meaning
body HTML Published dataset view and page links.

Cache. Cache-Control: private, no-store.

Limit. None specific.

Errors#

Status Code Meaning
400 — Invalid product, page, block or token lookup.
404 — Collection, snapshot or page is unavailable.
503 — Published data could not be read.

Example request#

bash
curl https://marketplace.example/operator/data/view/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c

Example response#

http
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: private, no-store

POST /operator/data/api/:chainId/:collection/status#

Ask the provider for the current review and indexed coverage.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.

The request has no body.

Response fields#

Field Type Meaning
chainId, collection, status integer and strings Provider’s collection identity and lifecycle.
marketplaceConfigured boolean Whether this marketplace selected the collection.
indexState, lastScanAt, finalizedHead, startBlock, indexedThrough nullable fields Index stage, UTC scan time and coverage.
declineReason string or null, optional Public review reason.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection.
409 — Review, activation or payment has not completed.
502 — The provider response was unavailable or invalid.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/status
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/status", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>"}
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/capabilities#

Ask the provider about reviewed vaults and optional snapshot access.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.

The request has no body.

Response fields#

Field Type Meaning
chainId, collection integer and address Identity.
vaultInventory object supported and reviewed vaults.
snapshotAccess object, optional Page budget, size and duration.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection.
409 — Review, activation or payment has not completed.
502 — The provider response was unavailable or invalid.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/capabilities
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/capabilities", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>"}
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/imports#

Read locally stored import progress keyed by product. The configured origin selects the grant scope.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.

The request has no body.

Response fields#

Field Type Meaning
activity, ownership, vault-inventory objects Each shows pages, nextCursor, startBlock and indexedThrough. Saved imports can include importCoverage and access.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/imports
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/imports", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>"}
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/request#

Ask the provider to consider this collection for indexing.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.

The request has no body.

Response fields#

Field Type Meaning
chainId, collection, status integer and strings Provider’s collection identity and lifecycle.
marketplaceConfigured boolean Whether this marketplace selected the collection.
indexState, lastScanAt, finalizedHead, startBlock, indexedThrough nullable fields Index stage, UTC scan time and coverage.
declineReason string or null, optional Public review reason.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection.
409 — Review, activation or payment has not completed.
502 — The provider response was unavailable or invalid.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/request
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/request", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>"}
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/activate#

Obtain the activation challenge or repeat with a Payment-Signature header. Free status reads require no payment.

Note. For activation, the operator’s wallet signs the USDC transfer authorization supplied in the x402 exchange. The provider uses a facilitator to settle. The marketplace never signs or sends a transaction.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.

The request has no body.

Response fields#

Field Type Meaning
chainId, collection, status integer and strings Provider’s collection identity and lifecycle.
marketplaceConfigured boolean Whether this marketplace selected the collection.
indexState, lastScanAt, finalizedHead, startBlock, indexedThrough nullable fields Index stage, UTC scan time and coverage.
declineReason string or null, optional Public review reason.
resource URL Exact provider resource on a 402 challenge.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection.
409 — Review, activation or payment has not completed.
502 — The provider response was unavailable or invalid.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/activate
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/activate", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>"}
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/activity#

Request a activity page through the configured provider. An unsigned request can return a challenge. Retry with Payment-Signature for individual pages or to purchase bounded access. Use access=import to fetch and publish a page using a stored grant.

Note. The operator’s wallet signs the x402 USDC authorization for the reviewed request. The provider settles it through its facilitator. The marketplace never signs or sends.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
cursor string No Continuation returned by the previous page. First page. Use it verbatim.
snapshot integer No Pin a continuation or bounded import to one block. — —
refresh integer No Require a newer snapshot than this published block. — First page only.
page integer No Target page for a continuation. Next page. At least 2 for individual continuations, 1 for bounded access.
access string No Buy bounded access or import using existing bounded access. Individual page. snapshot or import. Requires snapshot.

The request has no body.

Response fields#

Field Type Meaning
chainId, collection integer and address Collection identity.
startBlock, indexedThrough integers Inclusive block coverage.
data array Transfer, ownership or vault inventory records. See the provider data fields.
coverage string, optional Observation coverage for vault inventory.
nextCursor string or null Provider continuation for another individual page.
resource URL Quoted endpoint on HTTP 402 with Payment-Required.
access object Bounded grant progress on purchase or import. The provider grant stays on the server.
published, page boolean and integer Publication state and page number for bounded import.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection or route.
409 page_conflict The selected page was published or its snapshot changed.
409 access_pending Another import payment is pending for the dataset.
409 — Index review, payment, coverage or page state blocks this operation.
422 — There is no reviewed vault mapping or the provider refused the selection.
502 — The provider response, challenge or payment receipt was unavailable or invalid.
503 — The checked page or local storage is unavailable.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/activity
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/activity", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>"}
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/ownership#

Request a ownership page through the configured provider. An unsigned request can return a challenge. Retry with Payment-Signature for individual pages or to purchase bounded access. Use access=import to fetch and publish a page using a stored grant.

Note. The operator’s wallet signs the x402 USDC authorization for the reviewed request. The provider settles it through its facilitator. The marketplace never signs or sends.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
cursor string No Continuation returned by the previous page. First page. Use it verbatim.
snapshot integer No Pin a continuation or bounded import to one block. — —
refresh integer No Require a newer snapshot than this published block. — First page only.
page integer No Target page for a continuation. Next page. At least 2 for individual continuations, 1 for bounded access.
access string No Buy bounded access or import using existing bounded access. Individual page. snapshot or import. Requires snapshot.

The request has no body.

Response fields#

Field Type Meaning
chainId, collection integer and address Collection identity.
startBlock, indexedThrough integers Inclusive block coverage.
data array Transfer, ownership or vault inventory records. See the provider data fields.
coverage string, optional Observation coverage for vault inventory.
nextCursor string or null Provider continuation for another individual page.
resource URL Quoted endpoint on HTTP 402 with Payment-Required.
access object Bounded grant progress on purchase or import. The provider grant stays on the server.
published, page boolean and integer Publication state and page number for bounded import.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection or route.
409 page_conflict The selected page was published or its snapshot changed.
409 access_pending Another import payment is pending for the dataset.
409 — Index review, payment, coverage or page state blocks this operation.
422 — There is no reviewed vault mapping or the provider refused the selection.
502 — The provider response, challenge or payment receipt was unavailable or invalid.
503 — The checked page or local storage is unavailable.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/ownership
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/ownership", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>"}
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/vault-inventory#

Request a vault-inventory page through the configured provider. An unsigned request can return a challenge. Retry with Payment-Signature for individual pages or to purchase bounded access. Use access=import to fetch and publish a page using a stored grant.

Note. The operator’s wallet signs the x402 USDC authorization for the reviewed request. The provider settles it through its facilitator. The marketplace never signs or sends.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
cursor string No Continuation returned by the previous page. First page. Use it verbatim.
snapshot integer No Pin a continuation or bounded import to one block. — —
refresh integer No Require a newer snapshot than this published block. — First page only.
page integer No Target page for a continuation. Next page. At least 2 for individual continuations, 1 for bounded access.
access string No Buy bounded access or import using existing bounded access. Individual page. snapshot or import. Requires snapshot.

The request has no body.

Response fields#

Field Type Meaning
chainId, collection integer and address Collection identity.
startBlock, indexedThrough integers Inclusive block coverage.
data array Transfer, ownership or vault inventory records. See the provider data fields.
coverage string, optional Observation coverage for vault inventory.
nextCursor string or null Provider continuation for another individual page.
resource URL Quoted endpoint on HTTP 402 with Payment-Required.
access object Bounded grant progress on purchase or import. The provider grant stays on the server.
published, page boolean and integer Publication state and page number for bounded import.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection or route.
409 page_conflict The selected page was published or its snapshot changed.
409 access_pending Another import payment is pending for the dataset.
409 — Index review, payment, coverage or page state blocks this operation.
422 — There is no reviewed vault mapping or the provider refused the selection.
502 — The provider response, challenge or payment receipt was unavailable or invalid.
503 — The checked page or local storage is unavailable.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/vault-inventory
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/vault-inventory", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>"}
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/publish#

Publish an imported activity page into your marketplace’s storage. Submit the checked page unchanged, preserving its chain, block range and continuation. A matching repeat can return the existing publication.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
cursor string No Continuation returned by the previous page. First page. Use it verbatim.
snapshot integer No Pin a continuation or bounded import to one block. — —
refresh integer No Require a newer snapshot than this published block. — First page only.
page integer No Target page for a continuation. Next page. At least 2 for individual continuations, 1 for bounded access.

Request body#

Name Type Required Meaning Default Limits
chainId integer Yes NFT chain. — —
collection address Yes Collection contract. — —
startBlock integer Yes Inclusive indexing start. — —
indexedThrough integer Yes Pinned finalized block. — —
data array Yes Rows returned by the import route. — —
nextCursor string or null Yes Continuation. Null ends the snapshot. — —
json
{
  "chainId": 1,
  "collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
  "startBlock": 26000000,
  "indexedThrough": 26556600,
  "data": [
    {
      "block": 26556600,
      "logIndex": 1,
      "transactionHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "tokenId": "344",
      "from": "0x1111111111111111111111111111111111111111",
      "to": "0x2222222222222222222222222222222222222222"
    }
  ],
  "nextCursor": null
}

Response fields#

Field Type Meaning
published, page, indexedThrough boolean and integers Successful store acknowledgement, page number and snapshot block.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters. JSON body at most 128 KiB.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection or route.
409 page_conflict The selected page was published or its snapshot changed.
409 access_pending Another import payment is pending for the dataset.
409 — Index review, payment, coverage or page state blocks this operation.
422 — There is no reviewed vault mapping or the provider refused the selection.
502 — The provider response, challenge or payment receipt was unavailable or invalid.
503 — The checked page or local storage is unavailable.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  -H 'Content-Type: application/json' \
  --data '{"chainId":1,"collection":"0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c","startBlock":26000000,"indexedThrough":26556600,"data":[{"block":26556600,"logIndex":1,"transactionHash":"0x0000000000000000000000000000000000000000000000000000000000000000","tokenId":"344","from":"0x1111111111111111111111111111111111111111","to":"0x2222222222222222222222222222222222222222"}],"nextCursor":null}' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/publish
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/publish", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>", "Content-Type": "application/json"},
  body: JSON.stringify({"chainId": 1, "collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c", "startBlock": 26000000, "indexedThrough": 26556600, "data": [{"block": 26556600, "logIndex": 1, "transactionHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "tokenId": "344", "from": "0x1111111111111111111111111111111111111111", "to": "0x2222222222222222222222222222222222222222"}], "nextCursor": null})
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/publish-ownership#

Publish an imported ownership page into your marketplace’s storage. Submit the checked page unchanged, preserving its chain, block range and continuation. A matching repeat can return the existing publication.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
cursor string No Continuation returned by the previous page. First page. Use it verbatim.
snapshot integer No Pin a continuation or bounded import to one block. — —
refresh integer No Require a newer snapshot than this published block. — First page only.
page integer No Target page for a continuation. Next page. At least 2 for individual continuations, 1 for bounded access.

Request body#

Name Type Required Meaning Default Limits
chainId integer Yes NFT chain. — —
collection address Yes Collection contract. — —
startBlock integer Yes Inclusive indexing start. — —
indexedThrough integer Yes Pinned finalized block. — —
data array Yes Rows returned by the import route. — —
nextCursor string or null Yes Continuation. Null ends the snapshot. — —
json
{
  "chainId": 1,
  "collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
  "startBlock": 26000000,
  "indexedThrough": 26556600,
  "data": [
    {
      "tokenId": "344",
      "owner": "0x1111111111111111111111111111111111111111",
      "lastTransferBlock": 26556600,
      "lastTransferLogIndex": 1
    }
  ],
  "nextCursor": null
}

Response fields#

Field Type Meaning
published, page, indexedThrough boolean and integers Successful store acknowledgement, page number and snapshot block.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters. JSON body at most 128 KiB.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection or route.
409 page_conflict The selected page was published or its snapshot changed.
409 access_pending Another import payment is pending for the dataset.
409 — Index review, payment, coverage or page state blocks this operation.
422 — There is no reviewed vault mapping or the provider refused the selection.
502 — The provider response, challenge or payment receipt was unavailable or invalid.
503 — The checked page or local storage is unavailable.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  -H 'Content-Type: application/json' \
  --data '{"chainId":1,"collection":"0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c","startBlock":26000000,"indexedThrough":26556600,"data":[{"tokenId":"344","owner":"0x1111111111111111111111111111111111111111","lastTransferBlock":26556600,"lastTransferLogIndex":1}],"nextCursor":null}' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/publish-ownership
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/publish-ownership", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>", "Content-Type": "application/json"},
  body: JSON.stringify({"chainId": 1, "collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c", "startBlock": 26000000, "indexedThrough": 26556600, "data": [{"tokenId": "344", "owner": "0x1111111111111111111111111111111111111111", "lastTransferBlock": 26556600, "lastTransferLogIndex": 1}], "nextCursor": null})
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

POST /operator/data/api/:chainId/:collection/publish-vault-inventory#

Publish an imported vault-inventory page into your marketplace’s storage. Submit the checked page unchanged, preserving its chain, block range and continuation. A matching repeat can return the existing publication.

Path and query parameters#

Name Type Required Meaning Default Limits
chainId integer Yes The marketplace’s chain. — 1 or 57073. Omit for Ethereum.
collection address Yes Collection contract on the selected chain. — 20 bytes, 0x prefix.
cursor string No Continuation returned by the previous page. First page. Use it verbatim.
snapshot integer No Pin a continuation or bounded import to one block. — —
refresh integer No Require a newer snapshot than this published block. — First page only.
page integer No Target page for a continuation. Next page. At least 2 for individual continuations, 1 for bounded access.

Request body#

Name Type Required Meaning Default Limits
chainId integer Yes NFT chain. — —
collection address Yes Collection contract. — —
startBlock integer Yes Inclusive indexing start. — —
indexedThrough integer Yes Pinned finalized block. — —
data array Yes Rows returned by the import route. — —
nextCursor string or null Yes Continuation. Null ends the snapshot. — —
coverage string Yes Vault observation basis. — observed-transfers.
json
{
  "chainId": 1,
  "collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
  "startBlock": 26000000,
  "indexedThrough": 26556600,
  "data": [
    {
      "tokenId": "4",
      "venue": "nftx-v2",
      "custodyAddress": "0x9a09eec78998924c24b287f0576253ffa9e87c21",
      "lastTransferBlock": 26556600,
      "lastTransferLogIndex": 1
    }
  ],
  "nextCursor": null,
  "coverage": "observed-transfers"
}

Response fields#

Field Type Meaning
published, page, indexedThrough boolean and integers Successful store acknowledgement, page number and snapshot block.

Cache. Cache-Control: private, no-store.

Limit. Five failed admin attempts per visitor in ten minutes, shared with setup. Payment headers are limited to 16384 characters. JSON body at most 128 KiB.

Errors#

Status Code Meaning
400 — Invalid parameters or body.
401 wrong_token The supplied marketplace token does not match.
405 — Use POST.
429 too_many_tries The shared admin attempt window is full.
503 not_ready Token or settings storage is unavailable.
503 — No provider origin is configured.
404 unknown_collection Provider has no matching collection or route.
409 page_conflict The selected page was published or its snapshot changed.
409 access_pending Another import payment is pending for the dataset.
409 — Index review, payment, coverage or page state blocks this operation.
422 — There is no reviewed vault mapping or the provider refused the selection.
502 — The provider response, challenge or payment receipt was unavailable or invalid.
503 — The checked page or local storage is unavailable.

Example request#

bash
curl \
  -X POST \
  -H 'Authorization: Bearer <your admin token>' \
  -H 'Content-Type: application/json' \
  --data '{"chainId":1,"collection":"0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c","startBlock":26000000,"indexedThrough":26556600,"data":[{"tokenId":"4","venue":"nftx-v2","custodyAddress":"0x9a09eec78998924c24b287f0576253ffa9e87c21","lastTransferBlock":26556600,"lastTransferLogIndex":1}],"nextCursor":null,"coverage":"observed-transfers"}' \
  https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/publish-vault-inventory
js
const response = await fetch("https://marketplace.example/operator/data/api/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/publish-vault-inventory", {
  method: "POST",
  headers: {"Authorization": "Bearer <your admin token>", "Content-Type": "application/json"},
  body: JSON.stringify({"chainId": 1, "collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c", "startBlock": 26000000, "indexedThrough": 26556600, "data": [{"tokenId": "4", "venue": "nftx-v2", "custodyAddress": "0x9a09eec78998924c24b287f0576253ffa9e87c21", "lastTransferBlock": 26556600, "lastTransferLogIndex": 1}], "nextCursor": null, "coverage": "observed-transfers"})
});
const result = await response.json();

Example response#

json
{
  "result": "wrong_token",
  "error": "That is not the admin token."
}

Pando Exchange is software published by Simple Things Ltd. Each marketplace made with it is run by its operator, in the operator's own account.