plutus-contract-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Wallet.Effects

Synopsis

Wallet effect

data WalletEffect r where Source #

Constructors

SubmitTxn :: CardanoTx -> WalletEffect () 
OwnAddresses :: WalletEffect (NonEmpty CardanoAddress) 
BalanceTx :: UnbalancedTx -> WalletEffect (Either WalletAPIError CardanoTx) 
TotalFunds

Deprecated: We won't use the wallet for querying blockchain information. See https://plutus-apps.readthedocs.io/en/latest/adr/0005-pab-indexing-solution-integration.html

Fields

  • :: WalletEffect Value

    Total of all funds that are in the wallet (incl. tokens)

WalletAddSignature :: CardanoTx -> WalletEffect CardanoTx 
YieldUnbalancedTx :: UnbalancedTx -> WalletEffect ()

Sends an unbalanced tx to be balanced, signed and submitted.

submitTxn :: forall effs. Member WalletEffect effs => CardanoTx -> Eff effs () Source #

ownAddresses :: forall effs. Member WalletEffect effs => Eff effs (NonEmpty CardanoAddress) Source #

balanceTx :: forall effs. Member WalletEffect effs => UnbalancedTx -> Eff effs (Either WalletAPIError CardanoTx) Source #

totalFunds :: forall effs. Member WalletEffect effs => Eff effs Value Source #

walletAddSignature :: forall effs. Member WalletEffect effs => CardanoTx -> Eff effs CardanoTx Source #

yieldUnbalancedTx :: forall effs. Member WalletEffect effs => UnbalancedTx -> Eff effs () Source #

Node client

publishTx :: forall effs. Member NodeClientEffect effs => CardanoTx -> Eff effs () Source #

getClientSlot :: forall effs. Member NodeClientEffect effs => Eff effs Slot Source #

getClientParams :: forall effs. Member NodeClientEffect effs => Eff effs Params Source #