DebugWriteResult
Result from debug shielded write
Result from a debug shielded write (.dwrite namespace). The transaction is broadcast (like .write), but you also get both plaintext and encrypted views for inspection.
Definition
@dataclass(frozen=True)
class DebugWriteResult:
plaintext_tx: PlaintextTx
shielded_tx: UnsignedSeismicTx
tx_hash: HexBytesFields
Field
Type
Description
tx_hash
HexBytes
Transaction hash from eth_sendRawTransaction
Example
result = await contract.dwrite.transfer(recipient, 1000)
print(f"Tx hash: {result.tx_hash.to_0x_hex()}")
print(f"Plaintext data: {result.plaintext_tx.data.to_0x_hex()}")
print(f"Encrypted data: {result.shielded_tx.data.to_0x_hex()}")Notes
.dwritebroadcasts a real transaction — it consumes gas and changes stateUse
.writein production;.dwriteis for debugging onlyThe
shielded_txfield is unsigned (the SDK adds the signature before broadcast)
See Also
PlaintextTx — plaintext transaction view
UnsignedSeismicTx — shielded transaction structure
Last updated

