|
| 1 | +// SPDX-License-Identifier: CC0-1.0 |
| 2 | + |
| 3 | +//! Structs with standard types. |
| 4 | +//! |
| 5 | +//! These structs model the types returned by the JSON-RPC API and use stdlib types (or custom |
| 6 | +//! types) and are specific to a specific to Bitcoin Core `v0.18.1`. |
| 7 | +
|
| 8 | +// == Blockchain == |
| 9 | +// - [x] getbestblockhash |
| 10 | +pub use crate::json::v17::GetBestBlockHash; |
| 11 | +// - [x] getblock "blockhash" ( verbosity ) |
| 12 | +pub use crate::json::v17::{GetBlockVerbosityOne, GetBlockVerbosityZero}; |
| 13 | +// - [x] getblockchaininfo |
| 14 | +pub use crate::json::v17::GetBlockchainInfo; |
| 15 | +// - [ ] getblockcount |
| 16 | +// - [ ] getblockhash height |
| 17 | +// - [ ] getblockheader "blockhash" ( verbose ) |
| 18 | +// - [ ] getblockstats hash_or_height ( stats ) |
| 19 | +// - [ ] getchaintips |
| 20 | +// - [ ] getchaintxstats ( nblocks "blockhash" ) |
| 21 | +// - [ ] getdifficulty |
| 22 | +// - [ ] getmempoolancestors "txid" ( verbose ) |
| 23 | +// - [ ] getmempooldescendants "txid" ( verbose ) |
| 24 | +// - [ ] getmempoolentry "txid" |
| 25 | +// - [ ] getmempoolinfo |
| 26 | +// - [ ] getrawmempool ( verbose ) |
| 27 | +// - [ ] gettxout "txid" n ( include_mempool ) |
| 28 | +pub use crate::json::v17::GetTxOut; |
| 29 | +// - [ ] gettxoutproof ["txid",...] ( "blockhash" ) |
| 30 | +// - [ ] gettxoutsetinfo |
| 31 | +// - [ ] preciousblock "blockhash" |
| 32 | +// - [ ] pruneblockchain height |
| 33 | +// - [ ] savemempool |
| 34 | +// - [ ] scantxoutset "action" [scanobjects,...] |
| 35 | +// - [ ] verifychain ( checklevel nblocks ) |
| 36 | +// - [ ] verifytxoutproof "proof" |
| 37 | +// |
| 38 | +// == Control == |
| 39 | +// - [ ] getmemoryinfo ( "mode" ) |
| 40 | +// - [ ] getrpcinfo |
| 41 | +// - [ ] help ( "command" ) |
| 42 | +// - [ ] logging ( ["include_category",...] ["exclude_category",...] ) |
| 43 | +// - [ ] stop |
| 44 | +// - [ ] uptime |
| 45 | +// |
| 46 | +// == Generating == |
| 47 | +// - [ ] generate nblocks ( maxtries ) |
| 48 | +// - [x] generatetoaddress nblocks "address" ( maxtries ) |
| 49 | +pub use crate::json::v17::GenerateToAddress; |
| 50 | +// |
| 51 | +// == Mining == |
| 52 | +// - [ ] getblocktemplate "template_request" |
| 53 | +// - [ ] getmininginfo |
| 54 | +// - [ ] getnetworkhashps ( nblocks height ) |
| 55 | +// - [ ] prioritisetransaction "txid" ( dummy ) fee_delta |
| 56 | +// - [ ] submitblock "hexdata" ( "dummy" ) |
| 57 | +// - [ ] submitheader "hexdata" |
| 58 | +// |
| 59 | +// == Network == |
| 60 | +// - [ ] addnode "node" "command" |
| 61 | +// - [ ] clearbanned |
| 62 | +// - [ ] disconnectnode ( "address" nodeid ) |
| 63 | +// - [ ] getaddednodeinfo ( "node" ) |
| 64 | +// - [ ] getconnectioncount |
| 65 | +// - [ ] getnettotals |
| 66 | +// - [x] getnetworkinfo |
| 67 | +pub use crate::json::v17::GetNetworkInfo; |
| 68 | +// - [ ] getnodeaddresses ( count ) |
| 69 | +// - [ ] getpeerinfo |
| 70 | +// - [ ] listbanned |
| 71 | +// - [ ] ping |
| 72 | +// - [ ] setban "subnet" "command" ( bantime absolute ) |
| 73 | +// - [ ] setnetworkactive state |
| 74 | +// |
| 75 | +// == Rawtransactions == |
| 76 | +// - [ ] analyzepsbt "psbt" |
| 77 | +// - [ ] combinepsbt ["psbt",...] |
| 78 | +// - [ ] combinerawtransaction ["hexstring",...] |
| 79 | +// - [ ] converttopsbt "hexstring" ( permitsigdata iswitness ) |
| 80 | +// - [ ] createpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable ) |
| 81 | +// - [ ] createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable ) |
| 82 | +// - [ ] decodepsbt "psbt" |
| 83 | +// - [ ] decoderawtransaction "hexstring" ( iswitness ) |
| 84 | +// - [ ] decodescript "hexstring" |
| 85 | +// - [ ] finalizepsbt "psbt" ( extract ) |
| 86 | +// - [ ] fundrawtransaction "hexstring" ( options iswitness ) |
| 87 | +// - [ ] getrawtransaction "txid" ( verbose "blockhash" ) |
| 88 | +// - [ ] joinpsbts ["psbt",...] |
| 89 | +// - [ ] sendrawtransaction "hexstring" ( allowhighfees ) |
| 90 | +// - [ ] signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" ) |
| 91 | +// - [ ] testmempoolaccept ["rawtx",...] ( allowhighfees ) |
| 92 | +// - [ ] utxoupdatepsbt "psbt" |
| 93 | +// |
| 94 | +// == Util == |
| 95 | +// - [ ] createmultisig nrequired ["key",...] ( "address_type" ) |
| 96 | +// - [ ] deriveaddresses "descriptor" ( range ) |
| 97 | +// - [ ] estimatesmartfee conf_target ( "estimate_mode" ) |
| 98 | +// - [ ] getdescriptorinfo "descriptor" |
| 99 | +// - [ ] signmessagewithprivkey "privkey" "message" |
| 100 | +// - [ ] validateaddress "address" |
| 101 | +// - [ ] verifymessage "address" "signature" "message" |
| 102 | +// |
| 103 | +// == Wallet == |
| 104 | +// - [ ] abandontransaction "txid" |
| 105 | +// - [ ] abortrescan |
| 106 | +// - [ ] addmultisigaddress nrequired ["key",...] ( "label" "address_type" ) |
| 107 | +// - [ ] backupwallet "destination" |
| 108 | +// - [ ] bumpfee "txid" ( options ) |
| 109 | +// - [x] createwallet "wallet_name" ( disable_private_keys blank ) |
| 110 | +pub use crate::json::v17::CreateWallet; |
| 111 | +// - [ ] dumpprivkey "address" |
| 112 | +// - [ ] dumpwallet "filename" |
| 113 | +// - [ ] encryptwallet "passphrase" |
| 114 | +// - [ ] getaddressesbylabel "label" |
| 115 | +// - [ ] getaddressinfo "address" |
| 116 | +// - [x] getbalance ( "dummy" minconf include_watchonly ) |
| 117 | +pub use crate::json::v17::GetBalance; |
| 118 | +// - [x] getnewaddress ( "label" "address_type" ) |
| 119 | +pub use crate::json::v17::GetNewAddress; |
| 120 | +// - [ ] getrawchangeaddress ( "address_type" ) |
| 121 | +// - [ ] getreceivedbyaddress "address" ( minconf ) |
| 122 | +// - [ ] getreceivedbylabel "label" ( minconf ) |
| 123 | +// - [ ] gettransaction "txid" ( include_watchonly ) |
| 124 | +// - [ ] getunconfirmedbalance |
| 125 | +// - [ ] getwalletinfo |
| 126 | +// - [ ] importaddress "address" ( "label" rescan p2sh ) |
| 127 | +// - [ ] importmulti "requests" ( "options" ) |
| 128 | +// - [ ] importprivkey "privkey" ( "label" rescan ) |
| 129 | +// - [ ] importprunedfunds "rawtransaction" "txoutproof" |
| 130 | +// - [ ] importpubkey "pubkey" ( "label" rescan ) |
| 131 | +// - [ ] importwallet "filename" |
| 132 | +// - [ ] keypoolrefill ( newsize ) |
| 133 | +// - [ ] listaddressgroupings |
| 134 | +// - [ ] listlabels ( "purpose" ) |
| 135 | +// - [ ] listlockunspent |
| 136 | +// - [ ] listreceivedbyaddress ( minconf include_empty include_watchonly "address_filter" ) |
| 137 | +// - [ ] listreceivedbylabel ( minconf include_empty include_watchonly ) |
| 138 | +// - [ ] listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed ) |
| 139 | +// - [ ] listtransactions ( "label" count skip include_watchonly ) |
| 140 | +// - [ ] listunspent ( minconf maxconf ["address",...] include_unsafe query_options ) |
| 141 | +// - [ ] listwalletdir |
| 142 | +// - [ ] listwallets |
| 143 | +// - [x] loadwallet "filename" |
| 144 | +pub use crate::json::v17::LoadWallet; |
| 145 | +// - [ ] lockunspent unlock ( [{"txid":"hex","vout":n},...] ) |
| 146 | +// - [ ] removeprunedfunds "txid" |
| 147 | +// - [ ] rescanblockchain ( start_height stop_height ) |
| 148 | +// - [ ] sendmany "" {"address":amount} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" ) |
| 149 | +// - [ ] sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode" ) |
| 150 | +pub use crate::json::v17::SendToAddress; |
| 151 | +// - [ ] sethdseed ( newkeypool "seed" ) |
| 152 | +// - [ ] setlabel "address" "label" |
| 153 | +// - [ ] settxfee amount |
| 154 | +// - [ ] signmessage "address" "message" |
| 155 | +// - [ ] signrawtransactionwithwallet "hexstring" ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" ) |
| 156 | +// - [ ] unloadwallet ( "wallet_name" ) |
| 157 | +// - [ ] walletcreatefundedpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime options bip32derivs ) |
| 158 | +// - [ ] walletlock |
| 159 | +// - [ ] walletpassphrase "passphrase" timeout |
| 160 | +// - [ ] walletpassphrasechange "oldpassphrase" "newpassphrase" |
| 161 | +// - [ ] walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs ) |
| 162 | +// |
| 163 | +// == Zmq == |
| 164 | +// - [ ] getzmqnotifications |
| 165 | + |
0 commit comments