注解
This documentation is under construction and the chain3.js 1.0 stable version isn’t released. If you’re using a version v0.1.x of chain3.js then please check chain3js 0.1.x or https://github.com/MOACChain/moac-core/wiki/Chain3.
Chain3 JavaScript 软件库 1.0.x¶
chain3.js 1.0.x 是基于以太坊 web3 1.2.1版本设计的JavaScript软件库,可以用于处理和MOAC母链及应用链节点的数据交换。 目前还在测试阶段,用户有问题可以到 Chain3 JS 代码库 提交问题。 与0.1.x版本不同的地方,在于本版本使用了web3 1.2.1里面的多个软件库,如web3-eth-accounts,在web3.js基础上,
chain3.js 1.0.x 使用了web3.js库的多个函数,支持异步调用中Promise和Events实现。
The following documentation will guide you through installing and running chain3.js, as well as providing a API reference documentation with examples.
Contents:
- Chain3
- Chain3.mc
- 使用校验和进行检验的帐号地址
- subscribe
- Contract
- Iban
- personal
- accounts
- ens
- abi
- net
- options
- defaultBlock
- defaultAccount
- defaultGasPrice
- defaultGas
- transactionBlockTimeout
- transactionConfirmationBlocks
- transactionPollingTimeout
- transactionSigner
- setProvider
- providers
- givenProvider
- currentProvider
- BatchRequest
- getProtocolVersion
- isSyncing
- getCoinbase
- isMining
- getHashrate
- getGasPrice
- getAccounts
- getBlockNumber
- getBalance
- getStorageAt
- getCode
- getBlock
- getBlockTransactionCount
- getUncle
- getTransaction
- getPendingTransactions
- getTransactionFromBlock
- getTransactionReceipt
- getTransactionCount
- sendTransaction
- sendSignedTransaction
- sign
- signTransaction
- call
- estimateGas
- getPastLogs
- getWork
- submitWork
- requestAccounts
- getChainId
- getNodeInfo
- getProof
- chain3.mc.accounts
- Core Method Module
- AbstractMethodFactory
- AbstractMethod
- Type
- beforeExecution
- afterExecution
- execute
- rpcMethod
- parametersAmount
- parameters
- callback
- setArguments
- getArguments
- isHash
- AbstractObservedTransactionMethod
- Type
- beforeExecution
- afterExecution
- execute
- rpcMethod
- parametersAmount
- parameters
- callback
- setArguments
- getArguments
- isHash