Class BSV::Network::Protocols::TAALBinary ¶
Inherits: BSV::Network::Protocol
TAALBinary implements the TAAL broadcast API using raw binary transaction submission over HTTP.
TAAL quirks handled here: * Content-Type is application/octet-stream (not JSON) * Authorization header uses the API key directly with no "Bearer" prefix * A response containing txn-already-known in the error field is treated as success (the transaction is already in the mempool — idempotent)
Example¶
protocol = BSV::Network::Protocols::TAALBinary.new(
base_url: 'https://api.taal.com',
api_key: 'mainnet_your_key_here'
)
result = protocol.call(:broadcast, tx)
puts result.data[:txid] if result.success?