Class BSV::Network::Providers::GorillaPool ¶
Inherits: Object
GorillaPool returns pre-configured Provider instances using the GorillaPool ARCADE infrastructure for ARC and Chaintracks, and the GorillaPool Ordinals API for transaction and merkle path lookups.
Mainnet composes three protocols: * ARC at https://arcade.gorillapool.io * Chaintracks at https://arcade.gorillapool.io * Ordinals at https://ordinals.gorillapool.io
Testnet provides ARC only at https://testnet.arcade.gorillapool.io.
Example¶
provider = BSV::Network::Providers::GorillaPool.mainnet
provider.call(:broadcast, tx)
provider = BSV::Network::Providers::GorillaPool.testnet(api_key: 'my-key')
provider.call(:broadcast, tx)
Public Class Methods¶
default(testnet: = false, **opts) ¶
Returns a mainnet or testnet Provider depending on the testnet: flag. - @param testnet [Boolean] when true, returns the testnet Provider - @param opts [Hash] keyword arguments forwarded to each protocol constructor - @return [Provider]
mainnet(**opts) ¶
Returns a mainnet Provider configured with ARC, Chaintracks, and Ordinals. - @param opts [Hash] keyword arguments forwarded to each protocol constructor - @return [Provider]
testnet(**opts) ¶
Returns a testnet Provider configured with ARC and Chaintracks. - @param opts [Hash] keyword arguments forwarded to each protocol constructor - @return [Provider]