Skip to main content

queryLedgerState

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.19.0


@midnight-ntwrk/compact-runtime / queryLedgerState

Function: queryLedgerState()

function queryLedgerState(
circuitContext,
partialProofData,
program): AlignedValue | undefined;

Runs a program (query) against the current ledger state in the given circuit context. Records the transcript in the given partial proof data.

Parameters​

circuitContext​

CircuitContext

The context for the currently executing circuit.

partialProofData​

PartialProofData

The partial proof data to insert the query results into.

program​

Op<null>[]

The query to run.

Returns​

AlignedValue | undefined