Skip to content

checkStatus

Functions that returns transaction status and information about the given request.

ParamDescription
requestIdNotarization's request identifier

Usage

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

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

  await sdk.checkStatus(requestId);
};

Returns

{
    status: "success" | "failed" ,
    tx: object | null,
    receipt: object | null,
    ethTx: object | null,
    decodedData: object | null ,
    merkleTree: array
}