webflow-nft-components icon indicating copy to clipboard operation
webflow-nft-components copied to clipboard

How to call contract methods from the web flow nft component

Open realimaginaryverse opened this issue 3 years ago • 3 comments

Once we have added the embedded web flow nft component to mint magically! Thanks! What object should we use to call any other contract methods, like to display number of NFT to mint left? Thanks.

realimaginaryverse avatar Jan 04 '22 22:01 realimaginaryverse

Create a text element with an HTML id minted-counter for minted amount, and HTML id total-counter for total amount. Right now you can't call any other contract methods. What other methods did you have in mind?

theshadowagent avatar Jan 05 '22 17:01 theshadowagent

Thanks of the quick answer. These are handy and probably the most important. I was also thinking about total owners, floor price and volume traded.

realimaginaryverse avatar Jan 05 '22 19:01 realimaginaryverse

Volume traded & floor price can be fetched using OpenSea API only, but total owners is something we might add in the future.

theshadowagent avatar Jan 06 '22 08:01 theshadowagent