All phases of Avail's unification drop have now ended, 👉👉 check out this page 👈👈 for more information.

API reference
Fetch the confidence of a specific block

Fetch the confidence of a specific block

Allows us to fetch the confidence in % for a given block number.

Params:

  • block number

Response:

  • block number
  • confidence in %
  • serialised confidence
curl "https://api.lightclient.mainnet.avail.so/v1/confidence/1"
Sample Response:
{
  "block": 1,
  "confidence": 93.75,
  "serialised_confidence": "5232467296"
}

If confidence is not computed, and specified block is before the latest processed block:

"Not synced"

If confidence is not computed, and specified block is after the latest processed block:

"Not found"