Module: BSV::Network::Providers
- Defined in:
- lib/bsv/network/providers.rb,
lib/bsv/network/providers/taal.rb,
lib/bsv/network/providers/gorilla_pool.rb,
lib/bsv/network/providers/whats_on_chain.rb
Overview
Providers is a namespace module for pre-configured Provider factory classes.
Each provider class has .mainnet and .testnet class methods that return a fully-configured Provider instance with the appropriate protocol set. Both methods accept **opts which are forwarded to each protocol constructor (e.g. api_key:, http_client:).
Example
provider = BSV::Network::Providers::GorillaPool.mainnet
result = provider.call(:broadcast, tx)
provider = BSV::Network::Providers::TAAL.mainnet(api_key: 'my-key')
result = provider.call(:broadcast, tx)
Defined Under Namespace
Classes: GorillaPool, TAAL, WhatsOnChain