Skip to content
Support for subscriptions and API interaction with blockchains such as BTC or ETH
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 1 commit behind binary-com:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib/Net/Async
t
.travis.yml
Changes
Makefile
Makefile.PL
README.md
cpanfile
dist.ini

README.md

perl-Net-Async-Blockchain

Support for subscriptions and API interaction with blockchains such as BTC or ETH

SYNOPSIS

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

$loop->add(
	my $btc_client = Net::Async::Blockchain::BTC->new(
		subscription_url => "tcp://127.0.0.1:28332",
		rpc_url => 'http://test:test@127.0.0.1:8332',
		subscription_timeout => 100,
		subscription_msg_timeout => 3600000,
		rpc_timeout => 100));

$btc_client->subscribe("transactions")->each(sub { print shift->{hash})->get;

Supported cryptocurrencies:

  • BTC (also LTC and BCH)
  • Omnicore (Tether, ...)
  • ETH (also ERC20 contracts)

Supported subscriptions:

Transactions:

  • Call: ->subscribe('transactions');
  • BTC, LTC, BCH, Omnicore
    • hashblock
  • ETH, ERC20
    • newHeads

CAVEATS

This software is in an early state.

REQUIREMENTS

  • perl 5

See also

Author

Binary.com

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

You can’t perform that action at this time.