Skip to content

checkBundleNotarization

Return transaction status, receipt, ethereum anchor tx and ethereum merkletree reference.

Params

ParamDescription
requestIdString id returned from notarizeHash call
returnParamsArray of params

Usage

import { BcodeSDK } from "@bcode-tech/bcode-sdk";

type ReturnParam = "leaves" | "merkleRoot" | "merkleProof" | "inclusion";

(async () => {
  const sdk = new BcodeSDK({
    apiKey: "your-api-key",
    config: { env: "MUMBAI" },
  });

  await sdk.checkBundledNotarization(requestId, returnParams);
})();

Returns

type txStatauObj = {
    status: "success" | "failed" | "pending" | "mined" | "queued",
    tx: Transaction,
    receipt: Receipt,
    ethTx: Receipt,
    decodedData: omit(doc.proof, ["merkleTree"]),
    merkleTree,
}