make_seismic_testnet
Factory function for testnet chain configs
Factory function that creates a ChainConfig for a Seismic testnet node.
Overview
make_seismic_testnet generates a chain configuration for a GCP testnet node or a custom host. This is useful when you need to connect to alternate testnet nodes beyond the default SEISMIC_TESTNET (which is GCP node 1).
Definition
def make_seismic_testnet(
n: int = 1,
*,
host: str | None = None,
) -> ChainConfig:Parameters
Parameter
Type
Required
Default
Description
n
int
No
1
GCP node number
host
str | None
No
None
Custom hostname. Mutually exclusive with n
Raises ValueError if both n and host are provided.
Returns
ChainConfig- A chain configuration for the specified testnet
Examples
Connect to Alternate GCP Nodes
Custom Host
Default Parameter
Relationship to SEISMIC_TESTNET
The default SEISMIC_TESTNET constant is defined as:
See Also
ChainConfig - Chain configuration dataclass
SEISMIC_TESTNET - Pre-defined testnet (GCP node 1)
PrivateKey - Private key type
Last updated

