btck::BlockSpentOutputs

Owning wrapper over a btck_BlockSpentOutputs, the undo data of a whole block.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class BlockSpentOutputs
    : public Handle<btck_BlockSpentOutputs, btck_block_spent_outputs_copy, btck_block_spent_outputs_destroy>

Base Classes

NameDescription
Handle<btck_BlockSpentOutputs, btck_block_spent_outputs_copy, btck_block_spent_outputs_destroy>Owning RAII handle for a copyable C object of type CType.

Member Functions

NameDescription
BlockSpentOutputs [constructor]Takes ownership of an existing C block spent-outputs object.
operator= Assignment operators
Count Returns the number of per-transaction spent-output sets.
GetTxSpentOutputs Returns the spent outputs of one transaction in the block.
TxsSpentOutputs Returns a range over every transaction's spent outputs in the block.
get Returns the owned C handle.

Protected Data Members

NameDescription
m_ptr The owned C handle.