Get NFT Metadata by asset id
Return the NFT metadata of an ASA on Algorand
API Doc
Swagger Doc | ReDoc
Curl call example
curl -X GET "https://0.0.0.0:7000/v2/nftkit/nft/Algorand/chain/{chain}/asset/{assetId}/metadata"
-H "accept: application/json"
Path Params :
chain
: chain to work with. Either ALGORAND_TESTNET
, ALGORAND_BETANET
, ALGORAND_MAINNET
assetId
: The id of the Asset
Example :
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/Algorand/chain/ALGORAND_TESTNET/asset/257177850/metadata"
-H "accept: application/json"
Response :
{
"name": "string",
"description": "string",
"image": "string",
"decimals": 0,
"unitName": "string",
"properties": {
"size": 0
}
}
import id.walt.nftkit.services.AlgorandNftService
import id.walt.nftkit.services.AlgorandChain
val assetId = "257177850"
val result = AlgorandNftService.getNftMetadata(assetId, AlgorandChain.TESTNET)
println(result)