btck_transaction_copy

Copy a transaction. Transactions are reference counted, so this just increments the reference count.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard, __nonnull__]]
btck_Transaction*
btck_transaction_copy(btck_Transaction const* transaction);

Return Value

The copied transaction.

NOTE

The return value should not be discarded.

Parameters

NameDescription
transaction [in]Non-null.