Skip to main content

Ledger and Proof queries

The ledger API gives the user access to the data stored in the Orion ledger and is used to prove data integrity and provide tamper resistance and non-repudiation. For more information about data structures exposed by the ledger, see block skip chain, Transactions merkle tree, and state trie.

Here are several proof queries accessible in the Orion ledger:

  • Block header query, including all of a block's transaction IDs.
GET /ledger/block/{blocknum}
  • Ledger consistency query, i.e., ledger connectivity.
GET /ledger/path?start={startNum}&end={endNum}
  • Transaction receipt query, used as an anchor to prove transaction existence and validity.
GET /ledger/tx/receipt/{TxId}
  • Block Merkle Tree transaction proof query.
GET /ledger/proof/tx/{blockId:[0-9]+}?idx={idx:[0-9]+}
  • Orion Merkle-Patricia Trie state proof query.
GET /ledger/proof/data/{dbName}/{key}?block={blockNum}