On this page
API reference
Storefront pages and assets
Locate the HTML storefront, wallet pages and supporting browser assets.
GET /#
Open the configured storefront. A new deployment redirects to /setup.
There are no path or query parameters.
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
HTML document | Rendered page. |
Cache. Cache-Control: no-store.
Limit. None specific.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 302 | — | The marketplace needs setup. |
| 503 | not_configured |
The required checkout or order setting is unavailable. |
Example request#
curl https://marketplace.example/Example response#
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Cache-Control: no-storeGET /c/:slug#
Open the Ethereum collection’s default view.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
slug |
string | Yes | Collection slug or configured contract address. | — | Letters, digits or hyphens. |
sort |
string | No | Row ordering when available. | View default. | low, high, token. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
HTML document | Rendered page. |
Cache. Cache-Control: no-store.
Limit. None specific.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 404 | — | Collection is unavailable. |
| 503 | not_configured |
The required checkout or order setting is unavailable. |
Example request#
curl https://marketplace.example/c/spacepoggersExample response#
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Cache-Control: no-storeGET /c/:slug/sale#
Open the Ethereum collection’s For sale view.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
slug |
string | Yes | Collection slug or configured contract address. | — | Letters, digits or hyphens. |
sort |
string | No | Row ordering. | View default. | low, high, token. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
HTML document | Rendered page. |
Cache. Cache-Control: no-store.
Limit. None specific.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 404 | — | Collection is unavailable. |
| 503 | not_configured |
The required checkout or order setting is unavailable. |
Example request#
curl https://marketplace.example/c/spacepoggers/saleExample response#
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Cache-Control: no-storeGET /c/:slug/tokens/:tokenId#
Open the named NFT’s Ethereum detail page.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
slug |
string | Yes | Collection slug or configured contract address. | — | Letters, digits or hyphens. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
HTML document | Rendered page. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor when the route falls back to a live read.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | — | Collection or token is unknown. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 503 | — | Token existence could not yet be verified. |
Example request#
curl https://marketplace.example/c/spacepoggers/tokens/344Example response#
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Cache-Control: no-storeGET /w/:address#
Render a wallet’s indexed Ethereum holdings. An invalid query falls back to the default wallet view.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
address |
address | Yes | Indexed wallet address. | — | Nonzero 20-byte address. |
limit |
integer | No | Maximum rows to return. | 24 | 1–100. |
collection |
address | No | Limit the read to one indexed contract. | All catalogued collections. | — |
cursor |
decimal string | No | Continue one collection from a token ID. | First page. | Requires collection. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
HTML document | Rendered page. |
Cache. Cache-Control: no-store.
Limit. Wallet reads, 30 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 404 | — | Address or selected collection is unavailable. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
Example request#
curl https://marketplace.example/w/0x1111111111111111111111111111111111111111Example response#
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Cache-Control: no-storeGET /docs#
Open the template’s built-in Ethereum API summary.
There are no path or query parameters.
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
HTML document | Rendered page. |
Cache. Cache-Control: no-store.
Limit. None specific.
Example request#
curl https://marketplace.example/docsExample response#
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Cache-Control: no-storeGET /favicon.ico#
Answer the Ethereum favicon path with an empty body.
There are no path or query parameters.
Response fields#
| Field | Type | Meaning |
|---|---|---|
body |
empty | HTTP 204. |
Cache. Cache-Control: no-store.
Limit. None specific.
Example request#
curl https://marketplace.example/favicon.icoExample response#
HTTP/1.1 204 No Content
Cache-Control: no-storeBrowser assets#
The template serves the scripts and fonts its pages load. Treat these as storefront implementation files. They include /operator-setup.js, /operator-payment.js, /fonts/hanken-grotesk.woff2, the selected design files under /themes/, and the Ethereum JavaScript modules named by the page. Use the server-rendered asset URLs, including their deployment version when present. A tag for a different Worker version forces no-store. Successful assets otherwise follow their declared static policy. Ink also serves its theme, inventory and checkout scripts and stylesheet. Asset GET and HEAD support depends on the asset handler.
curl -I 'https://marketplace.example/operator-setup.js'