Get NFT contract metadata
This API allows fetching contract metadata.
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}/NFT/metadata"
-H "Content-Type: application/json"
Path parameters:
chain
:[string] chain to work with. Either testnet
or mainnet
.
contract_id
:[string] smart contract account .
Example:
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/near/chain/testnet/contract/nft.waltid.testnet/NFT/metadata"
-H "Content-Type: application/json"
val contractId = "demo.khaled_lightency1.testnet"
val chain = "testnet"
val result = NearNftService.getNftNearMetadata(contractId , chain)
println("operation result: $result")