NAME
Net::Async::Blockchain::Client::RPC::BTC - Async BTC RPC Client.
SYNOPSIS
my $loop = IO::Async::Loop->new();
$loop->add(
my $http_client = Net::Async::Blockchain::Client::RPC::BTC->new(endpoint => 'http://127.0.0.1:8332', timeout => 100, rpc_user => 'test', rpc_password => 'test')
);
my $response = $http_client->get_transaction('txid...')->get;
DESCRIPTION
BTC based RPC calls
get_transaction
https://bitcoin-rpc.github.io/en/doc/0.17.99/rpc/wallet/gettransaction/
get_raw_transaction
https://bitcoin-rpc.github.io/en/doc/0.17.99/rpc/rawtransactions/getrawtransaction/
get_block
https://bitcoin-rpc.github.io/en/doc/0.17.99/rpc/wallet/getblock/
validate_address
https://bitcoin-rpc.github.io/en/doc/0.17.99/rpc/util/validateaddress/
get_last_block
https://bitcoin-rpc.github.io/en/doc/0.17.99/rpc/blockchain/getblockcount/
get_block_hash
https://bitcoin-rpc.github.io/en/doc/0.17.99/rpc/blockchain/getblockhash/
INHERITED METHODS
- Net::Async::Blockchain::Client::RPC
-
configure, endpoint, http_client, max_connections, rpc_password, rpc_user, timeout
- IO::Async::Notifier
-
add_child, adopt_future, adopted_futures, can_event, children, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, new, notifier_name, parent, remove_child, remove_from_parent