ABIs
Built-in ABI constants and deposit helper functions
Constants
Constant
Type
Description
Helper Functions
Function
Returns
Description
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
Last updated

