SANVIL
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
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:
Sanvil (Seismic Anvil) - Local development node
Running on
127.0.0.1:8545Compatible with Seismic protocol extensions
Notes
Chain ID
31337matches the default Anvil chain IDSuitable 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
ChainConfig - Chain configuration dataclass
SEISMIC_TESTNET - Public testnet configuration
create_wallet_client - Direct client creation
PrivateKey - Private key type
Last updated

