eth_getTransactionByHash

Retrieves a transaction by its hash.

Example

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

Parameters

Returns

A promise that resolves to the transaction.