View as Markdown

Platform · API reference

Transparency log

The public, append-only log of ledger checkpoints.

Related guide: Transparency log

Get the transparency log

GET/.well-known/provenance-log

Returns the signed checkpoint history, the log's Merkle root and consistency proofs between checkpoints. Public, with no key, and cacheable.

Parameters

No parameters.

Returns

The checkpoints, the log's root and the consistency proofs.

Errors

curl "$PROVENANCE_API/.well-known/provenance-log"

Response 200

{
  "environment": "sandbox",
  "log_root": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "checkpoints": [],
  "consistency": []
}

Prove log inclusion

GET/v1/log/inclusion

Returns a Merkle proof that your account's ledger head is in the latest checkpoint, with the checkpoint's signed token.

Parameters

No parameters.

Returns

The checkpoint and your account's inclusion proof.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/log/inclusion" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "log_inclusion",
  "root": "9c4e1f7a2b8d03e6c5a9f14b7d2e8c06a3f5b9d1e7c24a8f6b0d3e9c1a5f7b2d",
  "tree_size": 412,
  "account_hash": "5d2a8e1c7f3b9046e2c8a5f1d7b3e9c04a6f2d8b1e5c9a3f7d0b4e8c2a6f1d9b",
  "chain_head": "b8a3ee276f62cb80f3802594e2be103f99994cdc26c29de5faecad627bed7a0d",
  "leaf_index": 87,
  "proof": [
    "1f6c9a3e7d2b8f04c5a1e9d3b7f2c8a06e4d1b9f5c3a7e2d8b0f6c4a1e9d3b7f",
    "e2b7d4a9c1f6083b5e9a2d7c4f1b8e06a3d9c5f2b7e1a4d8c0f3b6e9a2d5c7f1"
  ],
  "signed_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtY2hlY2twb2ludCtqd3QifQ.eyJyb290Ijoi…"
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.