[英]How can Contract get NFT's metadata?
I have two Token Contracts ("AA" = ERC721, "BB" = ERC20).我有两个代币合约(“AA”= ERC721,“BB”= ERC20)。
I will make "Swap Contract" that can give "BB" differently according to the "AA"'s metadata.我将根据“AA”的元数据制作可以给“BB”不同的“交换合约”。 (eg "level"). (例如“级别”)。
How do I make the "Swap Contract" for this function to work?如何使此功能的“交换合约”起作用?
Any example plz.任何例子请。
"If you are hosting the metadata outside the blockchain you can't do that.如果你在区块链之外托管元数据,你就不能这样做。 You need to use an oracle.你需要使用预言机。 Read more. 阅读更多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.