btck_transaction_create

Create a new transaction from the serialized data.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard]]
btck_Transaction*
btck_transaction_create(
    void const* raw_transaction,
    size_t raw_transaction_len);

Return Value

The transaction, or null on error.

NOTE

The return value should not be discarded.

Parameters

NameDescription
raw_transaction [in]Serialized transaction.
raw_transaction_len [in]Length of the serialized transaction.