NFT Gen 2 Tech Doc
  • Introduction
  • Overview
    • NFT Data Chain
    • Cosmos SDK
    • Modules
      • Core Module
      • Oracle
  • Integration
    • Creating Schema
    • System Mode
      • Minting
      • Sending Action
    • User Mode
      • Minting
      • Sending Action
  • Data-chain Base URI
  • Getting Started
    • Installation (Golang)
    • Getting Started
      • Download Binary
      • Developer Resources
      • Binary Overview
      • Create Account
      • Faucet
      • Deploy NFT Gen2
      • Perform Action of NFT Gen2
      • Update NFT Schema
      • Script
    • SDK Package for NodeJs
      • Example Resources
      • Deploy NFT Gen2
      • Perform Action of NFT Gen2
      • Update NFT Schema
    • SDK for GO
      • Requirements
      • Installation
      • Usage
      • Preparing Key for Authentication
      • Supported Messages and Queries
      • Examples
    • Six Protocol Developer Community
Powered by GitBook
On this page
  • Base URI
  • OpenSea Metadata Standard (example)
  • Error Codes

Data-chain Base URI

This is used as the base URI for the contract when using the data chain.

Base URI

The URI below is the NFT Collection's baseURI generated from the data chain. The {schemaCode} is the code from the schema that was created.

Testnet endpoint

# Base URI for testnet
https://six-data-chain-backend-api-gateway-7kl45r91.ts.gateway.dev/api/nft/metadata/schema_code}/{tokenId}

#for example
# https://six-data-chain-backend-api-gateway-7kl45r91.ts.gateway.dev/api/nft/metadata/six_rocket_ticket/1

Mainnet endpoint

# Base URI for mainnet
https://six-data-chain-backend-backend-api-sixnet-gateway-3hi29er0.an.gateway.dev/api/nft/metadata/{schema_code}/{tokenId}

#for example
#https://six-data-chain-backend-backend-api-sixnet-gateway-3hi29er0.an.gateway.dev/api/nft/metadata/six_rocket_ticket/1

OpenSea Metadata Standard (example)

{
  image: "https://ipfs.io/ipfs/QmWzf4885QfDquiPra4CdWz15Wys761jfPrfNNNaQTXtmw/1.png",
  name: "NFT #01",
  description: "This is a description for this NFT series.",
  attributes: [
    {
      trait_type: "Background",
      value: "Red"
    },
    {
      trait_type: "Moon",
      value: "Moon 2"
    },
    {
      trait_type: "Plate",
      value: "Plate 1"
    },
    {
      trait_type: "Tail",
      value: "Tail 2"
    },
    {
      trait_type: "Whale",
      value: "Whale 2"
    }
  ]
}

Error Codes

REQUEST_SUCCESS: "V:0001",
INVALID_REQUEST: "V:0099",
DATABASE_ERROR: "V:0103",
MAP_SCHEMA_ERROR:"V:0104", // fail to map schema (schema and nft data not match) 
GET_NFT_DATA_CHAIN_ERROR:"V:0105", // get nft data from chain error
CALL_BASE_URI_IN_SCHEMA_FAIL:"V:0106", // incase call in schema base uri or token uri fail 

PreviousSending ActionNextInstallation (Golang)

Last updated 2 years ago