NFT

The nft API provide users the entries to interact with the NFTs.

Update NFT

Update NFT token uri

The Update NFT token uri API provides users to update the nft token uri according to the contract address and the token_id.

Update NFT token uri

put

Update NFT token uri

Path parameters
addressstringRequired

address

token_idstringRequired

token_id

Header parameters
AuthorizationstringRequired

Bearer Open_JWT

Body
chainstring · enumRequiredPossible values:
contract_typestring · enumRequiredPossible values:
token_uristringOptional
Responses
200
OK
application/json
put
PUT /v1/nft/{address}/{token_id}/tokenUri HTTP/1.1
Host: api.nftrainbow.cn
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "chain": "conflux",
  "contract_type": "erc721",
  "token_uri": "text"
}
{
  "block_reason": 1,
  "chainId": 1,
  "chainType": 1,
  "created_at": "text",
  "data": "text",
  "deleted_at": {
    "time": "text",
    "valid": true
  },
  "epochHeight": 1,
  "epoch_number": 1,
  "error": "text",
  "from": "text",
  "gas": 1,
  "gasCoveredBySponsor": true,
  "gasFee": 1,
  "gasPrice": 1,
  "hash": "text",
  "id": 1,
  "nonce": 1,
  "pending_reason": "text",
  "pre_hashs": "text",
  "stage": 1,
  "state": -10,
  "status": 1,
  "storageCollateralized": 1,
  "storageCoveredBySponsor": true,
  "storageLimit": 1,
  "taskType": 1,
  "to": "text",
  "tryReceiptCnt": 1,
  "updated_at": "text",
  "value": 1
}
Name
Meaning
Param Type
Data Type

Authorization

Bearer Token

Header

string

Query NFT

Query specific NFT of specific account

The Query specific NFT of specific account API provides users to get the nft information according to the contract address and the token_id.

Get NFT info, mainly owner and metadata

get

Get NFT info, mainly owner and metadata

Path parameters
addressstringRequired

address

token_idstringRequired

token_id

Header parameters
AuthorizationstringRequired

Bearer Open_JWT

Responses
200
OK
application/json
get
GET /v1/nft/{address}/{token_id} HTTP/1.1
Host: api.nftrainbow.cn
Authorization: text
Accept: */*
{
  "contract_address": "text",
  "owner": "text",
  "token_id": "text",
  "token_uri": "text"
}
Name
Meaning
Param Type
Data Type

Authorization

Bearer Token

Header

string

The token_id is a number like "123", which type is string. If the type parameter pass erc1155, the response's owner field will be empty.

Query NFT Hold count

Last updated