Skip to content

ethereum

const ethereum: object

Defined in: src/chains/ethereum.ts:14

Ethereum mainnet — priority 4 production chain (institutional use cases).

Casper FFG finalises in epochs (~12.8 min). defaultConfirmations of 32 (~6.4 min at ~12 s blocks) gives finalised-grade safety. Do NOT use Polygon’s 4 here — 4 blocks (~48 s) is nowhere near finalised, and would re-open the settle-reorg gap (threat 2.8). The facilitator auto-sizes receiptTimeoutMs from this depth (~10 min), so the default does not time out. JPYC is live at the same address as the other chains.

Type Declaration

blockExplorers

blockExplorers: object

blockExplorers.default

readonly default: object

blockExplorers.default.apiUrl

readonly apiUrl: "https://api.etherscan.io/api"

blockExplorers.default.name

readonly name: "Etherscan"

blockExplorers.default.url

readonly url: "https://etherscan.io"

blockTime

blockTime: 12000

blockTimeMs

blockTimeMs: number = 12_000

contracts

contracts: object

contracts.ensUniversalResolver

readonly ensUniversalResolver: object

contracts.ensUniversalResolver.address

readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee"

contracts.ensUniversalResolver.blockCreated

readonly blockCreated: 23085558

contracts.multicall3

readonly multicall3: object

contracts.multicall3.address

readonly address: "0xca11bde05977b3631167028862be2a173976ca11"

contracts.multicall3.blockCreated

readonly blockCreated: 14353601

custom?

optional custom?: Record<string, unknown>

defaultConfirmations

defaultConfirmations: number = 32

ensTlds?

optional ensTlds?: readonly string[]

experimental_preconfirmationTime?

optional experimental_preconfirmationTime?: number

extendSchema?

optional extendSchema?: Record<string, unknown>

fees?

optional fees?: ChainFees<undefined>

formatters?

optional formatters?: undefined

id

id: 1

isTestnet

isTestnet: false = false

name

name: "Ethereum"

nativeCurrency

nativeCurrency: object

nativeCurrency.decimals

readonly decimals: 18

nativeCurrency.name

readonly name: "Ether"

nativeCurrency.symbol

readonly symbol: "ETH"

prepareTransactionRequest?

optional prepareTransactionRequest?: ((args, options) => Promise<PrepareTransactionRequestParameters<Chain | undefined, Account | undefined, Chain | undefined, `0x${string}` | Account | undefined, PrepareTransactionRequestRequest<Chain | undefined, Chain | undefined, Chain | undefined>>>) | [(args, options) => Promise<PrepareTransactionRequestParameters<Chain | undefined, Account | undefined, Chain | undefined, `0x${string}` | Account | undefined, PrepareTransactionRequestRequest<Chain | undefined, Chain | undefined, Chain | undefined>>>, object]

rpcUrls

rpcUrls: object

rpcUrls.default

readonly default: object

rpcUrls.default.http

readonly http: readonly ["https://eth.merkle.io"]

serializers?

optional serializers?: ChainSerializers<undefined, TransactionSerializable<bigint, number>>

sourceId?

optional sourceId?: number

testnet?

optional testnet?: boolean

verifyHash?

optional verifyHash?: (client, parameters) => Promise<boolean>

Parameters

client

Client<Transport, Chain | undefined, Account | undefined, undefined, {[key: string]: unknown; account?: undefined; batch?: undefined; cacheTime?: undefined; ccipRead?: undefined; chain?: undefined; dataSuffix?: undefined; experimental_blockTag?: undefined; key?: undefined; name?: undefined; pollingInterval?: undefined; request?: undefined; transport?: undefined; type?: undefined; uid?: undefined; } | undefined>

parameters

VerifyHashParameters

Returns

Promise<boolean>