ERC721 Tokens – Paying for ERC721 Tokens with ERC20 Tokens Instead of ETH

dapp-developmenterc-20erc-721nfttokens

I can create NFT's with an ERC20 token but I want to set the price of a NFT to an ERC20 token too, not ETH.

For example on OpenSea I can sell my NFT's for ETH but I want to get payed in any ERC20 token I would like to.How could I do that?

enter image description here


You can reach the contract I developed here and you can get help by contacting me.

Current Solution


Diagram of the contract structure

enter image description here

Best Answer

Yes, this is a common question.

I have fully spelled this out as a demo project including the smart contracts and the front end JavaScript.

https://github.com/fulldecent/spend-ERC20-create-ERC721

This project was sponsored by Arianee.

Related Topic