Skip to content
Cive

getTransactionReceipt

Returns the Transaction Receipt given a Transaction hash.

Usage

import {  } from "./client";
 
const  = await .({
  : "0x...",
});

Returns

TransactionReceipt

The transaction receipt.

Parameters

hash

  • Type: '0x${string}'

A transaction hash.

const transaction = await publicClient.getTransactionReceipt({
  hash: "0x...", 
});

JSON-RPC Method

cfx_getTransactionReceipt