Contract
Instantiating contracts and interacting through shielded and transparent namespaces
Instantiation
contract = w3.seismic.contract(address="0x...", abi=ABI)Namespaces
Namespace
What it does
On-chain visibility
# Shielded write — encrypted calldata, returns tx hash
tx_hash = contract.write.setNumber(42)
# Shielded read — encrypted signed call, returns raw bytes
result = contract.read.getNumber()
# Transparent write — standard send_transaction
tx_hash = contract.twrite.setNumber(42)
# Transparent read — standard eth_call
result = contract.tread.getNumber()
# Debug write — returns plaintext + encrypted views + tx hash
debug = contract.dwrite.setNumber(42)
debug.plaintext_tx.data # unencrypted calldata
debug.shielded_tx.data # encrypted calldata
debug.tx_hash # transaction hashEncoding calldata manually
Last updated

