By default Geth enables all APIs over the IPC (ipc) interface and only the db, eth, net and web3 APIs over the HTTP and WebSocket interfaces.

最重要的是eth这个模块

使用

注意事项

默认用同步的方式，同时也支持异步。
As this API is designed to work with a local RPC node, all its functions use synchronous HTTP requests by default.
If you want to make an asynchronous request, you can pass an optional callback as the last parameter to most functions.

bignumber 依赖bignumber这个模块 wei
You will always get a BigNumber object for number values as JavaScript is not able to handle big numbers correctly.

账户安全

私钥:

私钥文件: 用密码加密私钥生成本地JSON文件 需要密码＋文件

event && logs

Events, logs, and event logs are usually Ethereum terms that are interchangeable (in some contexts a particular term is favored, for example events in Solidity and web3.js, and logs as in the EVM and Yellow Paper).