Blockchain Development (13) Development Documentation - Web3 JavaScript app API

Web3 JavaScriptÐappAPI

To make your application work on Ethereum, you can use the objects provided by the web3.js library web3. Under the hood, it communicates with the local node via RPC calls. web3.js works with any Ethereum node that exposes the RPC layer.
web3 contains eth object - web3.eth (specifically for Ethereum blockchain interaction) and shh object - web3.shh (for Whisper interaction). We will introduce other objects for other web3 protocols over time. A working example can be found here.
If you want to see some more complex examples using web3.js, check out these useful application patterns.
In Chinese, it is recommended to refer to the page translated by friends
http://blog.csdn.net/qq_28114645/article/details/78802176 In
English, it is recommended to refer to the following two addresses:
1. https://ethereum.gitbooks.io/frontier-guide/content /web3.html#web3versionapi
2. https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethcontract

In our development, play a certain role.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325350140&siteId=291194637