Skip to content

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

License

Notifications You must be signed in to change notification settings

deriv-com/perl-Net-Async-Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Net::Async::Blockchain - base for blockchain subscription clients.

SYNOPSIS

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.

DESCRIPTION

This module contains methods that are shared by the subscription clients.

configure

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_response

Formate the subscription response message

  • $subscription_type - A string of the subscription type (e.g: blocks)
  • $messgae - The recevied subscription message from the blockchain node

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)
  • message - The recevied subscription message from the blockchain node

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published