Skip to content

GET /v2/checkStatus/

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

Params

ParamTypeDescription
hashstringStatus of
txHashstringIPFS uri of merkle tree
requestIdstringPolygon transaction object
paramsarrayArray of element to include as "eth" key

The params can be compined, if hash and txHash are present it will use them, otherwise if requestId is passed, it will use it.

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}/v2/checkStatus?requestId=${requestId}`, {
    headers: {
    Authorization: `Bearer ${this.authToken}`,
    },
});

or

const axios = require('axios');

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

const hash = '<hash>'
const txHash = '<txHash>'

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