js icon indicating copy to clipboard operation
js copied to clipboard

Create input type for NFTs

Open lorisleiva opened this issue 3 years ago • 0 comments

It would be nice to have a defined type for accessing an NFT that's not just the Nft class itself.

Something like:

type NftValue = Nft | PublicKey | string;

This would allow us to have a more versatile API. For instance,

metaplex.nfts().update(nft, params);
metaplex.nfts().update(mintAddress, params);
metaplex.nfts().update("someMintAddressAsBase58", params);

lorisleiva avatar May 11 '22 10:05 lorisleiva