I've developed my own private chain for testnet using geth and CLique and i have some issues with web3.js environment. I starts my nodes using the console parameter in order to get to the Web3 console but now i discovered that some functions doesn't work. For example, i call the contract using
but if, following the doc i use
new web3.eth.Contract(jsonInterface[, address][, options])
it doesn't work, returning
"Contract is not a function".
Or again, if i try to call
myContract.options i get an error back.The same happens for example with the
web3.eth.getPastLogs(options [, callback])
Anyway, it looks like my web3 is not complete or something is missing. How can i solve that? Since geth encapsulates a console environment i thought it was enough, am i missing something?