Request information from the Bitcoin Blockchain
☠️⚠️ Work In Progress ☠️⚠️
BITCOIND_PASSWORD=<password> BITCOIND_USERNAME=<user_name> BITCOIND_URL=<url> cargo run
Commands can be found on bitcoin.org: https://bitcoincore.org/en/doc/0.21.0/rpc/
They can also be found in the bitcoin cli docs:
$bitcoin-cli helpuse bitcoind_request::{
client::Client,
command::{
get_best_block_hash::GetBestBlockHashCommand,
get_block::{
GetBlockCommand, GetBlockCommandResponse, GetBlockCommandTransactionResponse,
GetBlockCommandVerbosity,
},
get_block_count::GetBlockCountCommand,
get_block_hash::GetBlockHashCommand,
get_block_header::GetBlockHeaderCommand,
get_block_stats::{
GetBlockStatsCommand, GetBlockStatsCommandResponse,
GetBlockStatsCommandWithAllStatsResponse, StatsArgumentChoices, TargetBlockArgument,
},
get_blockchain_info::GetBlockchainInfoCommand,
get_chain_tips::GetChainTipsCommand,
get_chain_tx_stats::GetChainTxStatsCommand,
get_difficulty::GetDifficultyCommand,
get_mining_info::GetMiningInfoCommand,
get_network_hash_ps::GetNetworkHashPsCommand,
get_raw_transaction::{GetRawTransactionCommand, GetRawTransactionCommandResponse, Vin},
get_tx_out::GetTxOutCommand,
get_tx_out_set_info::GetTxOutSetInfoCommand,
CallableCommand,
},
};