Class: BSV::Network::Protocols::TAALBinary

Inherits:
BSV::Network::Protocol show all
Defined in:
lib/bsv/network/protocols/taal_binary.rb

Overview

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?

Instance Attribute Summary

Attributes inherited from BSV::Network::Protocol

#api_key, #base_url, #http_client, #network

Method Summary

Methods inherited from BSV::Network::Protocol

#call, commands, #default_call, endpoint, endpoints, inherited, #initialize, subscription, subscriptions

Constructor Details

This class inherits a constructor from BSV::Network::Protocol