Seismic Python SDK — web3.py extensions for the Seismic privacy-enabled EVM
Project description
seismic-web3
Python SDK for Seismic, built on web3.py. Requires Python 3.10+.
pip install seismic-web3
Quick start
from seismic_web3 import SEISMIC_TESTNET, PrivateKey
pk = PrivateKey(bytes.fromhex("YOUR_PRIVATE_KEY_HEX"))
w3 = SEISMIC_TESTNET.create_client(pk)
contract = w3.seismic.contract(address="0x...", abi=ABI)
# Shielded write — calldata is encrypted (TxSeismic type 0x4a)
tx_hash = contract.write.setNumber(42)
receipt = w3.eth.wait_for_transaction_receipt(tx_hash)
# Shielded read — signed, encrypted eth_call
result = contract.read.getNumber()
ShieldedContract exposes five namespaces:
| Namespace | What it does | On-chain visibility |
|---|---|---|
.write |
Encrypted transaction (TxSeismic type 0x4a) |
Calldata hidden |
.read |
Encrypted signed eth_call |
Calldata + result hidden |
.twrite |
Standard eth_sendTransaction |
Calldata visible |
.tread |
Standard eth_call |
Calldata visible |
.dwrite |
Debug write — returns plaintext + encrypted views | Calldata hidden |
Both sync and async clients are supported. See the full documentation for details.
Documentation
Full docs are hosted on GitBook: docs.seismic.systems/clients/python
Contributing
See DEVELOPMENT.md for local setup, running tests, and publishing.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seismic_web3-0.1.0.tar.gz.
File metadata
- Download URL: seismic_web3-0.1.0.tar.gz
- Upload date:
- Size: 246.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a5967f8da1dd32465e77638d14dfb0b7f4147ff8bb6dfd4e845db36ff7e7e0d
|
|
| MD5 |
492525173663607c77026698ba1ee43d
|
|
| BLAKE2b-256 |
78f93b7eb4f002f7b7a3d424765ab826d714ce0389215546db6e67f1716eb44f
|
File details
Details for the file seismic_web3-0.1.0-py3-none-any.whl.
File metadata
- Download URL: seismic_web3-0.1.0-py3-none-any.whl
- Upload date:
- Size: 54.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16bc73dad5b6018fd677b86e867751cfb0fc676ca54ae342a9362466bacb4fde
|
|
| MD5 |
3301f076349746ce838f47badb95595c
|
|
| BLAKE2b-256 |
902f2ffde893ed64228867c69e5e8487800f2332dff7a0d8a609cc895cd45f2b
|