computerSANVIL

Pre-configured local development network

Pre-defined ChainConfig for the local Sanvil (Seismic Anvil) development network.

Overview

SANVIL is a ready-to-use chain configuration pointing to a local Seismic node running on 127.0.0.1:8545. It's designed for local development and testing workflows.

Definition

SANVIL: ChainConfig = ChainConfig(
    chain_id=31337,
    rpc_url="http://127.0.0.1:8545",
    ws_url="ws://127.0.0.1:8545",
    name="Sanvil (local)",
)

Configuration

Property
Value

chain_id

31337

rpc_url

"http://127.0.0.1:8545"

ws_url

"ws://127.0.0.1:8545"

name

"Sanvil (local)"

Usage

Import and Access Properties

Create Wallet Client (Sync)

Create Wallet Client (Async)

Create Public Client

Examples

Local Development Workflow

Testing with Multiple Accounts

Checking Local Node Connection

Integration Testing

Prerequisites

To use SANVIL, you need a local Seismic node running. This is typically:

  1. Sanvil (Seismic Anvil) - Local development node

  2. Running on 127.0.0.1:8545

  3. Compatible with Seismic protocol extensions

Notes

  • Chain ID 31337 matches the default Anvil chain ID

  • Suitable for local development and testing only

  • Fast block times and instant finality

  • No real value on chain

  • WebSocket endpoint available for subscriptions

  • Typically used with well-known test private keys

Chain ID Constant

The chain ID is also available as a standalone constant:

Well-Known Test Accounts

When running Sanvil/Anvil, the following test accounts are pre-funded:

These are unsafe for production and should only be used for local testing.

See Also

Last updated