Net_flixtb
Net_flixtb

Reputation: 13

How can Contract get NFT's metadata?

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.

Upvotes: 1

Views: 955

Answers (1)

v1bio
v1bio

Reputation: 128

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

Upvotes: 1

Related Questions