Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to receive ether on smart contract

Accepting payments in Ethere only requires 
a function with a payable keyword:

contract MyContract {

	function payMe() external payable {}

}
Source by ethereum.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #receive #ether #smart #contract
ADD COMMENT
Topic
Name
4+7 =