Common Chain IDs
| Network | ID |
|---|---|
| Ethereum | 1 |
| Polygon | 137 |
| Arbitrum | 42161 |
| Optimism | 10 |
| Base | 8453 |
| Sepolia | 11155111 |
Ethereum network chain identifier
import * as ChainId from 'voltaire-effect/primitives/ChainId'
import * as Schema from 'effect/Schema'
import { Effect } from 'effect'
// Schema
const mainnet = Schema.decodeSync(ChainId.Number)(1)
const polygon = Schema.decodeSync(ChainId.Number)(137)
// Effect
const program = ChainId.from(1)
// Effect.Effect<ChainIdType, InvalidChainIdError>
| Network | ID |
|---|---|
| Ethereum | 1 |
| Polygon | 137 |
| Arbitrum | 42161 |
| Optimism | 10 |
| Base | 8453 |
| Sepolia | 11155111 |