Skip to main content

query

Callable

  • query<TInstruction, TDescriptor>(api: TypedApi<TDescriptor>, instruction: TInstruction, options?: { signal?: AbortSignal }): InferInstructionResponse<TInstruction>

  • Type parameters

    • TInstruction: QueryInstruction<TDescriptor>
    • TDescriptor: ChainDefinition = ChainDefinition

    Parameters

    • api: TypedApi<TDescriptor>
    • instruction: TInstruction
    • optionaloptions: { signal?: AbortSignal }
      • optionalsignal: AbortSignal

    Returns InferInstructionResponse<TInstruction>