btck_transaction_get_output_at

Get the transaction outputs at the provided index. The returned transaction output is not owned and depends on the lifetime of the transaction.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[__nonnull__]]
btck_TransactionOutput const*
btck_transaction_get_output_at(
    btck_Transaction const* transaction,
    size_t output_index);

Return Value

The transaction output

Parameters

NameDescription
transaction [in]Non-null.
output_index [in]The index of the transaction output to be retrieved.