validation/payout

This module contains code that assists with payout logic. Payout functions are designed to return a boolean value instead of an error.

Functions

exact(
  payout_address: Address,
  payout_value: Value,
  outputs: List<Output>,
) -> Bool

Find the first occurrence of an exact output that matches a specific address and assets. If nothing is found then return False.

payout.exact(wallet_addr, validating_value, tx.outputs)

at_least(
  payout_address: Address,
  payout_value: Value,
  outputs: List<Output>,
) -> Bool

Find the first occurrence of an output that contains at least some specific value at some address. If nothing is found then return False. This function does not search for an exact UTxO match.

payout.at_least(wallet_addr, just_token_value, tx.outputs)
Search Document