Bitcoin Forum
July 18, 2024, 09:33:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Web3.js question  (Read 90 times)
myapple (OP)
Member
**
Offline Offline

Activity: 100
Merit: 11


View Profile
February 05, 2018, 10: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
mvrcrypto
Newbie
*
Offline Offline

Activity: 9
Merit: 4


View Profile
February 05, 2018, 11: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.
falconfree
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
February 05, 2018, 11: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!