Skip to content

GET /checkNotarizationTree/<requestId>

Return transaction status, receipt, ethereum anchor tx and ethereum merkletree reference.

Usage

const axios = require('axios');

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

const requestId = '<request-id>'

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

Returns

The hash in returns value is the transactionHash where the merkleRoot of given hash is included.


type status = 'pending' | 'success' | 'failure' | "mined"

{
    status: 'success',
    data: {
        hash: '0x...',
        ipfsMerkleTree: ['0x...', '0x...', '0x...'],
    },
}