checkStatus
Functions that returns transaction status and information about the given request.
Param | Description |
---|---|
requestId | Notarization'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
}