atlas-cardano-0.5.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.TxBuilder

Description

 
Synopsis

Documentation

queryBalanceGYTxQueryMonad m ⇒ GYAddress → m GYValue #

Query the balance at given address.

getAdaOnlyUTxOGYTxQueryMonad m ⇒ GYAddress → m [(GYTxOutRef, Natural)] #

Query the txoutrefs at given address with ADA-only values.

Useful for finding a txoutref to be used as collateral.

getCollateral' #

Arguments

GYTxQueryMonad m 
GYAddress

The address where to look.

Natural

The minimal amount of lovelace required as collateral.

→ m (Maybe (GYTxOutRef, Natural))

Returns the smallest ada-only UTxO and the contained amount of lovelace at the specified address with the specified minimal value. If no such UTxO exists, Nothing is returned.

Get a UTxO suitable for use as collateral.

getCollateral #

Arguments

GYTxQueryMonad m 
GYAddress

The address where to look.

Natural

The minimal amount of lovelace required as collateral.

→ m (GYTxOutRef, Natural)

Returns the smallest ada-only UTxO and the contained amount of lovelace at the specified address with the specified minimal value. If no such UTxO exists, an exception is thrown.

Get an UTxO suitable for use as collateral.

getTxBalanceGYTxQueryMonad m ⇒ GYPubKeyHashGYTx → m GYValue #

Calculate how much balance is the given transaction is moving to given pubkeyhash address(es).