Sign Transaction

Given a transaction or fee bump transaction, this pipeline will verify the list of provided requirements and sign the envelope accordingly. The 'signers' array is used for the signing process, throwing an error in case a signer is missing for a given requirement.

Soroban authorization entries are not handled by this pipeline. A dedicated Soroban authorization pipeline handles this scenario.

Input

type SignTransactionPipelineInput = {
  transaction: Transaction | FeeBumpTransaction
  signatureRequirements: SignatureRequirement[]
  signers: AccountHandler[]
}
  • transaction: The transaction or fee bump transaction object to be signed.

  • signatureRequirements: An array of signature requirements to be applied when signing the transaction. Refer to Classic Signing Requirements for details on how to generate the requirements.

  • signers: Array of AccountHandlers for the necessary accounts to sign the transaction.

Output

type SignTransactionPipelineOutput = Transaction | FeeBumpTransaction

This pipeline directly outputs the signed transaction or fee bump transaction.

Last updated