Skip to content

GET /checkStatus/<requestId>

Request to check notarization status containing transaction status, receipt, ethereum anchor tx and ethereum merkletree reference.

Params

The only param requested is requestId as query param.

Return

The POST request return an object containing the follow properties:

ParamTypeDescription
statusstringStatus of
bundleMerkleTreestringIPFS uri of merkle tree
txobjectPolygon transaction object
receiptobjectPolygon receipt object
ethTxobjectEthereum transaction object
decodedDataobjectProof
merkleTreeobjectMerkle tree of hashes
receiptTimestampnumberTimestamp of receipt
networkstringNetwork name

Usage

const axios = require('axios');

const endpoint = https://pablock-api-dev.bcode.cloud
const authToken = '<your-token>'

const requestId = '<request-id>'

let {
    status,
    data,
} = await axios.get(`${this.endpoint}/checkStatus/${requestId}`, {
    headers: {
    Authorization: `Bearer ${this.authToken}`,
    },
});