2

I'm interested in writing a smart contract using solidity that sends ether from one account to another. What would the syntax be? If possible, could you point me to a solidity contract that sends ether from one party to another?

For example, say two parties enter into a smart contract, they both wager some ether on a coin flip. In the case of the coin flipping heads, the person who called heads should get the money both people wagered.

Your Answer

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

Browse other questions tagged or ask your own question.