Create a component that gets, as props, the address of the NFT contract on NEAR (ex. 0.share-nft.testnet) and token_id, and proceeds to retrieve token metadata from the contract and show it. Add the component in StoryBook with a few examples.
The method to call on the contract is nft_token. As there is no proper design for this, use projectCard.tsx as inspiration.
Need to be discussed in the comments, or separately, on how to approach this best but the component shouldn't have a user signed in, to NEAR, to work (retrieving information from the blockchain is actually free of gas costs in this case, so it should work).
The following contracts are NFTs and should be used in the examples. hooks and eventually components package needs to be used for the component.
ml1c.ysn-1_0_0.ysn.testnet
ml1w.ysn-1_0_0.ysn.testnet
0.share-nft.testnet
apparitions.art-blocks.testnet
squiggle.art-blocks.testnet
Links
Create a component that gets, as props, the address of the
NFTcontract on NEAR (ex.0.share-nft.testnet) andtoken_id, and proceeds to retrieve token metadata from the contract and show it. Add the component in StoryBook with a few examples.The method to call on the contract is
nft_token. As there is no proper design for this, useprojectCard.tsxas inspiration.Need to be discussed in the comments, or separately, on how to approach this best but the component shouldn't have a user signed in, to NEAR, to work (retrieving information from the blockchain is actually free of gas costs in this case, so it should work).
The following contracts are
NFTsand should be used in the examples.hooksand eventuallycomponentspackage needs to be used for the component.Links