Access private and privacy marker transactions (Deprecated)
Tessera-based privacy is deprecated in Besu version 24.12.0 and later. Please read this blog post for more context on the rationale behind this decision as well as alternative options.
A Besu private transaction creates a privacy marker transaction and the private transaction itself.
Transaction receipts
With the transaction hash returned when submitting the private transaction, to get the transaction receipt for the:
- Private transaction, use
priv_getTransactionReceipt
. - Privacy marker transaction, use
eth_getTransactionReceipt
.
The transaction receipt includes a status
indicating if the transaction failed (0x0
), succeeded (0x1
), or was invalid (0x2
).
To deploy a private contract, you submit a transaction using eea_sendRawTransaction
. If contract deployment fails because of insufficient gas, the privacy marker transaction receipt has a status of success and the private transaction receipt has a status of failure.
Transactions
With the transaction hash returned when submitting the private transaction, to get the:
- Private transaction, use
priv_getPrivateTransaction
. - Privacy marker transaction, use
eth_getTransactionByHash
.