Support for subscriptions and API interaction with blockchains such as BTC or ETH
my $loop = IO::Async::Loop->new;
$loop->add(
my $btc_client = Net::Async::Blockchain::BTC->new(
blockchain_code => 'Bitcoin',
subscription_url => 'tcp://127.0.0.1:28332',
subscription_timeout => 100,
subscription_msg_timeout => 3600000,
));
$btc_client->subscribe("blocks")->each(sub { print shift->{hash})->get;
- BTC (also LTC and BCH)
- Omnicore (Tether, ...)
- ETH (also ERC20 contracts)
- Call:
->subscribe('blocks');
- BTC, LTC, BCH, Omnicore
hashblock
- ETH, ERC20
newHeads
This software is in an early state.
REQUIREMENTS
- perl 5
Binary.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.