首页 > 其他分享 >bitcoin-cli 命令(转)

bitcoin-cli 命令(转)

时间:2022-09-28 12:03:55浏览次数:52  
标签:comment ... account cli bitcoinaddress bitcoin txid 命令 minconf

help ( "command" )
stop

getinfo

ping

getnettotals

getnetworkinfo

getpeerinfo

getconnectioncount

verifychain ( checklevel numblocks )

getaddednodeinfo dns ( "node" )

addnode "node" "add|remove|onetry"


B、钱包、账户、地址、转帐、发消息
getwalletinfo

walletpassphrase "passphrase" timeout

walletlock

walletpassphrasechange "oldpassphrase" "newpassphrase"

backupwallet "destination"

importwallet "filename"

dumpwallet "filename"


listaccounts ( minconf )

getaddressesbyaccount "account"

getaccountaddress "account"

getaccount "bitcoinaddress"

validateaddress "bitcoinaddress"

dumpprivkey "bitcoinaddress"

setaccount "bitcoinaddress" "account"

getnewaddress ( "account" )

keypoolrefill ( newsize )

importprivkey "bitcoinprivkey" ( "label" rescan )

createmultisig nrequired ["key",...]

addmultisigaddress nrequired ["key",...] ( "account" )


getbalance ( "account" minconf )

getunconfirmedbalance

getreceivedbyaccount "account" ( minconf )

listreceivedbyaccount ( minconf includeempty )

getreceivedbyaddress "bitcoinaddress" ( minconf )

listreceivedbyaddress ( minconf includeempty )

move "fromaccount" "toaccount" amount ( minconf "comment" )

listunspent ( minconf maxconf ["address",...] )

listlockunspent

lockunspent unlock [{"txid":"txid","vout":n},...]


getrawchangeaddress
listaddressgroupings
settxfee amount
sendtoaddress "bitcoinaddress" amount ( "comment" "comment-to" )
sendfrom "fromaccount" "tobitcoinaddress" amount ( minconf "comment" "comment-to" )
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" )

signmessage "bitcoinaddress" "message"
verifymessage "bitcoinaddress" "signature" "message"
C、Tx、Block、Ming
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}
signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
sendrawtransaction "hexstring" ( allowhighfees )gettransaction "txid"
listtransactions ( "account" count from )
listsinceblock ( "blockhash" target-confirmations )getrawmempool ( verbose )
gettxoutsetinfo
gettxout "txid" n ( includemempool )
getrawtransaction "txid" ( verbose )
decoderawtransaction "hexstring"
decodescript "hex"

getblockchaininfo
getblockcount
getbestblockhash
getblockhash index
getblock "hash" ( verbose )

getmininginfo
getdifficulty
getnetworkhashps ( blocks height )
gethashespersec
getgenerate
setgenerate generate ( genproclimit )
getwork ( "data" )
getblocktemplate ( "jsonrequestobject" )
submitblock "hexdata" ( "jsonparametersobject" )

标签:comment,...,account,cli,bitcoinaddress,bitcoin,txid,命令,minconf
From: https://blog.51cto.com/u_13760719/5719148

相关文章

  • linux基础命令grep显示前后
    通过grep查找字段后,方便查看前后文本grep-C8'中央仓库在中国的镜像'settings.xml显示指定行的上线8行[root@znjc-ds-zcfwservconf]#grep-C8'中央仓库在中国......
  • Linux 操作命令
    1.替换jar包中的文件获取文件在jar包中的路径 pathjar-tfXXX.jar|grepXXX.class解压文件到指定的路径jar-xvfXXX.jarpath替换拷贝新文件到解压目录将新文......
  • centos7没有wget命令
    执行以下命令即可:yum -yinstallwgetyum-yinstallsetupyum-yinstallperl......
  • 9、FFmpeg使用clion+mingw32编译学习y420p,yuv,rgb编码
    基本思想:继续学习ffmpeg基础知识第一步:进行y420p解码,然后将数据转rgb24格式,显示,重点学习了sws_getContext函数,可以通过他进行各种转码cmakelists.txt文件内容cmake_minimum_......
  • Linux 压缩命令
    我们常用如下命令打包压缩和解压缩打包且压缩tar-zcvftest.tar.gz test 解压缩tar-zxvftest.tar.gz  test  1、我们常用tar和zip的区别tar其实是打......
  • JuiceFS 在 Elasticsearch/ClickHouse 温冷数据存储中的实践
    企业数据越存越多,存储容量与查询性能、以及存储成本之间的矛盾对于技术团队来说是个普遍难题。这个难题在Elasticsearch与ClickHouse这两个场景中尤为突出,为了应对不同......
  • 移动端touch拖动事件和click事件冲突问题解决
    通过一个悬浮球交互功能的案例来阐述问题,以及解决办法。实现效果类似微信里的悬浮窗效果,苹果手机的悬浮球功能效果可以点击拖动,然后吸附在窗口边缘点击悬浮球,可......
  • 操作系统:Linux基本系统命令的使用
      SHANGHAI UNIVERSITY操作系统(一)实验报告   一、  实验目的与要求实验目的:1.了解Linux运行环境,熟悉交互式分时系统、多用户环境的的运行机制。2.练......
  • linux 请求命令
     1概述Curl是一个命令行实用程序,允许用户创建网络请求。Curl在Windows、Linux和Mac上皆可使用,这使它成为开发人员的首选。在本文中,我们将解释如何使用CURL......
  • com.ibatis.sqlmap.client.SqlMapException: There is no statement named saveNewPr
    经常发生这种问题,其实是写代码不严谨造成的。忘记将相应的sqlMap文件名称和路径在sqlMapConfig(sql-map-config.xml)配置文件中进行配置。  在文件中加入新写的dao层xml......