From bfd14ec21ee3b342f7e62054de916eec540e1c5d Mon Sep 17 00:00:00 2001 From: Celia18305 <32253925+Celia18305@users.noreply.github.com> Date: Mon, 15 Apr 2019 12:03:29 +0800 Subject: [PATCH] Add 2.10.0 API (#800) * Add 2.10.0 API * update --- en-us/node/cli/2.10.0/api.md | 3 +- en-us/node/cli/latest-version/api.md | 5 +- en-us/node/cli/latest-version/api/claimgas.md | 99 + .../cli/latest-version/api/getunclaimedgas.md | 37 + .../cli/latest-version/api/importprivkey.md | 44 + .../api/{submitblock => submitblock.md} | 0 en-us/toc.yml | 83 +- zh-cn/node/cli/2.10.0/api.md | 162 ++ zh-cn/node/cli/2.10.0/api/claimgas.md | 99 + zh-cn/node/cli/2.10.0/api/dumpprivkey.md | 37 + zh-cn/node/cli/2.10.0/api/getaccountstate.md | 56 + zh-cn/node/cli/2.10.0/api/getassetstate.md | 59 + zh-cn/node/cli/2.10.0/api/getbalance.md | 97 + zh-cn/node/cli/2.10.0/api/getbestblockhash.md | 31 + zh-cn/node/cli/2.10.0/api/getblock.md | 89 + zh-cn/node/cli/2.10.0/api/getblock2.md | 89 + zh-cn/node/cli/2.10.0/api/getblockcount.md | 27 + zh-cn/node/cli/2.10.0/api/getblockhash.md | 33 + zh-cn/node/cli/2.10.0/api/getblockheader.md | 71 + zh-cn/node/cli/2.10.0/api/getblocksysfee.md | 34 + .../node/cli/2.10.0/api/getconnectioncount.md | 27 + zh-cn/node/cli/2.10.0/api/getcontractstate.md | 48 + zh-cn/node/cli/2.10.0/api/getnewaddress.md | 33 + zh-cn/node/cli/2.10.0/api/getpeers.md | 1782 +++++++++++++++++ zh-cn/node/cli/2.10.0/api/getrawmempool.md | 32 + .../node/cli/2.10.0/api/getrawtransaction.md | 95 + zh-cn/node/cli/2.10.0/api/getstorage.md | 33 + .../cli/2.10.0/api/gettransactionheight.md | 35 + zh-cn/node/cli/2.10.0/api/gettxout.md | 40 + zh-cn/node/cli/2.10.0/api/getunclaimedgas.md | 41 + zh-cn/node/cli/2.10.0/api/getvalidators.md | 76 + zh-cn/node/cli/2.10.0/api/getversion.md | 30 + zh-cn/node/cli/2.10.0/api/getwalletheight.md | 27 + zh-cn/node/cli/2.10.0/api/importkey.md | 43 + zh-cn/node/cli/2.10.0/api/invoke.md | 59 + zh-cn/node/cli/2.10.0/api/invokefunction.md | 93 + zh-cn/node/cli/2.10.0/api/invokescript.md | 45 + zh-cn/node/cli/2.10.0/api/listaddress.md | 49 + zh-cn/node/cli/2.10.0/api/sendfrom.md | 93 + zh-cn/node/cli/2.10.0/api/sendmany.md | 143 ++ .../node/cli/2.10.0/api/sendrawtransaction.md | 39 + zh-cn/node/cli/2.10.0/api/sendtoaddress.md | 89 + zh-cn/node/cli/2.10.0/api/submitblock.md | 55 + zh-cn/node/cli/2.10.0/api/validateaddress.md | 60 + zh-cn/node/cli/latest-version/api.md | 4 +- .../cli/latest-version/api/listplugins.md | 35 + .../cli/latest-version/api/submitblock.md | 55 + zh-cn/toc.yml | 83 +- 48 files changed, 4394 insertions(+), 5 deletions(-) create mode 100644 en-us/node/cli/latest-version/api/claimgas.md create mode 100644 en-us/node/cli/latest-version/api/getunclaimedgas.md create mode 100644 en-us/node/cli/latest-version/api/importprivkey.md rename en-us/node/cli/latest-version/api/{submitblock => submitblock.md} (100%) create mode 100644 zh-cn/node/cli/2.10.0/api.md create mode 100644 zh-cn/node/cli/2.10.0/api/claimgas.md create mode 100644 zh-cn/node/cli/2.10.0/api/dumpprivkey.md create mode 100644 zh-cn/node/cli/2.10.0/api/getaccountstate.md create mode 100644 zh-cn/node/cli/2.10.0/api/getassetstate.md create mode 100644 zh-cn/node/cli/2.10.0/api/getbalance.md create mode 100644 zh-cn/node/cli/2.10.0/api/getbestblockhash.md create mode 100644 zh-cn/node/cli/2.10.0/api/getblock.md create mode 100644 zh-cn/node/cli/2.10.0/api/getblock2.md create mode 100644 zh-cn/node/cli/2.10.0/api/getblockcount.md create mode 100644 zh-cn/node/cli/2.10.0/api/getblockhash.md create mode 100644 zh-cn/node/cli/2.10.0/api/getblockheader.md create mode 100644 zh-cn/node/cli/2.10.0/api/getblocksysfee.md create mode 100644 zh-cn/node/cli/2.10.0/api/getconnectioncount.md create mode 100644 zh-cn/node/cli/2.10.0/api/getcontractstate.md create mode 100644 zh-cn/node/cli/2.10.0/api/getnewaddress.md create mode 100644 zh-cn/node/cli/2.10.0/api/getpeers.md create mode 100644 zh-cn/node/cli/2.10.0/api/getrawmempool.md create mode 100644 zh-cn/node/cli/2.10.0/api/getrawtransaction.md create mode 100644 zh-cn/node/cli/2.10.0/api/getstorage.md create mode 100644 zh-cn/node/cli/2.10.0/api/gettransactionheight.md create mode 100644 zh-cn/node/cli/2.10.0/api/gettxout.md create mode 100644 zh-cn/node/cli/2.10.0/api/getunclaimedgas.md create mode 100644 zh-cn/node/cli/2.10.0/api/getvalidators.md create mode 100644 zh-cn/node/cli/2.10.0/api/getversion.md create mode 100644 zh-cn/node/cli/2.10.0/api/getwalletheight.md create mode 100644 zh-cn/node/cli/2.10.0/api/importkey.md create mode 100644 zh-cn/node/cli/2.10.0/api/invoke.md create mode 100644 zh-cn/node/cli/2.10.0/api/invokefunction.md create mode 100644 zh-cn/node/cli/2.10.0/api/invokescript.md create mode 100644 zh-cn/node/cli/2.10.0/api/listaddress.md create mode 100644 zh-cn/node/cli/2.10.0/api/sendfrom.md create mode 100644 zh-cn/node/cli/2.10.0/api/sendmany.md create mode 100644 zh-cn/node/cli/2.10.0/api/sendrawtransaction.md create mode 100644 zh-cn/node/cli/2.10.0/api/sendtoaddress.md create mode 100644 zh-cn/node/cli/2.10.0/api/submitblock.md create mode 100644 zh-cn/node/cli/2.10.0/api/validateaddress.md create mode 100644 zh-cn/node/cli/latest-version/api/listplugins.md create mode 100644 zh-cn/node/cli/latest-version/api/submitblock.md diff --git a/en-us/node/cli/2.10.0/api.md b/en-us/node/cli/2.10.0/api.md index d5ab91d85e..f48a820560 100644 --- a/en-us/node/cli/2.10.0/api.md +++ b/en-us/node/cli/2.10.0/api.md @@ -79,6 +79,7 @@ For P2P and WebSocket information see [Node/Introduction](../../introduction.md) | [getrawtransaction](api/getrawtransaction.md) | \ [verbose=0] | Returns the corresponding transaction information based on the specified hash value | | | [getunclaimedgas](api/getunclaimedgas.md) | | Gets the amount of unclaimed GAS in the wallet. | Need to open the wallet | | [getstorage](api/getstorage.md) | \ \ | Returns the stored value based on the contract script hash and key | | +| [gettransactionheight](api/gettransactionheight.md) | \ | Returns the block index in which the transaction is found. | | | [gettxout](api/gettxout.md) | \ \ | Returns the corresponding transaction output (change) information based on the specified hash and index | | | [getpeers](api/getpeers.md) | | Gets a list of nodes that are currently connected/disconnected by this node | | | [getversion](api/getversion.md) | | Gets version information of this node | | @@ -93,7 +94,7 @@ For P2P and WebSocket information see [Node/Introduction](../../introduction.md) | [sendfrom](api/sendfrom.md) | \ \
\ [fee=0] | Transfers from the specified address to the destination address. | Need to open the wallet | | [sendtoaddress](api/sendtoaddress.md) | \ \
\ [fee=0] | Transfer to specified address | Need to open the wallet | | [sendmany](api/sendmany.md) | \ \[fee=0] \[change_address] | Bulk transfer order | Need to open the wallet | -| submitblock | \ | Submit new blocks | Needs to be a consensus node | +| [submitblock](api/submitblock.md) | \ | Relay a new block to the network | Needs to be a consensus node | | [validateaddress](api/validateaddress.md) | \
| Verify that the address is a correct NEO address | | ## GET request example diff --git a/en-us/node/cli/latest-version/api.md b/en-us/node/cli/latest-version/api.md index 340b289b22..33e0ec7f8d 100644 --- a/en-us/node/cli/latest-version/api.md +++ b/en-us/node/cli/latest-version/api.md @@ -60,6 +60,7 @@ For P2P and WebSocket information see [Node/Introduction](../../introduction.md) | Command | Reference | Explanation | Comments | | ----------------------------------------------- | ------------------------------------------- | ------------------------------------------------------------ | ---------------------------- | +| [claimgas](api/claimgas.md) | [address] | Claims GAS in the wallet. | Need to open the wallet | | [dumpprivkey](api/dumpprivkey.md) | \
| Exports the private key of the specified address | Need to open the wallet | | [getaccountstate](api/getaccountstate.md) | \
| Checks account asset information according to account address | | | [getassetstate](api/getassetstate.md) | \ | Queries asset information according to the specified asset number | | @@ -76,13 +77,15 @@ For P2P and WebSocket information see [Node/Introduction](../../introduction.md) | [getnewaddress](api/getnewaddress.md) | | Creates a new address | Need to open the wallet | | [getrawmempool](api/getrawmempool.md) | | Gets a list of unconfirmed transactions in memory | | | [getrawtransaction](api/getrawtransaction.md) | \ [verbose=0] | Returns the corresponding transaction information based on the specified hash value | | +| [getunclaimedgas](api/getunclaimedgas.md) | | Gets the amount of unclaimed GAS in the wallet. | Need to open the wallet | | [getstorage](api/getstorage.md) | \ \ | Returns the stored value based on the contract script hash and key | | -| [gettransactionheight](api/gettransactionheight.md)| \ | Returns the block index in which the transaction is found. | +| [gettransactionheight](api/gettransactionheight.md)| \ | Returns the block index in which the transaction is found. || | [gettxout](api/gettxout.md) | \ \ | Returns the corresponding transaction output (change) information based on the specified hash and index | | | [getpeers](api/getpeers.md) | | Gets a list of nodes that are currently connected/disconnected by this node | | | [getversion](api/getversion.md) | | Gets version information of this node | | | [getvalidators](api/getvalidators.md) | | Gets NEO consensus nodes information | | | [getwalletheight](api/getwalletheight.md) | | Gets the current wallet index height. | Need to open the wallet | +| [importprivkey](api/importprivkey.md) | \ | Imports the private key to the wallet. | Need to open the wallet | | [invoke](api/invoke.md) | \ \ | Invokes a smart contract at specified script hash with the given parameters | | | [invokefunction](api/invokefunction.md) | \ \ \ | Invokes a smart contract at specified script hash, passing in an operation and its params | | | [invokescript](api/invokescript.md) | \