In the section, "Javascript API 2", when I copy-paste this function:
function sendEther() { web3.eth.transact({to: document.querySelector('#recipient').value ,value: document.querySelector('#value').value}); };
Then I load the page into my browser. I enter a second address I created in alethzero: 0x4e61b98e16f370d1e4a9c66a4191f5a161ecdc65 I enter an amount: 10000 And I click "Send Ether".
The web browser console shows two messages: Use of getPreventDefault() is deprecated. Use defaultPrevented instead. ReferenceError: web3 is not defined
So I copied a bunch of code from other examples I've found elsewhere:
And I copied this code into the same block as the tutorial code:
var web3 = require('web3');
// The following command generates a console error // in ethereum.min.js: NS_ERROR_FAILURE web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080'));
Comments
function sendEther() {
web3.eth.transact({to: document.querySelector('#recipient').value ,value: document.querySelector('#value').value});
};
Then I load the page into my browser.
I enter a second address I created in alethzero: 0x4e61b98e16f370d1e4a9c66a4191f5a161ecdc65
I enter an amount: 10000
And I click "Send Ether".
The web browser console shows two messages:
Use of getPreventDefault() is deprecated. Use defaultPrevented instead.
ReferenceError: web3 is not defined
So I copied a bunch of code from other examples I've found elsewhere:
And I copied this code into the same block as the tutorial code:
var web3 = require('web3');
// The following command generates a console error
// in ethereum.min.js: NS_ERROR_FAILURE
web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080'));
Search for the text: "im a stupid"