sdk.txbuilder.buildfinalwitnessset
Home > @blaze-cardano/sdk > TxBuilder > buildFinalWitnessSet
TxBuilder.buildFinalWitnessSet() method
Builds a full witness set with the provided signatures
This includes collecting all necessary scripts (native, Plutus V1, V2, V3), vkey signatures, redeemers, and Plutus data required for script validation.
It organizes these components into a structured format that can be serialized and included in the transaction.
Signature:
protected buildFinalWitnessSet(signatures: [Ed25519PublicKeyHex, Ed25519SignatureHex][]): TransactionWitnessSet;
Parameters
Parameter |
Type |
Description |
---|---|---|
signatures |
Returns:
{TransactionWitnessSet} A constructed transaction witness set.
Exceptions
{Error} If a required script cannot be resolved by its hash.