Class: BSV::Transaction::Beef::RawTxEntry
- Defined in:
- lib/bsv/transaction/beef.rb
Overview
A BEEF entry containing a raw transaction without a merkle proof.
Instance Attribute Summary collapse
-
#transaction ⇒ Transaction
readonly
The transaction.
Instance Method Summary collapse
-
#format_flag ⇒ Integer
FORMAT_RAW_TX wire-protocol flag.
-
#initialize(transaction:) ⇒ RawTxEntry
constructor
A new instance of RawTxEntry.
-
#wtxid ⇒ String
Wire-order wtxid delegated to the transaction.
Methods inherited from BeefTx
Constructor Details
#initialize(transaction:) ⇒ RawTxEntry
Returns a new instance of RawTxEntry.
82 83 84 85 86 87 |
# File 'lib/bsv/transaction/beef.rb', line 82 def initialize(transaction:) raise ArgumentError, 'RawTxEntry requires a transaction' if transaction.nil? super() @transaction = transaction end |
Instance Attribute Details
#transaction ⇒ Transaction (readonly)
Returns the transaction.
78 79 80 |
# File 'lib/bsv/transaction/beef.rb', line 78 def transaction @transaction end |
Instance Method Details
#format_flag ⇒ Integer
Returns FORMAT_RAW_TX wire-protocol flag.
95 96 97 |
# File 'lib/bsv/transaction/beef.rb', line 95 def format_flag FORMAT_RAW_TX end |
#wtxid ⇒ String
Returns wire-order wtxid delegated to the transaction.
90 91 92 |
# File 'lib/bsv/transaction/beef.rb', line 90 def wtxid @transaction.wtxid end |