Error: The method being requested is not available on this server

FabricioMatosFabricioMatos Member Posts: 1
Noob question - I'm probably failing in the setup.
I can create contracts using AlethZero and send new transaction to them, but loading some test html into AlethZero in order to use ethereum.js, I can't connect to the Ethereum local node.

My code is shomething like:

var web3 = require('ethereum.js');
web3.setProvider(new web3.providers.HttpProvider());

var source = ...

var myContract;
var address = web3.eth.sendTransaction({data: web3.eth.compile.solidity(source)}),
Contract = web3.eth.contract(desc);

At this point I get the error:

Error: METHOD_NOT_FOUND: The method being requested is not available on this server ethereum.js:2852
send ethereum.js:2852
send ethereum.js:2579

What I'm missing here?

Comments

Sign In or Register to comment.