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:
Param | Type | Description |
---|---|---|
status | string | Status of |
bundleMerkleTree | string | IPFS uri of merkle tree |
tx | object | Polygon transaction object |
receipt | object | Polygon receipt object |
ethTx | object | Ethereum transaction object |
decodedData | object | Proof |
merkleTree | object | Merkle tree of hashes |
receiptTimestamp | number | Timestamp of receipt |
network | string | Network 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}`,
},
});