2

Is there a solana/web3 function to return the token id of a NFT?

I'm not sure if that's a thing on Solana or if Opensea is adding those. For example, opensea says this one is #52

pguardiario
  • 53,827
  • 19
  • 119
  • 159

3 Answers3

0

nop, opensea doesn't say this nft is #52. This is taken from name in the metadata and this is not a token id

https://solscan.io/token/31fgM5ZVkDkwwYCWHKXKFWbw2aDXjDpYgj7pjGU46Uhk#metadata

0

What do you exactly want to do with token Id ?

I think what you are looking for is Token Address

If so, then its in the url. or you can look it on sol scan here:

hs_
  • 86
  • 7
0

The closest thing for Solana NFT is the concept of collection https://docs.metaplex.com/programs/token-metadata/certified-collections

noooooooob
  • 1,872
  • 3
  • 21
  • 27