Content
@
0 reply
0 recast
0 reaction
killjoy.eth
@killjoy
Does anyone know of a simple NFT escrow contract on main net? This shouldn’t be hard right? I send it an NFT with a desired price from a particular user, if the user sends the money to me via the contract the nft goes to them. Why can’t I find a trustworthy looking dapp that does this one simple thing?
5 replies
8 recasts
31 reactions
YuriNondual(Mental Health Break)
@yurinondual.eth
Almost all Auctions are using escrow, so I would look into simple Auction contracts for reference
1 reply
0 recast
0 reaction
killjoy.eth
@killjoy
Hoping not to have to write + deploy one but find something already deployed for my use case. Private sale of an NFT P2P.
1 reply
0 recast
0 reaction
YuriNondual(Mental Health Break)
@yurinondual.eth
Got it. I would advice then to ask buyer to make an Offer on one of the popular Marketplaces, then you just accept the offer.
1 reply
0 recast
0 reaction
killjoy.eth
@killjoy
Yeah this is the best option I can find, but it should be possible to do this without an intermediary or paying any fees right? In my head the contract is basically: 1. Create escrow terms (token Id, token address, seller address, agreed price, expiration date) return an ID 2. Buyer transfers money in allocating it to this escrow exchange (ID) 3. At the moment the contract becomes approved to spend the token, the buyer calls a function that causes the contract to send the NFT to the buyer, and the funds to the seller. 4. If the exchange hasn't been performed before the expiration date, the buyer can reclaim their funds.
1 reply
0 recast
0 reaction
YuriNondual(Mental Health Break)
@yurinondual.eth
You also need to make sure there's a way to cancel it and get nft back. So need to save original token owner address and gated function to cancelEscrow. But tbh I would do it in reverse. The NFT owner should go first, deposit NFT into contract and specify account that should be able to buy it and amount you are expecting. Then buyer approves contract to transfer ETH or erc20 and passes tokenId to buyEscroToken, and if all is good and balance is sufficient, contract transfers erc20 from buyer and transfers escrowed NFT to him.
1 reply
0 recast
1 reaction