I’ve successfully used the Moralis.transfer function to transfer just ETH or just a NFT token. I have closely followed the Cloning Rarible Series and would like to implement a trading system.
User A [Nft1, Nft2, Nft3][100ETH]
User B [][100ETH]
User B sends a trade offer to user A for Nft1 and 5ETH (paying 5ETH for Nft1). If User A likes the trade offer, he accepts it and exchanges Nft1 for 5ETH of User B.
Now we have
User A [Nft2, Nf3][105ETH]
User B [Nft1][95ETH]
I am a beginner to blockchain development but I am a fast learner. How would one go about implementing a trade offer system?