API Reference

NFT Refresh API - NFT API

Refresh selected NFT metadata.

This endpoint is supported on the following chains and networks:

  • Conflux Core: cfx-core
  • Conflux eSpace: cfx-espace

Parameters

  • contractAddress: [string] address of NFT contract
  • ownerAddress: [string] address of owner
  • tokenId: [hexadecimal] Id for NFT

Example

Conflux Core

request1

Choose cautiously

Notice: Since the token corresponding to the contract_address will be more, there is a risk of query timeout. It is recommended to control the data within 200 entries.

curl --location --request PUT 'https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577/nft-api/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contractAddress": "cfx:acdc3h37014a4tkfy9r3nyh4b29f5e0pv6h0tch8du"
}'

request2

curl --location --request PUT 'https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577/nft-api/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contractAddress": "cfx:acdc3h37014a4tkfy9r3nyh4b29f5e0pv6h0tch8du",
    "tokenId": "0xde9"
}'

request3

curl --location --request PUT 'https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577/nft-api/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ownerAddress": "cfx:aamt7twvntt9dyc6bffy59xvu4ts2py0tprwyrb0d2"
}'

Conflux eSpace

request1

Choose cautiously

Notice: Since the token corresponding to the contract_address will be more, there is a risk of query timeout. It is recommended to control the data within 200 entries.

curl --location --request PUT 'https://cfx-espace.unifra.io/v1/4bd2d1249e644ae288dbfd4e076f0141/nft-api/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contractAddress": "0x00e94729af5cedd1a794b1051ed3a54124b43b36"
}'

request2

curl --location --request PUT 'https://cfx-espace.unifra.io/v1/4bd2d1249e644ae288dbfd4e076f0141/nft-api/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contractAddress": "0x324021590bbdd427f104953bb06999d55f230c64",
    "tokenId": "21b9c"
}'

request3

curl --location --request PUT 'https://cfx-espace.unifra.io/v1/4bd2d1249e644ae288dbfd4e076f0141/nft-api/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ownerAddress":"0x2d65667c3d124d6aa4936f2af950f02905835275"
}'
Language
URL
Click Try It! to start a request and see the response here!