RPC backend

List of API commands using RPC. Check the available marketplace api url in config page

get
Get Marketplace data

https://marketplace-backend/api/marketplace/:network_id/:page
Returns list of nfts minted in certain blockchain network. Amount of nfts returned from network could be maximum 10. List of supported network_ids are in Marketplace/config page.
Request
Response
Request
Path Parameters
page
required
number
Page offset. Every request returns 10 nfts. By page offset.
network_id
required
number
ID of the Blockchain network. For example: 1 - Ethereum mainnet 4 - Rinkeby testnet To see all supported networks, please look at config page
Response
200: OK
Cake successfully retrieved.
{"count":10,"data":[{"id":11,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549882,"generation":0,"quality":1,"img_id":3},{"id":12,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549883,"generation":0,"quality":1,"img_id":1},{"id":13,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549883,"generation":0,"quality":1,"img_id":1},{"id":14,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549879,"generation":0,"quality":1,"img_id":1},{"id":15,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549886,"generation":0,"quality":1,"img_id":2},{"id":16,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549883,"generation":0,"quality":1,"img_id":1},{"id":17,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549884,"generation":0,"quality":1,"img_id":3},{"id":18,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549878,"generation":0,"quality":1,"img_id":3},{"id":19,"wallet_address":"0xf218466013f3957d307c72154dbe466da2aaec17","block_number":0,"txid":"some data","timestamp":1615444803,"generation":0,"quality":1,"img_id":4},{"id":20,"wallet_address":"0xb71471fff16dbba815479cdc6544c0e00af6d8b2","block_number":0,"txid":"some data","timestamp":1615549879,"generation":0,"quality":1,"img_id":3}],"offset":1}

get
Get Scapes NFT metadata

https://marketplace-backend/api/nft/:network_id/:id
Returns metadata of the NFT. Warning! The "wallet_address" parameter returned by API might be wrong. So to be for sure, check it from blockchain. How to get the Image of NFT? The parameter "img_id" in returned metadata is the image ID. Use it in CDN to fetch NFT image: https://cdn.seascape.network/nfts/<img_id parameter>.gif
Request
Response
Request
Path Parameters
id
required
number
The ID of nft
network_id
required
number
The ID of blockchain network. To see supported blockchain ids, check marketplace/config page
Response
200: OK

get
Get Scapes page

https://marketplace-backed/api/scapes/:page
Returns list of all sell orders in all blockchains within Seascape Marketplace. Amount of nfts that api returns could be maximum 10.
Request
Response
Request
Path Parameters
optional
number
Returns next batch of
Response
200: OK