Skip to main content

QueryResults

@midnight-ntwrk/onchain-runtime v0.2.2 β€’ Readme | API


@midnight-ntwrk/onchain-runtime v0.2.2 / QueryResults

Class: QueryResults

The results of making a query against a specific state or context

Constructors​

new QueryResults()​

private new QueryResults(): QueryResults

Returns​

QueryResults

Properties​

context​

readonly context: QueryContext;

The context state after executing the query. This can be used to execute further queries


events​

readonly events: GatherResult[];

Any events/results that occurred during or from the query


gasCost​

readonly gasCost: bigint;

The measured cost of executing the query

Methods​

toString()​

toString(compact?): string

Parameters​

β€’ compact?: boolean

Returns​

string