HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Moduleweb3-ethereum-1.1.0.1Haskell2010

Network.Ethereum.Account

In Etereun there are two types of accounts: * Externally owned account (EOAs): an account controlled by a private key, and if you own the private key associated with the EOA you have the ability to send ether and messages from it. * Contract: an account that has its own code, and is controlled by code.

This module exports different kinds of EOAs: default, node managed and local. Node managed accounts use Personal JSON-RPC API for signing transactions. Local account sign transaction locally and use sendRawTransaction method to export transaction to Ethereum network.

Contents
  1. The Account type
  2. Default node account
  3. Unlockable node account
  4. Local key account
  5. Transaction parameterization function and lenses
Synopsis

The Account type

classclass MonadTrans t => Account a (t :: (Type -> Type) -> Type -> Type) | t -> a where

Account is needed for sending transactions to blockchain

Typically account is provided by node. In this case node manage accounts: encrypt and decrypt private keys, manipulate files etc. In other case web3 can derive account from private key and send to node already signed transactions.

Methods

Instances3Account

Default node account

Unlockable node account

datadata Personal

Unlockable node managed account params

Instances4Eq, Show, Default, Account
  • Eq PersonalDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Account.Personal
  • Show PersonalDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Account.Personal
  • Default PersonalDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Account.Personal
  • Account Personal PersonalAccountDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Account.Personal

Local key account

datadata LocalKey

Local EOA params

Instances4Eq, Show, Default, Account
  • Eq LocalKeyDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Account.LocalKey
  • Show LocalKeyDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Account.LocalKey
  • Default LocalKeyDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Account.LocalKey
  • Account LocalKey LocalKeyAccountDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Account.LocalKey

Transaction parameterization function and lenses