Get Assets for account
Retrieve all the Assets in a given account.
API Doc
Swagger Doc | ReDoc
Curl call example
curl -X POST "http://0.0.0.0:7000
/v2/nftkit/nft/Algorand/chain/{chain}/assets/account/{address}"
-H "accept: application/json"
-d ""
Path Params :
chain
: chain to work with. Either TESTNET
, BETANET
, MAINNET
address
: Account address
Example :
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/Algorand/chain/ALGORAND_TESTNET/assets/account/GYFVJLKGSWQDHFBHBLABUXYHHSU544RV3WH4ZCF3S6HONSDP73TK4VGY3Y"
-H "accept: application/json"
Response :
{
"assets": [
{
"amount": 0,
"assetId": 0,
"deleted": true,
"isFrozen": true
}
]
}
import id.walt.nftkit.services.AlgorandNftService
import id.walt.nftkit.services.AlgorandChain
val address = "GYFVJLKGSWQDHFBHBLABUXYHHSU544RV3WH4ZCF3S6HONSDP73TK4VGY3Y"
val result = AlgorandNftService.getAccountAssets(address, AlgorandChain.ALGORAND_TESTNET)
println(result)