On this page
Run
Settings
Every field of the settings record, the variable that gives it by hand, its allowed values and its default.
Two ways to configure#
Your marketplace reads one settings record. It can come from either of two places:
- Stored settings. The builder's settings code, stored by your site's
/setuppage in the site's own storage. This is the usual way, and the one the builder leads to. - Variables by hand. The same settings given as variables in your Worker's Settings, Variables and Secrets, for a site set up without the builder or with JavaScript off.
A stored record always wins over variables. A site with any of MARKET_CHAIN_ID, MARKET_COLLECTIONS, MARKET_REVIEWED_COLLECTIONS, FEE_RECIPIENT or FEE_BPS set, and no stored record, cannot be claimed: /setup answers "This site is set up with hosting variables. To use stored settings, remove the marketplace settings variables in your hosting dashboard, redeploy, then claim your settings."
Settings hold no secret. Keys, tokens and RPC addresses are secrets, listed on Secrets and variables.
The fields#
| Setting | Variable | Allowed values | Default |
|---|---|---|---|
v |
None | 1, the version of the settings record. The builder writes it |
1 |
chainId |
MARKET_CHAIN_ID |
1 for Ethereum or 57073 for Ink |
1, or 57073 when the collection is THINKERS_ |
collections |
MARKET_COLLECTIONS |
1 to 100 distinct lowercase contract addresses, comma-separated as a variable. Each on the reviewed list or reviewed by you. On Ink, THINKERS_ only | None: required |
reviews |
MARKET_REVIEWED_COLLECTIONS |
Up to 100 Ethereum collections outside the reviewed list that you reviewed yourself, each with its address, name and OpenSea slug. A JSON list as a variable. None on Ink | Empty |
venues |
MARKET_VENUES |
One or more of opensea, nftx-v2, nftx-v4 and native (listings and offers made on your site) |
All four, when set by hand |
feeBps |
FEE_BPS |
A whole number of basis points from 0 to 100 (0 to 1%) | None on Ethereum: required by hand. 0 on Ink |
feeRecipient |
FEE_RECIPIENT |
A wallet you control on the same chain, lowercase. Not the zero address, a collection you selected or a blocked address. On Ink, one without contract or delegated code for listings to work. Empty only at a fee of 0 | Empty |
siteName |
MARKET_SITE_NAME |
Not empty, and up to 40 characters once spaces are run together. Angle brackets, quotes, apostrophes, backticks, backslashes and invisible characters are refused | Marketplace |
theme |
MARKET_THEME |
light or dark, for visitors who have not chosen |
light |
design |
MARKET_DESIGN |
trader (a dense table) or gallery (large tiles) |
trader |
dataOrigin |
PANDO_DATA_ORIGIN |
An optional data provider's HTTPS address, with no path. Empty means none | Empty |
chainId#
Ethereum mainnet or Ink mainnet, and no other chain. A record is for one chain. Chains says what differs.
collections#
The first address is the default collection. A site with exactly one Ethereum collection opens on its landing page by default; a design can set "home": "collection" to open on the items instead. With several, the home page is a directory. Space Poggers is:
0x4a8b01e437c65fa8612e8b699266c0e0a98ff65creviews#
A collection outside the reviewed list needs your own review, given in the builder with the confirmation "I independently reviewed this contract for trading." By hand it is a JSON list:
[{ "address": "0x1111111111111111111111111111111111111111", "name": "Your Collection", "openseaSlug": "your-collection" }]See Collections.
venues#
Where the marketplace shows prices from and buys from. native is listings, and on Ethereum offers, made on your own site. The Ink storefront does not read NFTX V2. See Venues.
feeBps#
Your fee on listings, and on Ethereum offers, made on your site. 50 is 0.5%. It is never charged on OpenSea or NFTX purchases. See Fees and royalties.
feeRecipient#
The wallet your fee goes to, inside each signed order. Copy it from your own wallet; the builder checks its checksum.
siteName#
Shown in your site's header and page titles.
theme#
The colour scheme a first-time visitor sees. Visitors can switch.
design#
Trader or Gallery. See Designs.
dataOrigin#
The address of an optional data provider for indexed collection data. Your marketplace works without one. The Data API pages describe the service, which is not available yet, and Connect an operator marketplace how a marketplace uses it.
An example record#
The settings code carries this record, encoded. A one-collection Ethereum site with a 0.5% fee:
{
"v": 1,
"chainId": 1,
"collections": ["0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c"],
"reviews": [],
"venues": ["opensea", "nftx-v2", "nftx-v4", "native"],
"feeBps": 50,
"feeRecipient": "0x1111111111111111111111111111111111111111",
"siteName": "Space Poggers Market",
"theme": "light",
"design": "trader",
"dataOrigin": ""
}The same settings as variables, for a site set up by hand:
MARKET_CHAIN_ID=1
MARKET_COLLECTIONS=0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c
MARKET_VENUES=opensea,nftx-v2,nftx-v4,native
FEE_BPS=50
FEE_RECIPIENT=0x1111111111111111111111111111111111111111
MARKET_SITE_NAME=Space Poggers Market
MARKET_THEME=light
MARKET_DESIGN=traderSet variables in the Worker's Settings, Variables and Secrets as plain text, not secrets, and redeploy.
Changing settings#
- Stored settings: make a new settings code in the builder and replace the stored record with it, using the unlock code. Setup has the steps.
- Variables: change them in the dashboard and redeploy.
- From variables to stored settings: remove
MARKET_CHAIN_ID,MARKET_COLLECTIONS,MARKET_REVIEWED_COLLECTIONS,FEE_RECIPIENTandFEE_BPS, redeploy, then claim.
A changed fee or fee wallet applies to orders prepared after the change. Published listings keep the fee and wallet they were signed with until they expire, up to 30 days. An offer that pays a former fee wallet is hidden and cannot be accepted through your site. If your site says the settings changed, prepare an order you had not yet published again.