Oops.. okay
I'm trying to get my hands on an escrow system for exchanging crypto between buyers and sellers(more like my first solo project).. how can I implement that on bitcoin blockchain
Jun 15, 2021, 6:29 PM
That, could actually be possible. Bitcoin scripts are used for that exact purpose. Like, when certain conditions are met, execute this transaction
Not sure. Never really read about it
And its not solidity. Some other language
Jun 15, 2021, 6:33 PM
Oops!...alright..
Is there anyone here who has built a dapp, both smart contract and frontend?
I've a lot of question
Is there anyone here who has built a dapp, both smart contract and frontend?
I've a lot of question
Jun 15, 2021, 6:37 PM
Ask away
Jun 15, 2021, 6:49 PM
Okay..
I want to build an escrow system yeah.. this is how I imagine the flow..
Smart contract logic..
Withdrawals the crypto from the seller's wallet to an escrow address & upon confirmation of payment, the crypto get sent to the buyer....(is this logic implementable)
I want to build an escrow system yeah.. this is how I imagine the flow..
Smart contract logic..
Withdrawals the crypto from the seller's wallet to an escrow address & upon confirmation of payment, the crypto get sent to the buyer....(is this logic implementable)
Challenges for that logic:
How do I integrate the sellers wallet with the smart contract, if the wallet is not a browser extension like meta mask..like of the seller uses a standalone app like trust wallet or imtoken.
How do I integrate the sellers wallet with the smart contract, if the wallet is not a browser extension like meta mask..like of the seller uses a standalone app like trust wallet or imtoken.
Jun 15, 2021, 6:55 PM
If you really want it as a smart contract, there is one way I can think of
Accept Bitcoin, convert it into ethereum followed by conversion into wbtc. Then use that wbtc on the contract for whatever manipulation
Jun 15, 2021, 7:03 PM
Hmmm..okay.. I've actually scrapped bitcoin from the picture now,.. I'm just looking at ether, erc20 tokens, and bep20 tokens
Jun 15, 2021, 7:06 PM
Then its just a matter of functions
One function to accept ether
One to forward it so seller
One to forward it so seller
And obviously buyer-seller mappings as suited
Jun 15, 2021, 7:09 PM
@mrrobot3_3
Jun 15, 2021, 8:40 PM
Fallback function is your friend🙂
Jun 15, 2021, 8:43 PM
Thanks... I will read on that
Jun 16, 2021, 5:31 AM