The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

Objects of this type would not normally be constructed directly.

DESCRIPTION

Centralize all asynchronous RPC calls.

max_connections

https://metacpan.org/pod/Net::Async::HTTP#max_connections_per_host-=%3E-INT

returns the configured max_connections value or DEFAULT_MAX_CONNECTIONS

http_client

Create an Net::Async::HTTP instance, if it is already defined just return the object

Net::Async::HTTP

configure

Any additional configuration that is not described on IO::Async::Notifier must be included and removed here.

  • endpoint

  • timeout connection timeout (seconds)

  • rpc_user RPC user. (optional, default: undef)

  • rpc_password RPC password. (optional, default: undef)

_request

Use any argument as the method parameter for the client RPC call

  • method

  • params (any parameter required by the RPC call)

Future

INHERITED METHODS

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