convex-coin-selection-0.2.0.0: Coin selection algorithm for Cardano transactions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.MockChain.CoinSelection

Description

Conveniences for balancing transactions and selecting coins on the mockchain

Synopsis

Documentation

balanceAndSubmit ∷ (MonadMockchain m, MonadFail m) ⇒ WalletTxBodyContent BuildTx BabbageEra → m (Tx ERA) Source #

Balance and submit a transaction using the wallet's UTXOs on the mockchain, using the default network ID

balanceAndSubmitReturn ∷ (MonadMockchain m, MonadFail m) ⇒ WalletTxOut CtxTx BabbageEraTxBodyContent BuildTx BabbageEra → m (Tx ERA) Source #

Balance and submit a transaction using the given return output and the wallet's UTXOs on the mockchain, using the default network ID

paymentTo ∷ (MonadMockchain m, MonadFail m) ⇒ WalletWallet → m (Tx ERA) Source #

Pay ten Ada from one wallet to another