Ecosystems Algorand Querying Asset information Get NFT Metadata by asset id Return the NFT metadata of an ASA on Algorand
REST API Kotlin
API Doc
Swagger Doc | ReDoc
Curl call example
Copy 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 :
Copy curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/Algorand/chain/ALGORAND_TESTNET/asset/257177850/metadata"
-H "accept: application/json"
Response :
Copy {
"name": "string",
"description": "string",
"image": "string",
"decimals": 0,
"unitName": "string",
"properties": {
"size": 0
}
}
Copy import id.walt.nftkit.services.AlgorandNftService
import id.walt.nftkit.services.AlgorandChain
val assetId = "257177850"
val result = AlgorandNftService.getNftMetadata(assetId, AlgorandChain.TESTNET)
println(result)