Function validateUtxoAmounts

  • Description

    Validates if the sum of input UTXOs for each asset is less than or equal to the sum of output UTXOs.

    Throws

    Error if the sum of input UTXOs for an asset is less than the sum of output UTXOs.

    Parameters

    • __namedParameters: {
          action?: Action;
          assetPubkeys: PublicKey[];
          inUtxos?: Utxo[];
          outUtxos: Utxo[];
          publicAmountSol?: BN;
          publicAmountSpl?: BN;
      }
      • Optional action?: Action
      • assetPubkeys: PublicKey[]
      • Optional inUtxos?: Utxo[]
      • outUtxos: Utxo[]
      • Optional publicAmountSol?: BN
      • Optional publicAmountSpl?: BN

    Returns Asset[]

Generated using TypeDoc