Re:Understanding Ethereum Smart Contracts
by jatsign on Wednesday November 29, 2017 @09:51AM
(#15807167)
I've had success listening to events using web3, against both testrpc and geth (on private and test networks). What version of web3 & testrpc are you using?
[ Parent
| on HN ]
Re:Understanding Ethereum Smart Contracts
by coryl on Wednesday November 29, 2017 @02:17PM
(#15809881)
I'm using web3 1.0.0-beta.26, ganache-cli 6.0.3
I instantiate the web3 object as such: web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
When I try to setup an event listener, console logs this:
Error: The current provider doesn't support subscriptions: HttpProvider