btck::Transaction

Owning wrapper over a btck_Transaction.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class Transaction
    : public Handle<btck_Transaction, btck_transaction_copy, btck_transaction_destroy>
    , public TransactionApi<Transaction>

Base Classes

NameDescription
Handle<btck_Transaction, btck_transaction_copy, btck_transaction_destroy>Owning RAII handle for a copyable C object of type CType.
TransactionApi<Transaction>CRTP mixin adding transaction accessors shared by the view and owning types.

Member Functions

NameDescription
Transaction [constructor]Constructors
operator= Assignment operators
CountInputs Returns the number of inputs.
CountOutputs Returns the number of outputs.
GetInput Returns a single input by index.
GetLocktime Returns the transaction locktime.
GetOutput Returns a single output by index.
Inputs
Outputs
ToBytes Serializes the transaction to its raw bytes.
Txid Returns the transaction id.
get Returns the owned C handle.

Protected Data Members

NameDescription
m_ptr The owned C handle.

Non-Member Functions

NameDescription
CheckTransactionRuns consensus-level checks on a standalone transaction.