quietgarden/elm-web3/1.0.0

NOTE: the latest version is 2.0.1

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/quietgarden/elm-web3 is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 1.0.0 found (5 same-name repos checked); no cached copy. Use another version.

Details

Web3.Chain

Chain definitions for EVM networks.

type alias Chain =
{ chainId : ChainId
, name : String
, rpcUrl : String
, blockExplorer : String
, nativeCurrency : String
}

An EVM chain definition.

pulsechain : Chain

PulseChain mainnet (chain ID 369).

PulseChain testnet v4 (chain ID 943).

ethereum : Chain

Ethereum mainnet (chain ID 1).

sepolia : Chain

Sepolia testnet (chain ID 11155111).

{ chainId : Int
, name : String
, rpcUrl : String
, blockExplorer : String
, nativeCurrency : String
}
-> Chain

Define a custom EVM chain.

chainId : Chain -> ChainId

Get the chain ID.

name : Chain -> String

Get the chain name.

rpcUrl : Chain -> String

Get the RPC URL.

blockExplorer : Chain -> String

Get the block explorer URL.