Parameters
-
oracleId: `ok_${string}`
-
onQuery: ((query) => void)
-
- (query): void
-
Parameters
-
query: {
fee: bigint;
id: string;
oracleId: string;
query: string;
response: string;
responseTtl: { type: TTLType; value: string; };
senderId: string;
senderNonce: string;
ttl: number;
}
-
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;
}
Returns (() => void)
Callback to stop polling function
Poll for oracle queries