# debug\_send\_shielded\_transaction

Same send pipeline as `send_shielded_transaction`, plus plaintext/encrypted transaction views.

## Signatures

```python
# sync
w3.seismic.debug_send_shielded_transaction(...same args as send_shielded_transaction...) -> DebugWriteResult

# async
await w3.seismic.debug_send_shielded_transaction(...same args...) -> DebugWriteResult
```

## Returns

[`DebugWriteResult`](https://docs.seismic.systems/clients/python/api-reference/transaction-types/debug-write-result) with:

| Field          | Type                                                                                                                   | Description                                  |
| -------------- | ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| `tx_hash`      | `HexBytes`                                                                                                             | Transaction hash from the network            |
| `plaintext_tx` | [`PlaintextTx`](https://docs.seismic.systems/clients/python/api-reference/transaction-types/plaintext-tx)              | Transaction with **unencrypted** calldata    |
| `shielded_tx`  | [`UnsignedSeismicTx`](https://docs.seismic.systems/clients/python/api-reference/transaction-types/unsigned-seismic-tx) | Full `TxSeismic` with **encrypted** calldata |

The transaction **is** broadcast — this is not a dry run.

## Example

```python
result = w3.seismic.debug_send_shielded_transaction(to="0xTarget", data=calldata)
print(result.tx_hash.hex())
print(result.plaintext_tx.data.hex())
print(result.shielded_tx.data.hex())
```

## Notes

* Parameters are identical to [`send_shielded_transaction`](https://docs.seismic.systems/clients/python/namespaces/methods/send-shielded-transaction)
* For contract interactions, prefer `contract.dwrite.functionName(...)` which handles ABI encoding automatically
* Be careful logging `plaintext_tx` in production — it contains unencrypted calldata

## See Also

* [send\_shielded\_transaction](https://docs.seismic.systems/clients/python/namespaces/methods/send-shielded-transaction) — Same pipeline without debug info
* [contract.dwrite](https://docs.seismic.systems/clients/python/contract/namespaces/dwrite) — High-level debug write API
* [DebugWriteResult](https://docs.seismic.systems/clients/python/api-reference/transaction-types/debug-write-result) — Return type reference
