1

I am using OpenZeppelin as my open sourced framework for my blockchain development. I am interested to see if there is a work around to accept ERC-20 tokens as payment for the ERC-721 token?

Example: I have some OmiseGo and would Like to Purchase an ERC-721 Token (developed by myself using OpenZeppelin).

I have not come across any instance of this in the OpenZeppelin documentation or online.

  • Have you tried 0x protocol yet? 0x v2 supported trade ERC721 – Haidt_vn Jun 20 at 4:34
1

I guess what you are expecting is trading of erc 721 to erc20. I don't see any standart or EIPs on this. But you can write another smart contract (a trading one) to trade your ERC 721 with ERC 20. This is more of an exchange than related to any specific ERC. You can write contract to trade ERC 20 vs ERC 20 (that is what we have as DEX (a lot more, obviously)). In similar fashion, you have a ERC 721 to ERC-721 exchange or even ERC20 to ERC 721 exchange.

There are different methodologies to implement the trading. I will see, if I can provide some code for ref when I get some more free time.

  • Thanks for your reply! I would appreciate it if you could provide a basic code example of what you mean. Thanks again. – Matoneski Jun 28 '18 at 5:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.