eth_sendPrivateTransaction
Submit a single private transaction with an optional block number ceiling. The transaction is not broadcast to the public mempool.
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_sendPrivateTransaction",
"params": [
{
"tx": "0x...signed-tx-bytes...",
"maxBlockNumber": "0x1234567"
}
]
}Parameters
| Parameter | Required | Description |
|---|---|---|
tx | Yes | Signed raw transaction (RLP-encoded hex). |
maxBlockNumber | No | Last block number in which the transaction should be included (hex). Must be in the future if provided. |
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x...txhash..."
}The transaction can be cancelled with eth_cancelPrivateTransaction.