checkBundleNotarization
Return transaction status, receipt, ethereum anchor tx and ethereum merkletree reference.
Params
Param | Description |
---|---|
requestId | String id returned from notarizeHash call |
returnParams | Array 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,
}