getContractMetadata - NFT API

Queries NFT high-level collection/contract level information

This endpoint is supported only on the following chains and networks:

  • Conflux: Core

Parameters

  • contractAddress: [string hexadecimal] - contract address for the NFT collection

Returns

  • address: [string hexadecimal] contract address for the queried NFT collection
  • contractMetadata: [object]
    • name: [string] NFT contract name
    • symbol: [string] NFT contract symbol abbreviation
    • totalSupply: [string] total number of NFTs in a given NFT collection
    • tokenType: [string] "CRC-721" NFT token type

NOTE:
The name, symbol, and totalSupplyfields will only be set in the response if the contract implements functions to return each field.

Example

Request

curl 'https://cfx-core.unifra.io/v1/nft-api/cf455a9802364d88b8f87b5273d9ddbb/getContractMetadata?contractAddress=cfx:acff8dvjv6pys2ws19dhx753h1h00sum6yhu3m188h'

Response

{
  "Address": "cfx:acff8dvjv6pys2ws19dhx753h1h00sum6yhu3m188h",
  "contractMetadata": {
    "name": "SDQH",
    "symbol": "SDQHNFT",
    "totalSupply": 36533,
    "tokenType": "CRC-721"
  }
}
Language
Click Try It! to start a request and see the response here!