utils.getReceipt(transactionId)

Returns the receipt associated with the supplied transaction ID, or an error if no receipt is found.

Parameters

NameTypeDescription
transactionIdstringThe transaction ID associated with the receipt.

Returns

Returns a receipt as a JSON object with the following values:

response = {
  id,              // Transaction ID (used to download the data)
  timestamp,       // Timestamp (UNIX milliseconds) of when the transaction was created and verified
  version,         // The version of this JSON file, currently 1.0.0
  public,          // Public key of the bundler node used
  signature,       // A signed deep hash of the JSON receipt
  deadlineHeight,  // The block number by which the transaction must be finalized
  block,           // Deprecated
  validatorSignatures, // Deprecated
  verify,          // An async function used to verify the receipt at any time
}

Example

Note
Note
Use a token-specific version of getIrysUploader() to connect to an Irys Bundler before uploading. Choose one from the setup documentation.
const irys = await getIrysUploader();

try {
  const transactionID = "i9tgbHsr6c1sxryAQ-SLM2rfQAYRuyap7RmGgH28mI4"; // Your transaction ID
  const receipt = await irys.utils.getReceipt(transactionID);
  console.log(receipt);
} catch (e) {
  console.log("Error getting receipt ", e);
}