Type alias ViewFn<IDL, I>

ViewFn<IDL, I>: InstructionContextFn<IDL, I, Promise<any>>

ViewFn is a single method generated from an IDL. It simulates a method against a cluster configured by the provider, and then parses the events and extracts return data from the raw logs emitted during the simulation.

Type Parameters

  • IDL extends Idl = Idl
  • I extends AllInstructions<IDL> = AllInstructions<IDL>