plutus-contract-1.1.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

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 #

totalFunds :: forall effs. Member WalletEffect effs => Eff effs Value 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 #