Get the txid of a transaction. The returned txid is not owned and depends on the lifetime of the transaction.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[__nonnull__]]
btck_Txid const*
btck_transaction_get_txid(btck_Transaction const* transaction);

Return Value

The txid.

Parameters

Name

Description

transaction [in]

Non‐null.

Created with MrDocs