Read NFT Details
To retrieve NFT details such as the symbol and total supply, send a GET a request to the /wallet/erc721/info
endpoint, calling the :retrieve
method, with the NFT contract address and network as query parameters.
Read the details of an NFT in a wallet
GET
https://api.playfix.io/wallet/erc721/info:retrieve
Query Parameters
Name
Type
Description
network*
String
Blockchain network of the ERC-20 token. This can be any of the following values:
NETWORK_ETHEREUM
,
NETWORK_ETHEREUM_RINKERBY
,
NETWORK
_POLYGON
, or
NETWORK_POLYGON_MUMBAI
.
contractAddress*
String
Contract address of the ERC-20 token.
Headers
Name
Type
Description
Authorization*
String
Bearer <your_access_token>
{
"symbol": "Moonar",
"totalSupply": "10"
}
Example cURL API Call
curl --request GET \
--url 'https://api.playfix.io/wallet/erc721/info:retrieve?contractAddress=<nft_contract_address>&network=<nft_network>' \
--header 'Authorization: Bearer <your_access_token>'
Example Python Call
import requests
r = requests.get(
"https://api.playfix.io/wallet/erc721/info:retrieve",
params = {
"contractAddress": "<nft_contract_address>".
"network": "<nft_network>"
},
headers = {
"Authorization": "Bearer <your_access_token>"
}
)
print(r.text)
Response
{
"symbol": "Moonar",
"totalSupply": "10"
}
Last updated