---
eip: 7966
label: EIP-7966
title: eth_sendRawTransactionSync Method
status: Draft
type: Standards Track
category: Interface
created: 2025-06-11
official: https://eips.ethereum.org/EIPS/eip-7966
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7966.md
canonical: https://eips.huatuo.xyz/eip-7966/
lang: en
tldr: A new JSON-RPC method that submits a signed transaction and waits for its receipt in the same call, cutting a polling round-trip for apps on fast chains and L2s.
tags: [json-rpc, interface, transactions, latency, l2]
---

# EIP-7966: eth_sendRawTransactionSync Method

> A JSON-RPC method to reduce transaction submission latency by allowing synchronous receipt of transaction hash and block inclusion.

**TL;DR:** A new JSON-RPC method that submits a signed transaction and waits for its receipt in the same call, cutting a polling round-trip for apps on fast chains and L2s.

## What problem does it solve?

Today an app sends a transaction with `eth_sendRawTransaction`, gets back only a hash, and then polls `eth_getTransactionReceipt` until the transaction lands. On chains and rollups with very short block times the receipt is often ready almost immediately, so that extra polling loop is a large share of the total latency, plus more requests and more client code.

Errors are also unhelpful: if your nonce is wrong you typically need another call (`eth_getTransactionCount`) to find the right one.

EIP-7966 adds `eth_sendRawTransactionSync`, which submits and then waits for the receipt in one request, Web2-style.

## How it works

**Parameters**

1. The signed raw transaction (same format as `eth_sendRawTransaction`).
2. Optional maximum wait time in milliseconds. It must be positive and not above the node's configured maximum; an invalid value falls back to the node default (2 seconds recommended).

**Behaviour**

- The node first checks whether the transaction could execute right now. If it has a **nonce gap**, it is *not* added to the mempool and the node returns error `6` with the expected nonce. If it would be queued for any other reason, error `5`.
- Otherwise it is submitted normally and the node waits for the receipt.
- Receipt found in time: the normal receipt object is returned.
- Timeout: error `4`, with the transaction hash in `data`. The transaction is still in the mempool and may land later.
- Invalid transactions fail immediately with the usual JSON-RPC error.

| Code | Meaning | `data` |
| --- | --- | --- |
| 4 | Accepted, but no receipt before timeout | tx hash |
| 5 | Not added to mempool (not ready) | tx hash |
| 6 | Not added to mempool (nonce gap) | expected nonce |

## Sample code

Calling the method directly with ethers v6:

```ts
import { JsonRpcProvider, Wallet } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);
const wallet = new Wallet(process.env.PRIVATE_KEY!, provider);

const signed = await wallet.signTransaction(
  await wallet.populateTransaction({ to: recipient, value: 1n }),
);

try {
  const receipt = await provider.send("eth_sendRawTransactionSync", [signed, 3000]);
  console.log("mined in block", BigInt(receipt.blockNumber), "status", receipt.status);
} catch (e: any) {
  const err = e.error ?? e;
  if (err.code === 6) console.log("resend with nonce", BigInt(err.data));
  else if (err.code === 4) console.log("still pending:", err.data); // keep watching this hash
  else throw e;
}
```

## Things to know

- Status is **Draft**. It is an optional RPC method; nodes that do not implement it return "method not found", so keep a fallback to the async flow.
- It is aimed at fast chains and L2s. On a chain with 12-second blocks a synchronous wait will often hit the timeout.
- A timeout is not a failure: the transaction may still be included, so continue tracking the returned hash.
- The method changes nothing about consensus or transaction format. The standard Ethereum JSON-RPC API is described in [EIP-1474](/eip-1474/).


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7966
