0

My question is simple If I want to send some ether to someone in remix like

contract Sender {
  function send(address _receiver) payable {
    _receiver.send(msg.value);
  }
}
  • Metamask asks me as a sender to confirm the transaction and thus simply send the amount to receiver without even asking him/her.

How can I make receiver accept the transaction ?

0

As long as the receiver is a payable address (i.e. a regular Ethereum account or a smart contract with a payable fallback function), they will automatically accept it.

Why do you think the receiver would not accept it, or what use case would there be for a receiver to reject a transaction?

  • Is it not true both receiver and sender sign the transaction first to be recorded in blockchain ? – user8428217 Jan 5 at 12:11
  • No, only the sender signs the transaction, there is no reason for the receiver to sign as it has nothing to prove. – Jaime Jan 5 at 13:18

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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