Get NFTs for account
Smart contract is responsible for NFTs ownership as it keeps a record of minted NFT per owner
NFT ownership verification
With this API , you can verify the ownership of All The NFTs for a given account.
API Doc
Swagger Doc | ReDoc
Curl call example
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/near/chain/{chain}/contract/{contract_id}/account/{account_id}/NFTS"
-H "Content-Type: application/json"
Path parameters:
chain
:[string] chain to work with. Either testnet
or mainnet
.
contract_id
:[string] smart contract account .
account_id
: your account.
Example:
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/near/chain/testnet/contract/nft.waltid.testnet/account/waltid.testnet/NFTS"
-H "Content-Type: application/json"
val accountId = "waltid.testnet"
val contractId = "nft.waltid.testnet"
val chain = "testnet"
val result = NearNftService.getNFTforAccount(accountId , contractId, chain)
println("operation result: $result")