Docs

eth_getTransactionReceipt

Retrieves the transaction receipt for a given transaction hash. Throws an error if the receipt is not found.

Example

import { getRpcClient, eth_getTransactionReceipt } from "thirdweb/rpc";
const rpcRequest = getRpcClient({ client, chain });
const transactionReceipt = await eth_getTransactionReceipt(rpcRequest, {
hash: "0x...",
});

Parameters

Returns

A promise that resolves to the transaction receipt.