-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using web3 object on meteor server side code? #381
Comments
Did you try this https://github.com/ethereum/wiki/wiki/JavaScript-API#adding-web3
|
i tried should i require it through npm ? |
Even though i can see web3 @package.json is supposed to export to the server, i still get it undefined on meteor server code.
|
The Web3 object is available (uppercase). You need to instantiate it first. See the veering started guide on the web3.js docs page in the wiki.
|
@frozeman ooooooh gosh. my bad! where is my n00b badge? ( : |
Hi |
try e.g. still use: |
I'm trying to use web3 from the server as i wish the server side code to do the interaction with the blockchain, so i can keep my application "transparent" to users, but web3 is undefined after adding this package.
my installation was simply:
meteor add ethereum:web3
Any suggestions ?
The text was updated successfully, but these errors were encountered: