current position:Home>How do Ethereum -web3 and golang interact

How do Ethereum -web3 and golang interact

2022-02-03 20:55:40 Q & A of Denglian community

Please consult , For example, I have a page , You need to enter ether , Then you must use web3 Well , That back end go, How do I know my front-end account ?web3 Build , Also need to build js The server program , then rpc call , And then back again accounts Array ?

Take the answer 1:

Yours go What is the role of the back end ? Do you want to do decentralized application or centralized ?

decentralized , To initiate a transaction , The front end communicates directly with the node , There's no need for the back end go Handle .

Centralized architecture , For front-end and back-end communication http signal communication , Pass it to the back end .

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.

Random recommended