TransactionMerklePath

Compute merkle path to the specified transaction

Synopsis

Declared in <consensus/merkle.h>

std::vector<uint256>
TransactionMerklePath(
    CBlock const& block,
    uint32_t position);

Return Value

merkle path ordered from the deepest

Parameters

NameDescription
block [in]the block
position [in]transaction for which to calculate the merkle path (0 is the coinbase)