get https://cfx-core.unifra.io/v1//nft-api/getContractMetadata
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 collectioncontractMetadata:
[object]name:
[string] NFT contract namesymbol:
[string] NFT contract symbol abbreviationtotalSupply:
[string] total number of NFTs in a given NFT collectiontokenType:
[string]"CRC-721"
NFT token type
NOTE:
Thename
,symbol
, andtotalSupply
fields 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"
}
}