queryLedgerState
@midnight-ntwrk/compact-runtime v0.14.0
@midnight-ntwrk/compact-runtime / queryLedgerState
Function: queryLedgerState()
function queryLedgerState(
circuitContext,
partialProofData,
program):
| AlignedValue
| GatherResult[];
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​
The context for the currently executing circuit.
partialProofData​
The partial proof data to insert the query results into.
program​
Op<null>[]
The query to run.
Returns​
| AlignedValue
| GatherResult[]