Author

Topic: Web3.js question (Read 109 times)

newbie
Activity: 18
Merit: 0
February 05, 2018, 06:32:24 AM
#3
Hi thanks
I have a question for web3.js of ethereum
1 to run web3.js whether I must run Geth on the same server
3 whether I must run the fill node on the same server in order to run web3.js
3 web3.js is used to make a web application for ethereum token and contract?
4 web3.js cannot be used in the code of sol? Run in mist?

Thanks
Hi
I have some experience in ethereum development with web3.js.
You can connect web3 to any node (geth on the same server with web3.js app, or Infura service, or others).
Web3 may connect to node via ipc/rpc/ws interfaces. So node mast have open connection via one of this interfaces.
Through web3.js you can interact with contracts/tokens/ethereum accounts and others.
Web3 can compile sol code and deploy it to ethereum blockchain.
Web3 is powerfull Smiley But it has not very good and implicate documentation.
newbie
Activity: 9
Merit: 4
February 05, 2018, 06:29:23 AM
#2
1 to run web3.js whether I must run Geth on the same server

You only need to connect to a node in rpc.
Web3.js make the connection between the blockchain and your back-end.
Then, you choose to use a particular smart-contract on the chain using web3js.

So, to recap, you have to deploy your smart-conttract on the blockchain.
Set up a node (or more).
And connect your back-end to your node with web3js in order to communicate with your smart-contract.
member
Activity: 100
Merit: 11
February 05, 2018, 05:31:58 AM
#1
Hi thanks
I have a question for web3.js of ethereum
1 to run web3.js whether I must run Geth on the same server
3 whether I must run the fill node on the same server in order to run web3.js
3 web3.js is used to make a web application for ethereum token and contract?
4 web3.js cannot be used in the code of sol? Run in mist?

Thanks
Jump to: