UnsignedSeismicTx
Complete unsigned Seismic transaction
Last updated
Complete unsigned Seismic transaction
All fields of a TxSeismic (type 0x4a) transaction before signing.
@dataclass(frozen=True)
class UnsignedSeismicTx:
chain_id: int
nonce: int
gas_price: int
gas: int
to: ChecksumAddress | None
value: int
data: HexBytes
seismic: SeismicElementschain_id
int
Numeric chain identifier
nonce
int
Sender's transaction count
gas_price
int
Gas price in wei
gas
int
Gas limit
to
ChecksumAddress | None
Recipient address, or None for contract creation
value
int
Amount of wei to transfer
data
HexBytes
Encrypted calldata (ciphertext)
The data field contains encrypted calldata — plaintext is not recoverable without the TEE's private key
Created automatically by the SDK's write methods; visible in DebugWriteResult for inspection
Compatible with both raw signing (message_version=0) and EIP-712 (message_version=2)
SeismicElements — Seismic-specific fields
sign_seismic_tx_eip712 — sign this transaction
DebugWriteResult — contains UnsignedSeismicTx
build_seismic_typed_data — convert to EIP-712 dict
Last updated
from seismic_web3 import sign_seismic_tx_eip712, PrivateKey
unsigned_tx = UnsignedSeismicTx(...)
signed_tx = sign_seismic_tx_eip712(unsigned_tx, PrivateKey(...))
tx_hash = w3.eth.send_raw_transaction(signed_tx)
