coinsSRC20_ABI

SRC20 token interface ABI constant

ABI for the ISRC20 interface — Seismic's privacy-preserving ERC20 standard. Token amounts use shielded types (suint256) and balanceOf() takes no arguments (uses msg.sender internally).

from seismic_web3 import SRC20_ABI

SRC20_ABI: list[dict[str, Any]]

Functions

Function
Parameters
Returns
Mutability
Description

name()

string

view

Token name

symbol()

string

view

Token symbol

decimals()

uint8

view

Token decimals

balanceOf()

uint256

view

Caller's balance (no address arg)

approve

spender: address, amount: suint256

bool

nonpayable

Approve shielded amount

transfer

to: address, amount: suint256

bool

nonpayable

Transfer shielded amount

transferFrom

from: address, to: address, amount: suint256

bool

nonpayable

Transfer from approved account

Events

Event
Indexed Parameters
Data

Transfer

from: address, to: address, encryptKeyHash: bytes32

encryptedAmount: bytes

Approval

owner: address, spender: address, encryptKeyHash: bytes32

encryptedAmount: bytes

balanceOf — SRC20 vs ERC20

Standard ERC20:

SRC20:

In SRC20, balanceOf() always returns the caller's balance. Use .read (a signed read that proves identity), not .tread.

Example

See Also

Last updated