Net::Async::Blockchain - base for blockchain subscription clients.
Objects of this type would not normally be constructed directly.
For blockchain clients see: - Net::Async::Blockchain::BTC - Net::Async::BLockchain::ETH
Which will use this class as base.
This module contains methods that are shared by the subscription clients.
Any additional configuration that is not described on IO::Async::Notifier must be included and removed here.
subscription_url Subscription URL it can be TCP for ZMQ and WS for the Websocket subscription =item * subscription_timeout Subscription connection timeout =item * subscription_msg_timeout Subscription interval between messages timeout =item * blockchain_code The blockchain code (eg: bitcoin, litecoin, ....)
subscription_url
subscription_timeout
subscription_msg_timeout
blockchain_code
Formate the subscription response message
$subscription_type - A string of the subscription type (e.g: blocks)
$subscription_type
$messgae - The recevied subscription message from the blockchain node
$messgae
Returns a hash reference of:
blockchain_code - A string of the blockchain code (eg: bitcoin, litecoin, ....)
subscription_type - A string of the subscription type (e.g: blocks)
subscription_type
message - The recevied subscription message from the blockchain node
message
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
To install Net::Async::Blockchain, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::Blockchain
CPAN shell
perl -MCPAN -e shell install Net::Async::Blockchain
For more information on module installation, please visit the detailed CPAN module installation guide.