How can Contract get NFT's metadata?

Viewed 618

I have two Token Contracts ("AA" = ERC721, "BB" = ERC20).

I will make "Swap Contract" that can give "BB" differently according to the "AA"'s metadata. (e.g. "level").

How do I make the "Swap Contract" for this function to work?

Any example plz.

1 Answers

If you are hosting the metadata outside the blockchain you can't do that. You need to use an oracle. Read more.

Related