• getArkPsbtFields returns all the values of the given coder for the input at inputIndex Multiple fields of the same type can exist in a single input.

    Type Parameters

    • T

    Parameters

    Returns T[]

    const vtxoTaprootTreeFields = getArkPsbtFields(tx, 0, VtxoTaprootTree);
    console.log(`input has ${vtxoTaprootTreeFields.length} vtxoTaprootTree fields`