Need help with hs-web3?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

144 Stars 52 Forks Apache License 2.0 616 Commits 11 Opened issues


Web3 API for Haskell.

Services available


Need anything else?

Contributors list

Web3 API for Haskell

This library implements Haskell API client for popular Web3 platforms.

Documentation Status CI Hackage Matrix Hackage LTS-14 nightly Code Triagers


stack install web3


{-# LANGUAGE OverloadedStrings #-}

module Main where

-- Basic imports import Network.Ethereum import Network.Web3

-- Eth API support import qualified Network.Ethereum.Api.Eth as Eth import Network.Ethereum.Api.Types

-- ENS support import qualified Network.Ethereum.Ens as Ens

-- Lens to simple param setting import Lens.Micro ((.~))

main :: IO () main = do -- Use default provider on http://localhost:8545 ret Eth.accounts

    -- Get balance of default account on latest block
    myBalance  error $ show e
    Right v -> print (v :: Ether)  -- Print returned value in ethers

Read more in the documentation on ReadTheDocs.


  • Network.Polkadot
    is licensed under Apache 2.0
  • All other source is licensed under BSD-3-Clause

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.