@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Function validateBatchRecipients

    • Validates both offchain and onchain recipients. Offchain recipients are checked against vtxo tree leaves for correct amounts and assets. Onchain recipients are validated against the round transaction outputs (amounts and scripts) via validateOnchainRecipient.

      Presence only: the commitment tx and the tree are shared with every other intent in the batch, so outputs paying someone else are legitimate and cannot be rejected. What this asserts is that a settlement cannot consume our inputs and pay us nothing.

      Parameters

      • commitmentTx: Transaction

        The commitment transaction to validate against

      • vtxoTreeLeaves: Transaction[]

        The vtxo tree leaves to validate against

      • recipients: Recipient[]

        The expected recipients to validate (both offchain and onchain)

      • network: Network

        Network for decoding onchain addresses (e.g. mainnet, testnet)

      Returns void

      if a recipient is not present or invalid in the vtxo tree or commitment tx