Seascape Network
EN
EN
  • Welcome to Seascape
  • Guides
    • How to use the Scape Store Swapping Feature
    • How to Play Profit Circus
    • Guide to NFT Brawl
    • Guide to Staking Saloon
    • Guide to Scape Forum
    • Guide to Zombie Farm
    • Bridge Your MSCP between MOVR and BSC
    • Guide to join the pCWS Pools and NFT Trading
  • SMARTCONTRACTS
    • Addresses
      • Lighthouse
      • Changelog
    • Installation
    • Seascape NFT (SCAPES)
    • Crowns (CWS) token
  • Game for Developers
    • API Urls
    • Seascape Nft
    • Game 2: NFT BRAWL
      • Leaderboard
    • Game 5: Zombie Farm
      • Glossary
      • Reward categories
      • Option categories
      • API call order
  • Scape Store (Marketplace)
    • Config
    • Nft Swap
    • RPC backend
    • Smartcontract Changelog
  • API changelog
  • Seadex
    • Intro
    • Local deployment
    • Addresses
    • Managing Token
      • Add supported token to Factory
  • Lighthouse (IDO)
    • API
    • Smartcontrontracts
      • Tiers
    • Installation
  • Seascape SDK
    • Intro
    • Installation
    • Features
      • Shared Smartcontract Parameters
        • Configuration Format
        • Seascape CDN Config
        • CdnWrite
          • Truffle Framework
          • Hardhat Framework
          • Non-framework update
        • CDN Read
      • Server Proof
        • Smartcontract Data
        • Proof of Server
Powered by GitBook
On this page
  • Get Seascape NFT Image
  • Get Seascape NFT data
  • Get Seascape NFT data in OPENSEA format
  • Get batch of nfts by the owner's wallet address
  • Get Seasacpe Points (SP)

Was this helpful?

  1. Game for Developers

Seascape Nft

Seascape Nft related API.

Get Seascape NFT Image

GET https://url/nft/img/:id

This endpoint allows you to get image of NFT.

Path Parameters

Name
Type
Description

id

integer

NFT Id

{"error": "403 multiple result", "err_code": 403}
{ "error": "404 not found", "err_code": 404}

Get Seascape NFT data

GET https://url/nft/data/:id

This endpoint returns NFT parameters, such as generation, quality etc...

Path Parameters

Name
Type
Description

id

integer

NFT id

{"generation":0,"id":58,"img_id":3,"quality":1,"wallet_address":"0xC6EF8A96F20d50E347eD9a1C84142D02b1EFedc0"}
{"error": "404 not found", "err_code": 404}
{"error": "505 json to string convert error", "err_code": 500}

Get Seascape NFT data in OPENSEA format

GET https://url/nft/meta/:id

The parameters of Token, but for online Token sale platform https://opensea.io

Path Parameters

Name
Type
Description

id

integer

NFT id

{
   "attributes":[
      {
         "max_value":5,
         "trait_type":"Quality",
         "value":1
      },
      {
         "display_type":"date",
         "trait_type":"Birthdate",
         "value":1607276794
      },
      {
         "trait_type":"Generation",
         "value":0
      }
   ],
   "description":"a simple Seascape NFT.",
   "external_url":"http://api-test.blocklords.io:81/nft/meta/58",
   "image":"http://api-test.blocklords.io:81/nft/img/58",
   "name":"Seascape NFT #58"
}
{
   "error":"404 not found",
   "err_code":404
}
{
   "error":"500 json to string convert error",
   "err_code":500
}

Get batch of nfts by the owner's wallet address

GET https://url/owned-by/:wallet-address

Path Parameters

Name
Type
Description

wallet_address

string

A wallet address of the user starting with the 0x prefix.

[
   {
      "generation":0,
      "id":44,
      "img_id":4,
      "quality":1,
      "wallet_address":"0xe7186c0c4e6b249a269bd7fa3c3e1da54250c18b"
   },
   {
      "generation":0,
      "id":325,
      "img_id":7,
      "quality":2,
      "wallet_address":"0xe7186c0c4e6b249a269bd7fa3c3e1da54250c18b"
   },
]

GET https://url/owned-by/:wallet-address

Path Parameters

Name
Type
Description

string

Get Seasacpe Points (SP)

GET https://url/nft/sp-points/:id

Returns the calculated Seascape Points. Seascape Points is a weight of NFT in the Seascape platform. The higher the value, the bold nft it is. Seascape Points are calculated in format of generation multiplied by quality. The older the generation, and higher the quality, the seascape points will be high too. Addiontally, this endpoint returns a signature of hash of seascape points. Any smartcontract of Seascape Platform that requires Seascape Points, will also require the signature of seascape points. By that signature, smartcontract verifies that our backend generated it itself.

Path Parameters

Name
Type
Description

id

integer

NFT id

{
   "id":"58",
   "scape_points":600,
   "signature":"0xa23a3101d845bfa2ee533afd5c755a3f3855dbc362490ab5f4c972e411be6f63622b5571d6b86a0390b528a8bbdd341ed526989c67ff986f8da99859edd3992301"
}
{
   "error":"403 too many signatures",
   "err_code":403
}
{
   "id":"3",
   "scape_points":0,
   "signature":""
}
{
   "error":"500 json to string convert error",
   "err_code":500
}
PreviousAPI UrlsNextGame 2: NFT BRAWL

Last updated 4 years ago

Was this helpful?