Comments on: Javascript API 2 https://dappsforbeginners.wordpress.com Ethereum contract tutorials. Thu, 05 Mar 2015 20:36:48 +0000 hourly 1 http://wordpress.com/ By: Me https://dappsforbeginners.wordpress.com/tutorials/javascript-api-2/comment-page-1/#comment-4 Thu, 05 Mar 2015 20:36:48 +0000 http://dappsforbeginners.wordpress.com/?page_id=128#comment-4 Hi
in the last example shouldn’t it be: “contract.sendCoin(receiverAddress, amount);”, instead of “contract.send(receiverAddress, amount);”
also how can I tell the javascript when I call “contract.send(receiverAddress, amount);” to send a certain amount of ether with the transaction?
I am having a contarct which has a function like: “contract.deposit()” and it takes no arguments, instead it takes the amount from the value of the transaction. How do I realize that with a javascript call?

Btw, great tutorial, thanks!

Like

]]>