getMetaTxStatus
Return meta transaction status, receipt, ethereum anchor tx.
Param | Description |
---|---|
requestId | String id returned from executeAsyncTransaction call |
Usage
import { BcodeSDK } from "@bcode-tech/bcode-sdk";
(async () => {
const sdk = new BcodeSDK({
apiKey: "your-api-key",
config: { env: "MUMBAI" },
});
await sdk.getMetaTxStatus(requestId);
})();
Returns
type txStatauObj = {
status: "success" | "failed" | "pending" | "mined" | "queued",
tx: Transaction,
receipt: Receipt,
ethTx: Receipt,
decodedData: omit(doc.proof, ["merkleTree"]),
merkleTree,
}