{"id":566,"date":"2023-07-15T08:48:10","date_gmt":"2023-07-15T00:48:10","guid":{"rendered":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-rpc-interface\/rpc-method-list\/"},"modified":"2023-07-15T11:32:39","modified_gmt":"2023-07-15T03:32:39","slug":"rpc-method-list","status":"publish","type":"docs","link":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-rpc-interface\/rpc-method-list\/","title":{"rendered":"RPC Method List"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Node Basic RPC Method<\/h2>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\"><a><strong>help<\/strong><\/a><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Function: Query RPC methods supported by nodes<\/strong><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Return result: List of RPC methods supported by the node<\/strong><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"help\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\r\n  \"result\": \"\r\n  backupwallet &lt;destination>\r\n  encryptwallet &lt;passphrase>\r\n  getaccount &lt;address>\r\n  getaccountaddress &lt;account>\r\n  getaddressesbyaccount &lt;account>\r\n  getbalance &#91;account] &#91;minconf=1]\r\n  getblockcount\r\n  getblocknumber\r\n  getcoininfo &lt;hyperblockId> &lt;chainId> &lt;localblockId> \r\n  getconnectioncount\r\n  getdifficulty\r\n  getgenerate\r\n  getinfo\r\n  getnewaddress &#91;account]\r\n  getreceivedbyaccount &lt;account> &#91;minconf=1]\r\n  getreceivedbyaddress &lt;address> &#91;minconf=1]\r\n  gettransaction &lt;txid>\r\n  gettransactionaddr &lt;txid>\r\n  gid2rid {GID}\r\n  importcoin &lt;hyperblockId> &lt;chainId> &lt;localblockId> \r\n  issuecoin &lt;Name> &#91;Genesis block message] &#91;Model] &#91;Logo]\r\n  keypoolrefill\r\n  listaccounts &#91;minconf=1]\r\n  listreceivedbyaccount &#91;minconf=1] &#91;includeempty=false]\r\n  listreceivedbyaddress &#91;minconf=1] &#91;includeempty=false]\r\n  listtransactions &#91;account] &#91;count=10] &#91;from=0]\r\n  move &lt;fromaccount> &lt;toaccount> &lt;amount> &#91;minconf=1] &#91;comment]\r\n  querygenesisblock &lt;GID>\r\n  queryminingstatus\r\n  sendfrom &lt;fromaccount> &lt;toaddress> &lt;amount> &#91;minconf=1] &#91;comment] &#91;comment-to]\r\n  sendmany &lt;fromaccount> {address:amount,...} &#91;minconf=1] &#91;comment]\r\n  sendtoaddress &lt;ledgeraddress> &lt;amount> &#91;comment] &#91;comment-to]\r\n  setaccount &lt;address> &lt;account>\r\n  setgenerate &lt;generate> &#91;genproclimit]\r\n  settxfee &lt;amount>\r\n  startmining &#91;&lt;name> | &lt;hyperblockId> &lt;chainId> &lt;localblockId>]\r\n  stopmining\r\n  validateaddress &lt;ledgeraddress>\",\r\n  \"error\": null,\r\n  \"id\": xxx\r\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getblockcount<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Returns the block height in the local optimal chain of the node<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns an integer value representing the height of the block in the local optimal chain<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getblockcount\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": 572,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getblocknumber<\/strong><\/a><\/p>\n\n\n\n<p><strong>Same as getblockcount<\/strong><\/p>\n\n\n\n<p><a><strong>getconnectioncount<\/strong><\/a><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<p><strong>Function: Query the number of online neighbor nodes of a node<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns an integer value indicating the number of online neighbor nodes of the node<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n<\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\" getconnectioncount\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": 5,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getinfo<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Query node operation status information<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return result: return the running status Property list of the current node<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\" getinfo\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\r\n    \"result\": {\r\n        \"version\": 40000, \/\/Node software version\r\n        \"balance\": 864.00000000,\/\/he total balance of all addresses in the node wallet\r\n        \"blocks\": 572,\/\/Number of local blocks in the node\r\n        \"connections\": 1,\/\/Number of neighbor nodes\r\n        \"proxy \": \"\",\r\n        \"generate\": true,\/\/Whether the mining function is enabled\r\n        \"difficulty\": 0.00000095,\/\/The current block difficulty of the node\r\n        \"hashespersec\": 0,\/\/Node example, hash count per second\r\n        \"testnet\": false, \/\/Whether to test the network node\r\n        \"keypoololdest\": 1603867377, \/\/Node wallet keypool age\r\n        \"keypoolsize\": 101,\/\/Node keypool size\r\n        \"paytxfee\": 0.00000000, \/\/Transaction fee settings\r\n        \"errors\": \"\" \/\/\u4ec0\u4e48\u9519\u8bef\u4fe1\u606f\uff1f\r\n    },\r\n    \"error\": null,\r\n    \"id\": xxx\r\n}\r<\/code><\/pre>\n\n\n\n<p><a><strong>getnewaddress<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Generate a new address for the specified account<\/strong><\/p>\n\n\n\n<p><strong>Parameter:, account is the account name string<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the new address generated for the specified account<\/strong><\/p>\n\n\n\n<p>Remarks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the account name is empty [&#8220;], a new address will be generated for the node&#8217;s default account.<\/li>\n\n\n\n<li>If the entered account name does not exist, the node will automatically generate the account and associate the generated new address with the account. The generated accounts can be viewed through the listaccounts method.<\/li>\n<\/ul>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getnewaddress\",\n  \"params\":&#91;\"yage\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": \"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getaccountaddress<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Obtain wallet addresses available for the specified account<\/strong><\/p>\n\n\n\n<p><strong>Parameter: <strong>&lt;account><\/strong>, account name string<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns an account&#8217;s available wallet address<\/strong><\/p>\n\n\n\n<p>Note: If there is no available address for the entered account, the node will automatically generate and return a new address.<\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getnewaddress\",\n  \"params\":&#91;\"yage\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": \"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getaccountaddress<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Obtain wallet addresses available for the specified account<\/strong><\/p>\n\n\n\n<p><strong>Parameter: <strong><strong>&lt;account><\/strong>, account name string<\/strong><\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns an account&#8217;s available wallet address<\/strong><\/p>\n\n\n\n<p>Note: If there is no available address for the entered account, the node will automatically generate and return a new address.<\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getaccountaddress\",\n  \"params\":&#91;\u201cyage\u201d],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"yage\": \"15yKypansKe1voCJWHZBdYhVsBVbQx6rZv\"\n    },\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a>setaccount<\/a><\/p>\n\n\n\n<p><strong>Function: Associate address to designated account<\/strong><\/p>\n\n\n\n<p><strong>Parameter:&lt;address>, wallet address string<\/strong><\/p>\n\n\n\n<p><strong>&lt;account>, account name string<\/strong><\/p>\n\n\n\n<p><strong>Return result: If the association is successful, result returns null, and if it fails, error error information is returned.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"setaccount\",\n  \"params\":&#91;\"15yKypansKe1voCJWHZBdYhVsBVbQx6rZv\", \"yage\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": null,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getaccount<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Query the account associated with the wallet address<\/strong><\/p>\n\n\n\n<p><strong>Parameter: <strong>&lt;address> <\/strong>, wallet address string<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the account name string associated with the address<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getaccount\",\n  \"params\":&#91;\"15yKypansKe1voCJWHZBdYhVsBVbQx6rZv\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": \"yage\",\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getaddressesbyaccount<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Query all wallet addresses associated with a specified account<\/strong><\/p>\n\n\n\n<p><strong>Parameter:&lt;account>, account name string<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns a list of all wallet addresses associated with the account<\/strong><\/p>\n\n\n\n<p><strong>Call method:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\": \"getaddressesbyaccount\",\n  \"params\":&#91;\"yage\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": &#91;\n        \"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",\n        \"14R5qXbGCANCbvi4z7JZGLZxQ9VHdDM7TU\",\n        \"15yKypansKe1voCJWHZBdYhVsBVbQx6rZv\"\n    ],\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>sendtoaddress<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Transfer to the designated wallet address<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;address-to><\/strong>, payment wallet address<\/strong><\/p>\n\n\n\n<p><strong>&lt;amount>, transfer amount<\/strong><\/p>\n\n\n\n<p><strong>[comment], transfer note<\/strong><\/p>\n\n\n\n<p><strong>[comment to], a note to the recipient<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the identification of the transfer transaction.<\/strong><\/p>\n\n\n\n<p><strong>Call method:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"sendtoaddress\",\n  \"params\":&#91;\"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",100],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"txid\": \"3d56953163e3c66bb56a5996690dcc1a625b26c4e42b53aa9360a43b299f2e41\"\n    },\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getreceivedbyaddress<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Obtain the total amount of all coins received on the specified wallet address<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;address><\/strong>, wallet address<\/strong><\/p>\n\n\n\n<p><strong>[minconf=1], minimum currency age, default value is 1<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the total amount of all coins received at the address<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getreceivedbyaddress\",\n  \"params\":&#91;\"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2 \"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": 100.00000000,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getreceivedbyaccount<\/strong><\/a><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;account><\/strong>, account name<\/strong><\/p>\n\n\n\n<p><strong>[minconf=1], minimum currency age, default value is 1<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the total amount of currency received on all addresses of the account<\/strong><\/p>\n\n\n\n<p><strong>Call method:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getreceivedbyaccount\",\n  \"params\":&#91;\"yage\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": 100.00000000,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>listreceivedbyaddress<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: List the total amount of received coins by wallet address<\/strong><\/p>\n\n\n\n<p><strong>Parameter: [minconf=1], minimum currency age, default value is 1<\/strong><\/p>\n\n\n\n<p><strong>[includeempty=false], whether to list addresses that did not receive coins, default not to list<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns a list of wallet addresses and corresponding currency receipts<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"listreceivedbyaddress\",\n  \"params\":&#91;\"\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": &#91;\n        {\n            \"address\": \"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",\n            \"account\": \"yage\",\n            \"label\": \"yage\",\n            \"amount\": 100.00000000,\n            \"confirmations\": 18\n        }\n    ],\n    \"error\": null,\n    \"id\": 77\n}<\/code><\/pre>\n\n\n\n<p><a><strong>listreceivedbyaccount<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: List the total amount of related recorded transactions by wallet account<\/strong><\/p>\n\n\n\n<p><strong>Parameter: [minconf=1], minimum currency age, default value is 1<\/strong><\/p>\n\n\n\n<p><strong>[includeempty=false], whether to list accounts that have not received coins, default not to list<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns a list of total transaction amounts related to wallet accounts<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"listreceivedbyaccount\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": &#91;\n        {\n            \"account\": \"yage\",\n            \"label\": \"yage\",\n            \"amount\": 100.00000000,\n            \"confirmations\": 14\n        },\n        {\n            \"account\": \"yage1\",\n            \"label\": \"yage1\",\n            \"amount\": 100.00000000,\n            \"confirmations\": 14\n        }\n\n    ],\n    \"error\": null,\n    \"id\": 77\n}<\/code><\/pre>\n\n\n\n<p><a><strong>keypoolrefill<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Generate new key pairs to fill the key pool, generating 100 keys at a time<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return result: If successful, result returns null, and if unsuccessful, error error information is returned.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"keypoolrefill\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": null,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>walletpassphrase<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Enter a password to unlock an encrypted wallet and specify the effective unlocking time. Within the unlocking time, you can operate the wallet without password.<\/strong><\/p>\n\n\n\n<p><strong>Parameter: <strong>&lt;passphrase><\/strong>,Wallet unlocking password<\/strong><\/p>\n\n\n\n<p><strong>&lt;timeout><\/strong>,<strong>Unlocking effective time, in seconds<\/strong><\/p>\n\n\n\n<p><strong>Return result: If successful, result returns null, and if unsuccessful, error error information is returned.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\" walletpassphrase \",\n  \"params\":&#91;\"xxxxyyyyzzzz\",10],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": null,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>walletlock<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Lock the wallet. To operate an encrypted wallet, you need to provide a password to unlock it first.<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return result: If successful, result returns null, and if unsuccessful, error error information is returned.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"walletlock\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": null,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>encryptwallet<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Encrypt the wallet, and unlock the encrypted wallet by entering a password first<\/strong><\/p>\n\n\n\n<p><strong>Parameter:&lt;passphrase>, password<\/strong><\/p>\n\n\n\n<p><strong>Return result: If successful, result returns null, and if unsuccessful, error error information is returned.<\/strong><\/p>\n\n\n\n<p><strong>Call method:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"encryptwallet\",\n  \"params\":&#91;\"xxxxyyyyzzzz\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": null,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>validateaddress<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Verify whether the wallet address is legal<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;address><\/strong>, wallet address<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the address and legal information.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"validateaddress\",\n  \"params\":&#91;\"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"isvalid\": true,\/\/Is the address legal\n        \"address\": \"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",\/\/Verified address\n        \"ismine\":  false \n    },\n    \"error\": null,\n    \"id\": 12\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getbalance<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Query the available balance of a specified account<\/strong><\/p>\n\n\n\n<p><strong>Parameter: [account], wallet account<\/strong><\/p>\n\n\n\n<p><strong>[minconf=1], minimum coin age, default value is 1<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the total available balance of all addresses in the account<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getbalance\",\n  \"params\":&#91;\"yage\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": 520.00000000,\n    \"error\": null,\n    \"id\": 12\n}<\/code><\/pre>\n\n\n\n<p><a><strong>move<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Transfer between internal addresses of node wallets<\/strong><\/p>\n\n\n\n<p><strong>Parameter:&lt;fromacount>, sender account name, account name &#8220;&#8221; represents the default wallet account<\/strong><\/p>\n\n\n\n<p><strong>&lt;toaddress>, recipient address<\/strong><\/p>\n\n\n\n<p><strong>&lt;amount>, amount<\/strong><\/p>\n\n\n\n<p><strong>[comment], remarks<\/strong><\/p>\n\n\n\n<p><strong>Return result: If successful, result returns true, while if unsuccessful, false and error error information are returned.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"move\",\n  \"params\":&#91;\"\",\"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",0.02],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": true,\n    \"error\": null,\n    \"id\": 12\n}<\/code><\/pre>\n\n\n\n<p><a><strong>sendfrom<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Transfer funds from the local wallet account of the node to any address<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;fromacount><\/strong>, sender account name, account name &#8220;&#8221; represents the default wallet account<\/strong><\/p>\n\n\n\n<p><strong>&lt;toaddress>, recipient address<\/strong><\/p>\n\n\n\n<p><strong>&lt;amount>, amount<\/strong><\/p>\n\n\n\n<p><strong>[comment], remarks<\/strong><\/p>\n\n\n\n<p><strong>[comment to], a note to the recipient<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the transaction identifier txid sent by the node to the blockchain network.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"sendfrom\",\n  \"params\":&#91;\"\",\"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",0.02],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": \"37399f8cfd5cd6746065973b33e4955380804cc39ec11e22914521eac99250da\",\n    \"error\": null,\n    \"id\": 12\n}<\/code><\/pre>\n\n\n\n<p><a><strong>sendmany<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Transfer funds to multiple people<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;fromaccount><\/strong>, sender account name, account name &#8220;&#8221; represents the default wallet account<\/strong><\/p>\n\n\n\n<p><strong>{address: amount,\u2026}, recipient address and amount tuple<\/strong><\/p>\n\n\n\n<p><strong>[minconf=1], minimum coin age, default value is 1<\/strong><\/p>\n\n\n\n<p><strong>[comment], remarks<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the transaction identifier txid sent by the node to the blockchain network<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"sendmany\",\n  \"params\":&#91;\n    \"\",\n    {\n      \"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\": 12.8, \n      \"14R5qXbGCANCbvi4z7JZGLZxQ9VHdDM7TU\": 23\n    }\n  ],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": \"fcafcfe9e680e24475416989426f3fc96f5d1fd6a85c6aed63a0822b9cfc9307\",\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>gettransaction<\/strong><\/a><a href=\"https:\/\/fanyi.baidu.com\/?channel=pcHeader###\"><\/a><\/p>\n\n\n\n<p><a href=\"javascript:void(0);\"><\/a><strong>Function: Query transaction information<\/strong><\/p>\n\n\n\n<p><strong>Parameter:&lt;txid>, Transaction ID<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Return transaction details<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"gettransaction\",\n  \"params\":&#91;\"37399f8cfd5cd6746065973b33e4955380804cc39ec11e22914521eac99250da\"],\n  \"id\":133\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"result\": {\n    \"amount\": -0.02000000, \/\/\u53d1\u9001\u91d1\u989d\n    \"fee\": 0.00000000,\/\/\u4ea4\u6613\u624b\u7eed\u8d39\n    \"confirmations\": 10, \/\/\u5e01\u9f84\n    \"txid\": \"37399f8cfd5cd6746065973b33e4955380804cc39ec11e22914521eac99250da\",\n    \"time\": 1603963924,\n    \"details\": &#91;\n      {\n        \"account\": \"\",\n        \"address\": \"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",\n        \"category\": \"send\",\n        \"amount\": -0.02000000,\n        \"fee\": 0.00000000\n      }\n    ]\n  },\n  \"error\": null,\n  \"id\": 133\n}<\/code><\/pre>\n\n\n\n<p><a><strong>gettransactionaddr<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Query the super blockchain triple address of the exchange in the sub chain block<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;txid><\/strong><\/strong>,<strong>Transaction ID<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the super blockchain triplet address of the exchange in the sub chain block<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"gettransactionaddr\",\n  \"params\":&#91;\"37399f8cfd5cd6746065973b33e4955380804cc39ec11e22914521eac99250da\"],\n  \"id\":133\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"address  \": &#91;13,2,1] \/\/\u8d85\u5757\u94fe\u4e09\u5143\u7ec4\u5730\u5740\n    },\n    \"error\": null,\n    \"id\": 133\n}<\/code><\/pre>\n\n\n\n<p><a><strong>listtransactions<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: List recent transactions related to node wallet accounts<\/strong><\/p>\n\n\n\n<p><strong>Parameter: [account], wallet account<\/strong><\/p>\n\n\n\n<p><strong>[count=10], the number of request records, defaults to 10<\/strong><\/p>\n\n\n\n<p><strong>[from=0], request record starting point, default to 0<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the list of recent transaction records for the wallet account<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"listtransactions\",\n  \"params\":&#91;],\n  \"id\":133\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\r\n  \"result\": &#91;\r\n    {\r\n      \"account\": \"\",\r\n      \"category\": \"generate\", \r\n      \"amount\": 8.00000000,\r\n      \"confirmations\": 21,\r\n      \"txid\": \"43941624bc17ffae87fca66c3272fd305377ec0b9a0b9877c430170a8f0e6914\",\r\n      \"time\": 1603964054\r\n    },\r\n    {\r\n      \"account\": \"\",\r\n      \"category\": \"immature\",\r\n      \"amount\": 8.00000000,\r\n      \"confirmations\": 20,\r\n      \"txid\": \"0ca69b6be62e76a47a83f385c136f7f9531dfe0b661c7cc53974c21738be1dbe\",\r\n      \"time\": 1603964098\r\n    },                     \r\n    {\r\n      \"account\": \"\",\r\n      \"address\": \"1ae9CcbE49TnpFygKt7udeP5NbZ7REcC2\",\r\n      \"category\": \"send\",\r\n      \"amount\": -12.80000000,\r\n      \"fee\": 0.00000000,\r\n      \"confirmations\": 9,\r\n      \"txid\": \"fcafcfe9e680e24475416989426f3fc96f5d1fd6a85c6aed63a0822b9cfc9307\",\r\n      \"time\": 1603965018\r\n    },\r\n    {\r\n      \"account\": \"\",\r\n      \"category\": \"immature\",\r\n      \"amount\": 8.00000000,\r\n      \"confirmations\": 5,\r\n      \"txid\": \"adaec471c7bfe421bdce6ca5275c9b0391d91d41642ee08dae4b2a147754bd05\",\r\n      \"time\": 1603965175\r\n    },\r\n    {\r\n      \"account\": \"\",\r\n      \"category\": \"immature\",\r\n      \"amount\": 8.00000000,\r\n      \"confirmations\": 3,\r\n      \"txid\": \"e88849df751ccf5c3d1c3f6a42036f1b8be51b8d3f5d3f253f2f9e4d656e95cd\",\r\n      \"time\": 1603965309\r\n    },\r\n    {\r\n      \"account\": \"\",\r\n      \"category\": \"immature\",\r\n      \"amount\": 8.00000000,\r\n      \"confirmations\": 2,\r\n      \"txid\": \"0cdf4eddce6517a315178c00ab3c78c4a6d048e88fccaca0cb7dc2e18d18d20e\",\r\n      \"time\": 1603965336\r\n    },\r\n    {\r\n      \"account\": \"\",\r\n      \"category\": \"orphan\",\r\n      \"amount\": 8.00000000,\r\n      \"confirmations\": 0,\r\n      \"txid\": \"e64d4fa0abcb7937e0c093d3a43e42474fe6229bd52d1c6936ce494fdb012eb1\",\r\n      \"time\": 1603965341\r\n    }\r\n  ],\r\n  \"error\": null,\r\n  \"id\": 133\r\n}<\/code><\/pre>\n\n\n\n<p><a><strong>listaccounts<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: List all account balances in node wallets<\/strong><\/p>\n\n\n\n<p><strong>Parameter: [minconf=1], currency age, default value is 1<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Return the balance list of each wallet account<\/strong><\/p>\n\n\n\n<p><strong>Call method:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\" listaccounts\",\n  \"params\":&#91;\"\"],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"result\": {\n    \"\": &#91;\n        952.00000000, \/\/Total wallet account amount\n        864.00000000  \/\/Number of mature para coins, distinguished by currency age parameter values\n    ]\n    \"yage\" : &#91;\n      10.00000000,\n      10.00000000\n    ]\n  },\n  \"error\": null,\n  \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>settxfee<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: set the service rate per Kilobyte used for wallet transaction payment<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;FeePerKB><\/strong>, rate per Kilobyte<\/strong><\/p>\n\n\n\n<p><strong>Return result: Setting successfully returns true, while failure returns false and error information<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"settxfee\",\n  \"params\":&#91;0.00002],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": \"true\",\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Coin related RPC methods<\/h2>\n\n\n\n<p><a><strong>issuecoin<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Issuing digital currency<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;Name><\/strong>, name of digital currency<\/strong><\/p>\n\n\n\n<p><strong>[Genesis block description], Genesis block description information<\/strong><\/p>\n\n\n\n<p><strong>[Model], mining algorithm model, default to PARA<\/strong><\/p>\n\n\n\n<p><strong>[Logo], digital currency identification logo<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the online transaction ID gid of the digital currency creation block<\/strong><\/p>\n\n\n\n<p>Note: Issuing digital currency refers to sending digital currency creation block information online. Gid is a hash of digital currency creation block metadata. Before the successful chain up of the Genesis block, the application can obtain the transaction status query handle rid of the chain up transaction at the transaction submission node through the gid2rid method. After the creation block is successfully linked, the application can obtain the creation block information through the query genes isblock method and gid.<\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"issuecoin\",\n  \"params\":&#91;\n    \"NewCoin\", \n    \"Hello NewCoin...\"\n  ],\n  \"id\":11222\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"result\": {\n      \"gid\": \"a66798466b70a34bc50b3ada1b2b5c7bbc72e7e3d556aabe6287cda7fec2d25e\"\n  },\n  \"error\": null,\n  \"id\": 11222\n}<\/code><\/pre>\n\n\n\n<p><a><strong>gid2rid<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Obtain the uplink transaction request rid corresponding to the gid<\/strong><\/p>\n\n\n\n<p><strong>Parameter: {GID}, query ID for Chuangshi Block online transaction<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the request ID corresponding to the gid<\/strong><\/p>\n\n\n\n<p>Note: After obtaining the request ID, the application can use the RestAPI interface GetOnchainState to query the status of the Genesis block on the chain<\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"gid2rid\",\n  \"params\":&#91;\" a66798466b70a34bc50b3ada1b2b5c7bbc72e7e3d556aabe6287cda7fec2d25e\"],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"requestid\": \"4WeQfbxqidFTN85mqV2ZXuDQ6cvH\"\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>querygenesisblock<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Query the triple address of the Genesis block for a certain coin<\/strong><\/p>\n\n\n\n<p><strong>Parameter: {GID}<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the triple address of the Genesis block<\/strong><\/p>\n\n\n\n<p><strong>Call method:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"querygenesisblock\",\n  \"params\":&#91;\" a66798466b70a34bc50b3ada1b2b5c7bbc72e7e3d556aabe6287cda7fec2d25e\"],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"hyperblockId\": 952,\n        \"chainNum\": 1,\n        \"localblockId\": 2\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getcoininfo<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Obtain basic information of digital currency<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;hyperblockId, LocalchainId, localblockId><\/strong>, Digital Currency Genesis Block Triple Address<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the meta information of the digital currency Genesis block<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getcoininfo\",\n  \"params\":&#91;\n    \"952\",\n    \"1\",\n    \"2\"\n  ],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"name\": \"NewCoin\",\n        \"message\": \"Hello NewCoin...\",\n        \"model\": \"PARA\",\n        \"logo\": \"\"\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>importcoin<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Import digital currency information locally to the node<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;hyperblockId, LocalchainId, localblockId><\/strong>, Digital Currency Genesis Block Triple Address<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the meta information of the digital currency Genesis block<\/strong><\/p>\n\n\n\n<p>Note: After the import is completed, the application can operate the node to start mining on the digital currency<\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\r\n  \"method\":\"importcoin\",\r\n  \"params\":&#91;\r\n    \"952\",\r\n    \"1\",\r\n    \"2\"\r\n  ],\r\n  \"id\":16\r\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"name\": \"NewCoin\",\n        \"message\": \"Hello NewCoin...\",\n        \"model\": \"PARA\",\n        \"logo\": \"\"\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>startmining<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Specify digital currency to enable mining<\/strong><\/p>\n\n\n\n<p><strong>Parameter: [name | [hyperblockId, localchainId, localblockId]], digital currency name or Genesis block triplet<\/strong><\/p>\n\n\n\n<p><strong>Return result: Return mining status<\/strong><\/p>\n\n\n\n<p>Note: When multiple digital currencies are running on a node, only one currency can be exclusively mined. Calling this method can automatically switch mining currencies. When there are no input parameters, the currency of the most recent mining will be activated by default.<\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"startmining\",\n  \"params\":&#91;],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": null,\n    \"error\": {\n        \"code\": -2,\n        \"message\": \"paracoin is mining\"\n    },\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>stopmining<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Stop digital currency mining<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return result: Return mining status<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"stopmining\",\n  \"params\":&#91;],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"result\": \"ok, stopped\"\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>queryminingstatus<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Query the operational status of digital currency mining<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Mining Status Information<\/strong><\/p>\n\n\n\n<p>Note: The status code and status information are as follows<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mining = 1,<\/li>\n\n\n\n<li>MiningWithWarning1 = 2, \/\/ Warning: Seed server&#8217;s block information is unknown<\/li>\n\n\n\n<li>MiningWithWarning2 = 3,\/\/ Block height less than seed server&#8217;s<\/li>\n\n\n\n<li>MiningWithWarning3 = 4,\/\/ Block hash different from seed server&#8217;s<\/li>\n\n\n\n<li>Switching = 0,\/\/ Switching to the best chain<\/li>\n\n\n\n<li>GenDisabled = -1, \/\/ Stopped or disabled, Specify \\&#8221;-gen\\&#8221; option to enable<\/li>\n\n\n\n<li>HyperBlockNotReady = -2,<\/li>\n\n\n\n<li>NoAnyNeighbor = -3,<\/li>\n\n\n\n<li>InvalidGenesisBlock = -4,<\/li>\n\n\n\n<li>MiningSettingClosed= -5,<\/li>\n\n\n\n<li>ManyBlocksNonChained= -6,<\/li>\n\n\n\n<li>ChainIncomplete = -7,<\/li>\n<\/ul>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"queryminingstatus\",\n  \"params\":&#91;],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"status\": \"mining\",\n        \"statuscode\": 1,\n        \"currentheight\": 1652,\n        \"statusdesc\": \"Mining\"\n    },\n    \"error\": null,\n    \"id\": 16\n}\nor\n{\n    \"result\": {\n        \"status\": \"stopped\",\n        \"statuscode\": -5,\n        \"currentheight\": 1652,\n        \"statusdesc\": \"Coin's mining setting is closed\"\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getdifficulty<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Obtain the ratio of node mining block difficulty to minimum difficulty<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return result: Mining difficulty ratio.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getdifficulty\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": 1.00000000,\n    \"error\": null,\n    \"id\": 2\n}<\/code><\/pre>\n\n\n\n<p><a><strong>getgenerate<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Is the mining function of the current node enabled<\/strong><\/p>\n\n\n\n<p><strong>Parameter: None<\/strong><\/p>\n\n\n\n<p><strong>Return result: true indicates that the node mining function is enabled, while false indicates that it is not enabled<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"getgenerate\",\n  \"params\":&#91;],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": true,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<p><a><strong>setgenerate<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Start\/stop para node mining function<\/strong><\/p>\n\n\n\n<p><strong>Parameter: [true | false]<\/strong><\/p>\n\n\n\n<p><strong>Return result: If successful, result returns null, and if unsuccessful, error error information is returned.<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\": \"setgenerate\",\n  \"params\":&#91;true\/false],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": null,\n    \"error\": null,\n    \"id\": xxx\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Coin related RPC methods<\/h2>\n\n\n\n<p><a><strong>issuetoken<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Issue new tokens<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;Name><\/strong>, Token Name<\/strong><\/p>\n\n\n\n<p><strong>[Genesis Block Description], token description information<\/strong><\/p>\n\n\n\n<p><strong>[Initial Supply], Issue Amount<\/strong><\/p>\n\n\n\n<p><strong>[Logo], token icon<\/strong><\/p>\n\n\n\n<p><strong>[Address], the address where the token is stored<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the request for the uplink transaction of the token creation block<\/strong><\/p>\n\n\n\n<p>Note: Issuing a token will send the token creation block information up the chain. Applications can query the on chain status of the creation block through the RestAPI interface GetOnchainState.<\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"issuetoken\",\n  \"params\":&#91;\n    \"NewToken\",\n    \"NewToken...\",\n    \"200000000\"\n  ],\n  \"id\":11222\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"requestid\": \"28eh4gAeQv8uDou4qh7Zj3bRaR3G\"\n    },\n    \"error\": null,\n    \"id\": 11222\n}<\/code><\/pre>\n\n\n\n<p><a><strong>queryfundblock<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Query the super blockchain triplet address of the token creator block<\/strong><\/p>\n\n\n\n<p><strong>Parameter:<strong>&lt;requested><\/strong>, initiator block online transaction query identifier<\/strong><\/p>\n\n\n\n<p><strong>Return Result: Returns the super blockchain triple address of the token&#8217;s creator block<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"queryfundblock\",\n  \"params\":&#91;\"28eh4gAeQv8uDou4qh7Zj3bRaR3G\"],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"hyperblockId\": 993,\n        \"chainNum\": 1,\n        \"localblockId\": 1\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>gettokeninfo<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Obtain the description information of the specified token<\/strong><\/p>\n\n\n\n<p><strong>Parameters: [hyperblockId, localchainId, localblockId], Token creator block hyperblockchain triplet address<\/strong><\/p>\n\n\n\n<p><strong>Return result: Token creation block meta information<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"gettokeninfo\",\n  \"params\":&#91;\n    \"993\",\n    \"1\",\n    \"1\"\n  ],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"name\": \"NewToken\",\n        \"message\": \"Hello NewToken...\",\n        \"logo\": \"\",\n        \"supply\": 200000000,\n        \"address\": \"1Kh9uYqFnUjSa9r7x746m2GfxBDpW3havT\"\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>importtoken<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Import Token information on the blockchain to local nodes<\/strong><\/p>\n\n\n\n<p><strong>Parameters: [hyperblockId, localchainId, localblockId], Token creator block hyperblockchain triplet address<\/strong><\/p>\n\n\n\n<p><strong>Result returned: Successfully imported, token creation block meta information returned<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\r\n  \"method\":\"importtoken\",\r\n  \"params\":&#91;\r\n    \"993\",\r\n    \"1\",\r\n    \"1\"\r\n  ],\r\n  \"id\":16\r\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": {\n        \"name\": \"NewToken\",\n        \"message\": \"Hello NewToken...\",\n        \"logo\": \"\",\n        \"supply\": 200000000,\n        \"address\": \"1Kh9uYqFnUjSa9r7x746m2GfxBDpW3havT\"\n    },\n    \"error\": null,\n    \"id\": 16\n}<\/code><\/pre>\n\n\n\n<p><a><strong>starttoken<\/strong><\/a><\/p>\n\n\n\n<p><strong>Function: Enable the specified Token related functions locally on the node<\/strong><\/p>\n\n\n\n<p><strong>Parameter: [[name | [hyperblockId, localchainId, localblockId]], Token name or initiator blockchain triplet address<\/strong><\/p>\n\n\n\n<p><strong>Return result: Token function activation status information<\/strong><\/p>\n\n\n\n<p><strong>Call example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"starttoken\",\n  \"params\":&#91;],\n  \"id\":16\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample return results:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"result\": null,\n    \"error\": {\n        \"code\": -2,\n        \"message\": \"Already started: ledger\"\n    },\n    \"id\": 16\n}<\/code><\/pre>\n","protected":false},"featured_media":0,"parent":556,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-566","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":5,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/566\/revisions"}],"predecessor-version":[{"id":577,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/566\/revisions\/577"}],"up":[{"embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/556"}],"prev":[{"title":"Glossary","link":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-rpc-interface\/glossary\/","href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/563"}],"wp:attachment":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/media?parent=566"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/doc_tag?post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}