Class BSV::Transaction::Beef::BeefTx ¶
Inherits: Object
A single entry in a BEEF bundle, wrapping a transaction with its format metadata.
Attributes¶
bump_index [R] ¶
- @return [Integer, nil] index into the BEEF bumps array
format [R] ¶
- @return [Integer] format flag (FORMAT_RAW_TX, FORMAT_RAW_TX_AND_BUMP, or FORMAT_TXID_ONLY)
known_txid [R] ¶
- @return [String, nil] 32-byte txid for TXID-only entries
transaction [R] ¶
- @return [Transaction, nil] the transaction (nil for TXID-only entries)
Public Instance Methods¶
initialize(format:, transaction: = nil, known_txid: = nil, bump_index: = nil) ¶
- @param
format[Integer] format flag - @param
transaction[Transaction, nil] the transaction - @param
known_txid[String, nil] 32-byte txid for TXID-only entries - @param
bump_index[Integer, nil] index into the bumps array - @return [BeefTx] a new instance of BeefTx
txid() ¶
The transaction ID for this entry. - @return [String, nil] 32-byte txid in display byte order