SDK reference · Node SDK

prov.mandate.assessments.verifyChain

prov.mandate.assessments.verifyChain in Node SDK. Recompute the hash chain over a range; reports the first break, if any.

Signature

prov.mandate.assessments.verifyChain(range?: { createdGte?: string; createdLte?: string }): Promise<DecisionChainVerification>

Parameters

range{ createdGte?: string; createdLte?: string }

Request fields

created_gtetimestampquery
The start of the time window, as an ISO 8601 time.
created_ltetimestampquery
The end of the time window, as an ISO 8601 time.

Returns

Promise<DecisionChainVerification> Whether the ledger's hash chain is intact.

HTTP operation

GET /v1/mandate/assessments/verify_chain: Verify the decision chain

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/assessments/verify_chain`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.