Type Alias FetchResult<T, K, I>

FetchResult: { contract: CreateEvent<T, K, I> | null; loading: boolean }

The result of a fetch against the ledger.

Type Parameters

  • T extends object
  • K
  • I extends string

Type declaration

  • contract: CreateEvent<T, K, I> | null

    Contracts of the given contract template and key.

  • loading: boolean

    Indicator for whether the fetch is executing.

T The contract template type of the query.

K The contract key type of the query.

I The template id type.