Table of Contents
- 如何调用RPC
- RPC列表
- 1. addmultisigaddress <nrequired> <'["key","key"]'> [account]
- 2. backupwallet
- 3. checkwallet
- 4. createrawtransaction [{"txid":txid,"vout":n},…] {address:amount,…}
- 5. decoderawtransaction <hex string>
- 6. dumpprivkey <Zaobi address>
- 7. encryptwallet <passphrase>
- 8. getaccount <Zaobi address>
- 9. getaccountaddress <account>
- 10. getaddressesbyaccount <account>
- 11. getbalance [account] [minconf=1]
- 12. getblock <hash> [txinfo]
- 13. getblock <number> [txinfo]
- 14. getblockcount
- 15. getblockhash <index>
- 16. getblocktemplate [params]
- 17. getcheckpoint
- 18. getconnectioncount
- 19. getdifficulty
- 20. getgenerate
- 21. gethashespersec
- 22. getinfo
- 23. getmininginfo
- 24. getnewaddress [account]
- 25. getnewpubkey [account]
- 26. getpeerinfo
- 27. getrawmempool
- 28. getrawtransaction <txid> [verbose=0]
- 29. getreceivedbyaccount <account> [minconf=1]
- 30. getreceivedbyaddress <Zaobi address> [minconf=1]
- 31. gettransaction <txid>
- 32. getwork [data]
- 33. getworkex [data, coinbase]
- 34. help [command]
- 35. importprivkey <Zaobi privkey> [label]
- 36. keypoolrefill
- 37. listaccounts [minconf=1]
- 38. listaddressgroupings
- 39. listreceivedbyaccount [minconf=1] [includeempty=false]
- 40. listreceivedbyaddress [minconf=1] [includeempty=false]
- 41. listsinceblock [blockhash] [target-confirmations]
- 42. listtransactions [account] [count=10] [from=0]
- 43. listunspent [minconf=1] [maxconf=9999999] ["address",…]
- 44. makekeypair [prefix]
- 45. move <fromaccount> <toaccount> <amount> [minconf=1] [comment]
- 46. repairwallet
- 47. resendtx
- 48. reservebalance [<reserve> [amount]]
- 49. sendalert <message> <privatekey> <minver> <maxver> <priority> <id> [cancelupto]
- 50. sendfrom <fromaccount> <toZaobi address> <amount> [minconf=1] [comment] [comment-to]
- 51. sendmany <fromaccount> {address:amount,…} [minconf=1] [comment]
- 52. sendrawtransaction <hex string>
- 53. sendtoaddress <Zaobi address> <amount> [comment] [comment-to]
- 54. setaccount <Zaobi address> <account>
- 55. setgenerate <generate> [genproclimit]
- 56. settxfee <amount>
- 57. signmessage <Zaobi address> <message>
- 58. signrawtransaction <hex string> [{"txid":txid,"vout":n,"scriptPubKey":hex},…] [<privatekey1>,…] [sighashtype="ALL"]
- 59. stop <detach>
- 60. submitblock <hex data> [optional-params-obj]
- 61. validateaddress <Zaobi address>
- 62. validatepubkey <Zaobi pubkey>
- 63. verifymessage <Zaobi address> <signature> <message>
每个RPC的调用方法可以参考: https://bitcoin.org/en/developer-reference#rpcs
备份钱包到指定位置
格式
backupwallet <destination>
名称 | 类型 | 存在 | 说明 |
---|---|---|---|
destination |
string |
必须 |
备份钱包文件目的地址 |