file-codeABIs

Built-in ABI constants and deposit helper functions

The SDK exports protocol ABIs, genesis contract addresses, and deposit helper utilities.

Constants

Constant
Type
Description

list[dict]

SRC20 token interface (7 functions, 2 events)

list[dict]

Validator deposit contract (4 functions, 1 event)

str

0x00000000219ab540356cBB839Cbe05303d7705Fa

list[dict]

Viewing key directory (4 functions)

str

0x1000000000000000000000000000000000000004

Helper Functions

Function
Returns
Description

bytes

SHA-256 SSZ hash tree root for deposit data

bytes

32-byte ETH1 withdrawal credentials from address

Example

import os
from eth_abi import decode
from seismic_web3 import PrivateKey, SEISMIC_TESTNET, SRC20_ABI

pk = PrivateKey.from_hex_str(os.environ["PRIVATE_KEY"])
w3 = SEISMIC_TESTNET.wallet_client(pk)

token = w3.seismic.contract("0xYourTokenAddress", SRC20_ABI)
balance = decode(["uint256"], bytes(token.read.balanceOf()))[0]

See Also

  • SRC20 — SRC20 token usage guide

  • Contract — Contract interaction patterns

  • Namespacesw3.seismic methods including deposit, get_deposit_count, get_deposit_root

Last updated