Skip to content

Commit 53134c9

Browse files
committed
bitcoin commands
1 parent 6696feb commit 53134c9

File tree

1 file changed

+158
-0
lines changed

1 file changed

+158
-0
lines changed

submission/bitcoin_commands.sh

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
getbestblockhash
2+
getblock "blockhash" ( verbosity )
3+
getblockchaininfo
4+
getblockcount
5+
getblockfilter "blockhash" ( "filtertype" )
6+
getblockfrompeer "blockhash" peer_id
7+
getblockhash height
8+
getblockheader "blockhash" ( verbose )
9+
getblockstats hash_or_height ( stats )
10+
getchaintips
11+
getchaintxstats ( nblocks "blockhash" )
12+
getdeploymentinfo ( "blockhash" )
13+
getdifficulty
14+
getmempoolancestors "txid" ( verbose )
15+
getmempooldescendants "txid" ( verbose )
16+
getmempoolentry "txid"
17+
getmempoolinfo
18+
getrawmempool ( verbose mempool_sequence )
19+
gettxout "txid" n ( include_mempool )
20+
gettxoutproof ["txid",...] ( "blockhash" )
21+
gettxoutsetinfo ( "hash_type" hash_or_height use_index )
22+
preciousblock "blockhash"
23+
pruneblockchain height
24+
savemempool
25+
scantxoutset "action" ( [scanobjects,...] )
26+
verifychain ( checklevel nblocks )
27+
verifytxoutproof "proof"
28+
29+
== Control ==
30+
getmemoryinfo ( "mode" )
31+
getrpcinfo
32+
help ( "command" )
33+
logging ( ["include_category",...] ["exclude_category",...] )
34+
stop
35+
uptime
36+
37+
== Mining ==
38+
getblocktemplate ( "template_request" )
39+
getmininginfo
40+
getnetworkhashps ( nblocks height )
41+
prioritisetransaction "txid" ( dummy ) fee_delta
42+
submitblock "hexdata" ( "dummy" )
43+
submitheader "hexdata"
44+
45+
== Network ==
46+
addnode "node" "command"
47+
clearbanned
48+
disconnectnode ( "address" nodeid )
49+
getaddednodeinfo ( "node" )
50+
getconnectioncount
51+
getnettotals
52+
getnetworkinfo
53+
getnodeaddresses ( count "network" )
54+
getpeerinfo
55+
listbanned
56+
ping
57+
setban "subnet" "command" ( bantime absolute )
58+
setnetworkactive state
59+
60+
== Rawtransactions ==
61+
analyzepsbt "psbt"
62+
combinepsbt ["psbt",...]
63+
combinerawtransaction ["hexstring",...]
64+
converttopsbt "hexstring" ( permitsigdata iswitness )
65+
createpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount,...},{"data":"hex"},...] ( locktime replaceable )
66+
createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount,...},{"data":"hex"},...] ( locktime replaceable )
67+
decodepsbt "psbt"
68+
decoderawtransaction "hexstring" ( iswitness )
69+
decodescript "hexstring"
70+
finalizepsbt "psbt" ( extract )
71+
fundrawtransaction "hexstring" ( options iswitness )
72+
getrawtransaction "txid" ( verbose "blockhash" )
73+
joinpsbts ["psbt",...]
74+
sendrawtransaction "hexstring" ( maxfeerate )
75+
signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
76+
testmempoolaccept ["rawtx",...] ( maxfeerate )
77+
utxoupdatepsbt "psbt" ( ["",{"desc":"str","range":n or [n,n]},...] )
78+
79+
== Signer ==
80+
enumeratesigners
81+
82+
== Util ==
83+
createmultisig nrequired ["key",...] ( "address_type" )
84+
deriveaddresses "descriptor" ( range )
85+
estimatesmartfee conf_target ( "estimate_mode" )
86+
getdescriptorinfo "descriptor"
87+
getindexinfo ( "index_name" )
88+
signmessagewithprivkey "privkey" "message"
89+
validateaddress "address"
90+
verifymessage "address" "signature" "message"
91+
92+
== Wallet ==
93+
abandontransaction "txid"
94+
abortrescan
95+
addmultisigaddress nrequired ["key",...] ( "label" "address_type" )
96+
backupwallet "destination"
97+
bumpfee "txid" ( options )
98+
createwallet "wallet_name" ( disable_private_keys blank "passphrase" avoid_reuse descriptors load_on_startup external_signer )
99+
dumpprivkey "address"
100+
dumpwallet "filename"
101+
encryptwallet "passphrase"
102+
getaddressesbylabel "label"
103+
getaddressinfo "address"
104+
getbalance ( "dummy" minconf include_watchonly avoid_reuse )
105+
getbalances
106+
getnewaddress ( "label" "address_type" )
107+
getrawchangeaddress ( "address_type" )
108+
getreceivedbyaddress "address" ( minconf include_immature_coinbase )
109+
getreceivedbylabel "label" ( minconf include_immature_coinbase )
110+
gettransaction "txid" ( include_watchonly verbose )
111+
getunconfirmedbalance
112+
getwalletinfo
113+
importaddress "address" ( "label" rescan p2sh )
114+
importdescriptors "requests"
115+
importmulti "requests" ( "options" )
116+
importprivkey "privkey" ( "label" rescan )
117+
importprunedfunds "rawtransaction" "txoutproof"
118+
importpubkey "pubkey" ( "label" rescan )
119+
importwallet "filename"
120+
keypoolrefill ( newsize )
121+
listaddressgroupings
122+
listdescriptors ( private )
123+
listlabels ( "purpose" )
124+
listlockunspent
125+
listreceivedbyaddress ( minconf include_empty include_watchonly "address_filter" include_immature_coinbase )
126+
listreceivedbylabel ( minconf include_empty include_watchonly include_immature_coinbase )
127+
listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
128+
listtransactions ( "label" count skip include_watchonly )
129+
listunspent ( minconf maxconf ["address",...] include_unsafe query_options )
130+
listwalletdir
131+
listwallets
132+
loadwallet "filename" ( load_on_startup )
133+
lockunspent unlock ( [{"txid":"hex","vout":n},...] persistent )
134+
newkeypool
135+
psbtbumpfee "txid" ( options )
136+
removeprunedfunds "txid"
137+
rescanblockchain ( start_height stop_height )
138+
restorewallet "wallet_name" "backup_file" ( load_on_startup )
139+
send [{"address":amount,...},{"data":"hex"},...] ( conf_target "estimate_mode" fee_rate options )
140+
sendmany "" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" fee_rate verbose )
141+
sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode" avoid_reuse fee_rate verbose )
142+
sethdseed ( newkeypool "seed" )
143+
setlabel "address" "label"
144+
settxfee amount
145+
setwalletflag "flag" ( value )
146+
signmessage "address" "message"
147+
signrawtransactionwithwallet "hexstring" ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
148+
unloadwallet ( "wallet_name" load_on_startup )
149+
upgradewallet ( version )
150+
walletcreatefundedpsbt ( [{"txid":"hex","vout":n,"sequence":n,"weight":n},...] ) [{"address":amount,...},{"data":"hex"},...] ( locktime options bip32derivs )
151+
walletdisplayaddress "address"
152+
walletlock
153+
walletpassphrase "passphrase" timeout
154+
walletpassphrasechange "oldpassphrase" "newpassphrase"
155+
walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs finalize )
156+
157+
== Zmq ==
158+
getzmqnotifications

0 commit comments

Comments
 (0)