hello guys, I want to use web3.js on backend.
how can I connect to an existing contract to fire its methods?
I have ABI & address, so I pass both to:
var c = web3.eth.contract(ABI).at(addr);
Should I be connected to the contract?
How can I now fire methods?
Is the undergoing way right?
c._eth.MethodName()

Dec 30, 2017, 8:51 AM
Just c.methodName()
Dec 30, 2017, 10:13 AM
It is correct, I am sure, the thing is that I need to connect to the running node, or initialize own. Are there any free nodes I can connect to?
Dec 30, 2017, 11:01 AM
Metamask
Oh backend
Use infura
https://infura.io
Dec 30, 2017, 11:15 AM
sorry for bothering, but what is my Access Token?
They ask me to add it to the link, but I can't see it anywhere
Dec 30, 2017, 11:18 AM

© 2024 Draquery.com All rights reserved.