Skip to main content

Marketplace API

tip

Prices are in zatoshis (1 ZEC = 100,000,000 zat).


All Listings

Get all names currently listed for sale.

GET /v1/marketplace/listings
curl https://zns-server-production.up.railway.app/v1/marketplace/listings

Response 200 OK

{
"listings": [
{
"name": "premium",
"price_zat": 500000,
"seller_address": "u1sell...addr",
"list_txid": "e4f5a6b7...",
"listed_at_height": 2920100
}
]
}

Single Listing

Get listing details for a specific name.

GET /v1/marketplace/listing/{name}
curl https://zns-server-production.up.railway.app/v1/marketplace/listing/premium

Response 200 OK

{
"name": "premium",
"price_zat": 500000,
"seller_address": "u1sell...addr",
"list_txid": "e4f5a6b7...",
"listed_at_height": 2920100
}
FieldTypeDescription
namestringListed name
price_zatnumberPrice in zatoshis
seller_addressstringSeller's payout address
list_txidstringTransaction ID of the LIST operation
listed_at_heightnumberBlock height when listed

Errors: 404 No active listing for this name