HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduleweb3-ethereum-1.1.0.1Haskell2010

Network.Ethereum.Account.Internal

Internal types and functions of Account module.

  • 2 types
  • 12 values
datadata CallParam p
#

Account is needed to send transactions to blockchain

Transaction parametrization data type

Constructors

Instances2Eq, MonadState
newtypenewtype AccountT p (m :: Type -> Type) a
#

Monad transformer for sending parametrized transactions from account

Constructors

Instances8Account, MonadTrans, MonadState, Monad, Functor, Applicative, …
valuewithParam
  1. :: Account p (AccountT p)
  2. => CallParam p -> CallParam p
  3. -> AccountT p m a
  4. -> AccountT p m a
#

withParam is very similar to withStateT function, it's used to set parameters of transaction locally and revert params after out of scope.

 withAccount () $
   withParam (to .~ tokenAddress) $
     transfer alice 42