Skip to content

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

Notifications You must be signed in to change notification settings

oleglr/perl-Net-Async-Blockchain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(
		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;

Supported cryptocurrencies:

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

Supported subscriptions:

Blocks:

  • Call: ->subscribe('blocks');
  • 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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 99.4%
  • Makefile 0.6%