---
eip: 2400
label: ERC-2400
title: Transaction Receipt URI
status: Stagnant
type: Standards Track
category: ERC
created: 2019-11-05
requires: 155, 681
official: https://eips.ethereum.org/EIPS/eip-2400
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-2400.md
canonical: https://eips.huatuo.xyz/eip-2400/
lang: en
tldr: "A URI format, ethereum:tx-<hash>@<chainId>, for sharing a submitted transaction together with the method and event signatures needed to decode it."
tags: [uri, transactions, wallet, interop, qr]
---

# ERC-2400: Transaction Receipt URI

> URI format for submitted transactions with complete information for transaction decoding

**TL;DR:** A URI format, ethereum:tx-<hash>@<chainId>, for sharing a submitted transaction together with the method and event signatures needed to decode it.

## What problem does it solve?

A bare transaction hash looks like any other 32-byte hash. It does not say which chain it lives on, and a viewer that has never seen the contract cannot decode the calldata or the logs.

ERC-2400 defines a standard URI for "a transaction that has been submitted". Wallets, dapps, chat apps or a QR code on a vending machine can hand it off, and the receiver opens the user's preferred explorer with enough context to show the transaction meaningfully. It is the receipt-side companion to [EIP-681](/eip-681/), which describes transaction *requests*.

## How it works

The grammar, simplified:

```
ethereum:tx-<0x + 64 hex chars>[@<chainId>][?method=<sig>&events=<sig>;<sig>...]
```

- **`tx-` prefix** marks the URI as a receipt. Future incompatible formats must use a different dash-separated prefix.
- **Transaction hash** is mandatory. The client looks it up on the given chain; if it is not found it checks the pending pool and keeps polling. If it still cannot find it, it shows a "transaction not found" error.
- **`@chainId`** is the decimal chain ID from [EIP-155](/eip-155/). If omitted, mainnet (`1`) is assumed.
- **`method`** is a function signature such as `transfer(address,uint256)`. The client must check that its 4-byte selector matches the first 4 bytes of the calldata and show a validation error otherwise.
- **`events`** is a `;`-separated list of event signatures. A `!` before a type marks an indexed parameter. For successful transactions, each listed event must appear at least once in the receipt logs; pending and failed transactions are not checked against events.

The idea is that whoever signed the transaction already knew the ABI, so they can attach the relevant fragments when sharing it.

## Sample code

URIs from the spec:

```text
ethereum:tx-0x1143b5e38fe3cf585fb026fb9b5ce35c85a691786397dc8a23a07a62796d8172@1

ethereum:tx-0x5375e805b0c6afa20daab8d37352bf09a533efb03129ba56dee869e2ce4f2f92@1?method="transfer(address,uint256)"&events="Transfer(!address,!address,uint256)"
```

Validating the `method` parameter against a fetched transaction (ethers v6):

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

declare const receiptUri: string;
declare function rpcUrlFor(chainId: number): string; // your own chain -> RPC map

const uri = new URL(receiptUri.replace("ethereum:tx-", "https://x/")); // reuse URL parser
const [hash, chain = "1"] = uri.pathname.slice(1).split("@");
const method = uri.searchParams.get("method")?.replace(/"/g, "");

const provider = new JsonRpcProvider(rpcUrlFor(Number(chain)));
const tx = await provider.getTransaction(hash);
if (method && tx && tx.data.slice(0, 10) !== id(method).slice(0, 10)) {
  throw new Error("method validation error");
}
```

## Things to know

- **Status: Stagnant.** The format is not widely implemented by wallets or explorers; treat it as a reference design rather than something clients will understand.
- The spec says to keep checking a pending transaction until it is "unrevertable", suggesting about 12 blocks. On post-Merge Ethereum, finality is a separate consensus concept, so implementers should decide what confirmation threshold to show.
- A missing hash may simply mean the transaction is still propagating, or that it was replaced by another transaction with the same nonce.
- Signatures in the URI are hints supplied by the sharer, not proof of anything. The client must validate them against the actual on-chain data, as the spec requires.


---

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