当前位置: 首页 > 文档资料 > MOAC 链中文文档 >

Chain3 JavaScript 软件库 1.0.x

优质
小牛编辑
128浏览
2023-12-01

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 html/moac/js/getting-started.html, as well as providing a html/moac/js/chain3.html with examples.

Contents:

html/genindex.html, html/search.html

User Documentation

  • html/moac/js/getting-started.html
    • html/moac/js/getting-started.html-js
  • html/moac/js/callbacks-promises-events.html
  • html/moac/js/glossary.html
    • html/moac/js/glossary.html#specification
    • html/moac/js/glossary.html#example

API Reference

  • html/moac/js/chain3.html
    • html/moac/js/chain3.html#initiating-of-chain3
    • html/moac/js/chain3.html#chain3-modules
    • html/moac/js/chain3.html#options
    • html/moac/js/chain3.html#defaultblock
    • html/moac/js/chain3.html#defaultaccount
    • html/moac/js/chain3.html#defaultgasprice
    • html/moac/js/chain3.html#defaultgas
    • html/moac/js/chain3.html#transactionblocktimeout
    • html/moac/js/chain3.html#transactionconfirmationblocks
    • html/moac/js/chain3.html#transactionpollingtimeout
    • html/moac/js/chain3.html#transactionsigner
    • html/moac/js/chain3.html#setprovider
    • html/moac/js/chain3.html#providers
    • html/moac/js/chain3.html#givenprovider
    • html/moac/js/chain3.html#currentprovider
    • html/moac/js/chain3.html#batchrequest
    • html/moac/js/chain3.html#version
  • html/moac/js/chain3-mc.html
    • html/moac/js/chain3-mc.html#id1
    • html/moac/js/chain3-mc.html#subscribe
    • html/moac/js/chain3-mc.html#contract
    • html/moac/js/chain3-mc.html#iban
    • html/moac/js/chain3-mc.html#personal
    • html/moac/js/chain3-mc.html#accounts
    • html/moac/js/chain3-mc.html#ens
    • html/moac/js/chain3-mc.html#abi
    • html/moac/js/chain3-mc.html#net
    • html/moac/js/chain3-mc.html#options
    • html/moac/js/chain3-mc.html#defaultblock
    • html/moac/js/chain3-mc.html#defaultaccount
    • html/moac/js/chain3-mc.html#defaultgasprice
    • html/moac/js/chain3-mc.html#defaultgas
    • html/moac/js/chain3-mc.html#transactionblocktimeout
    • html/moac/js/chain3-mc.html#transactionconfirmationblocks
    • html/moac/js/chain3-mc.html#transactionpollingtimeout
    • html/moac/js/chain3-mc.html#transactionsigner
    • html/moac/js/chain3-mc.html#setprovider
    • html/moac/js/chain3-mc.html#providers
    • html/moac/js/chain3-mc.html#givenprovider
    • html/moac/js/chain3-mc.html#currentprovider
    • html/moac/js/chain3-mc.html#batchrequest
    • html/moac/js/chain3-mc.html#getprotocolversion
    • html/moac/js/chain3-mc.html#issyncing
    • html/moac/js/chain3-mc.html#getcoinbase
    • html/moac/js/chain3-mc.html#ismining
    • html/moac/js/chain3-mc.html#gethashrate
    • html/moac/js/chain3-mc.html#getgasprice
    • html/moac/js/chain3-mc.html#getaccounts
    • html/moac/js/chain3-mc.html#getblocknumber
    • html/moac/js/chain3-mc.html#getbalance
    • html/moac/js/chain3-mc.html#getstorageat
    • html/moac/js/chain3-mc.html#getcode
    • html/moac/js/chain3-mc.html#getblock
    • html/moac/js/chain3-mc.html#getblocktransactioncount
    • html/moac/js/chain3-mc.html#getuncle
    • html/moac/js/chain3-mc.html#gettransaction
    • html/moac/js/chain3-mc.html#getpendingtransactions
    • html/moac/js/chain3-mc.html#gettransactionfromblock
    • html/moac/js/chain3-mc.html#gettransactionreceipt
    • html/moac/js/chain3-mc.html#gettransactioncount
    • html/moac/js/chain3-mc.html#sendtransaction
    • html/moac/js/chain3-mc.html#sendsignedtransaction
    • html/moac/js/chain3-mc.html#sign
    • html/moac/js/chain3-mc.html#signtransaction
    • html/moac/js/chain3-mc.html#call
    • html/moac/js/chain3-mc.html#estimategas
    • html/moac/js/chain3-mc.html#getpastlogs
    • html/moac/js/chain3-mc.html#getwork
    • html/moac/js/chain3-mc.html#submitwork
    • html/moac/js/chain3-mc.html#requestaccounts
    • html/moac/js/chain3-mc.html#getchainid
    • html/moac/js/chain3-mc.html#getnodeinfo
    • html/moac/js/chain3-mc.html#getproof
  • html/moac/js/chain3-mc-accounts.html
    • html/moac/js/chain3-mc-accounts.html#create
    • html/moac/js/chain3-mc-accounts.html#privatekeytoaccount
    • html/moac/js/chain3-mc-accounts.html#signtransaction
    • html/moac/js/chain3-mc-accounts.html#recovertransaction
    • html/moac/js/chain3-mc-accounts.html#hashmessage
    • html/moac/js/chain3-mc-accounts.html#sign
    • html/moac/js/chain3-mc-accounts.html#recover
    • html/moac/js/chain3-mc-accounts.html#encrypt
    • html/moac/js/chain3-mc-accounts.html#decrypt
    • html/moac/js/chain3-mc-accounts.html#wallet
    • html/moac/js/chain3-mc-accounts.html#wallet-create
    • html/moac/js/chain3-mc-accounts.html#wallet-add
    • html/moac/js/chain3-mc-accounts.html#wallet-remove
    • html/moac/js/chain3-mc-accounts.html#wallet-clear
    • html/moac/js/chain3-mc-accounts.html#wallet-encrypt
    • html/moac/js/chain3-mc-accounts.html#wallet-decrypt
    • html/moac/js/chain3-mc-accounts.html#wallet-save
    • html/moac/js/chain3-mc-accounts.html#wallet-load
  • html/moac/js/chain3-core-method.html
    • html/moac/js/chain3-core-method.html#abstractmethodfactory
    • html/moac/js/chain3-core-method.html#abstractmethod
    • html/moac/js/chain3-core-method.html#type
    • html/moac/js/chain3-core-method.html#beforeexecution
    • html/moac/js/chain3-core-method.html#afterexecution
    • html/moac/js/chain3-core-method.html#execute
    • html/moac/js/chain3-core-method.html#rpcmethod
    • html/moac/js/chain3-core-method.html#parametersamount
    • html/moac/js/chain3-core-method.html#id9
    • html/moac/js/chain3-core-method.html#callback
    • html/moac/js/chain3-core-method.html#setarguments
    • html/moac/js/chain3-core-method.html#getarguments
    • html/moac/js/chain3-core-method.html#ishash
    • html/moac/js/chain3-core-method.html#abstractobservedtransactionmethod
    • html/moac/js/chain3-core-method.html#id18
    • html/moac/js/chain3-core-method.html#id21
    • html/moac/js/chain3-core-method.html#id23
    • html/moac/js/chain3-core-method.html#id27
    • html/moac/js/chain3-core-method.html#id30
    • html/moac/js/chain3-core-method.html#id32
    • html/moac/js/chain3-core-method.html#id34
    • html/moac/js/chain3-core-method.html#id36
    • html/moac/js/chain3-core-method.html#id38
    • html/moac/js/chain3-core-method.html#id42
    • html/moac/js/chain3-core-method.html#id45