⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today β†’
Skip to main content

marketplace_getListings – Mythos Gaming RPC

marketplace_getListings surfaces active sales by reading pallet_marketplace::ItemPriceOf and related escrow records, returning data ready for storefronts or price tickers.

Parameters​

ParameterTypeRequiredDescription
collectionIdstringNoFilter listings by collection
sellerstringNoFilter by seller account
limitnumberNoPage size (default 50)
cursorstringNoPagination cursor

Response Fields​

FieldTypeDescription
listingsarrayActive listings matching filters
nextCursorstringCursor for next page (null when finished)

Listing Object​

FieldDescription
collectionIdNFT collection identifier
itemIdNFT item identifier
sellerAccount that set the price
priceAsking price in MYTH
whitelistedBuyerOptional target account
expiresAtOptional expiration block

Request Example​

{
"jsonrpc": "2.0",
"method": "marketplace_getListings",
"params": [
{
"collectionId": "0xfa",
"limit": 20
}
],
"id": 13
}

Response Example​

{
"jsonrpc": "2.0",
"result": {
"listings": [
{
"collectionId": "0xfa",
"itemId": "0x02",
"seller": "0x6f889bd1f2f17cf62f6be41996d0d33df7f8fa7a7f6a0c7003c965c4c068b0d5",
"price": "1500000000000000000",
"whitelistedBuyer": null,
"expiresAt": null
}
],
"nextCursor": null
},
"id": 13
}

Prices are denominated in MYTH’s smallest unit (12 decimals). The example references the Nitro Nation crate minted and listed in block 2,611,955.

Operational Guidance​

  • Refresh listings every ~6 seconds to align with Mythos block time.
  • Pair with author_submitExtrinsic to automate relisting after purchases or auctions.
  • Track DAO-approved fee changes to keep storefront pricing accurate.