Type Alias QueryResult<T, K, I>

QueryResult: { contracts: readonly CreateEvent<T, K, I>[]; loading: boolean }

The result of a query against the ledger.

Note: this is meant to be used by @daml/react.

Type Parameters

  • T extends object
  • K
  • I extends string

Type declaration

  • contracts: readonly CreateEvent<T, K, I>[]

    Contracts matching the query.

  • loading: boolean

    Indicator for whether the query is executing.

T The contract template type of the query.

K The contract key type of the query.

I The template id type.