Function pollForQueries

  • Poll for oracle queries

    Returns

    Callback to stop polling function

    Parameters

    • oracleId: `ok_${string}`

      Oracle public key

    • onQuery: ((queries: { fee: bigint; id: string; oracleId: string; query: string; response: string; responseTtl: { type: TTLType; value: string; }; senderId: string; senderNonce: string; ttl: number }[]) => void)

      OnQuery callback

        • (queries: { fee: bigint; id: string; oracleId: string; query: string; response: string; responseTtl: { type: TTLType; value: string; }; senderId: string; senderNonce: string; ttl: number }[]): void
        • Parameters

          • queries: { fee: bigint; id: string; oracleId: string; query: string; response: string; responseTtl: { type: TTLType; value: string; }; senderId: string; senderNonce: string; ttl: number }[]

          Returns void

    • options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }

      Options object

    Returns (() => void)

      • (): void
      • Returns void

Generated using TypeDoc