NAME

Net::Async::Blockchain::Client::RPC::Omni - Async Omnicore RPC Client.

SYNOPSIS

my $loop = IO::Async::Loop->new();

$loop->add(
    my $http_client = Net::Async::Blockchain::Client::RPC::Omni->new(endpoint => 'http://127.0.0.1:8332', timeout => 100, rpc_user => 'test', rpc_password => 'test')
);

my $response = $http_client->get_omni_transaction('txid...')->get;

DESCRIPTION

Omnicore based RPC calls

get_omni_transaction

https://github.com/omnilayer/omnicore/blob/master/src/omnicore/doc/rpc-api.md#omni_gettransaction

  • txid the hash of the transaction to lookup

Future - detailed information about an Omni transaction

omni_getwalletbalances

https://github.com/OmniLayer/omnicore/blob/master/src/omnicore/doc/rpc-api.md#omni_getwalletbalances

  • includewatchonly include balances of watchonly addresses (default: false)

Future - list of the total token balances of the whole wallet.

INHERITED METHODS

Net::Async::Blockchain::Client::RPC::BTC

get_balance, get_balances, get_block, get_block_hash, get_last_block, get_raw_transaction, get_transaction, list_by_addresses, validate_address

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