Get NFT Info

Request

In order to get a NFT info on-chain, SDK provides you with a getNFTInfo endpoint to do so

try {
  const testnetClient = nft2Client.getNFT2ContractMultichain('testnet');
 
  const { nft, derivedAccount } = await testnetClient.getNFTInfo(
    97,
    "0x...",  // collection address
    "123",  // token id
  );
 
  console.log(nft, derivedAccount)
} catch (e) {
  console.error(e);
}

Parameters

  • chainId: Which chain to get from.

  • collectionAddress (string): Collection contract address.

  • tokenId (string): NFT token ID.

Response

Last updated