byte_query_fact
Query a fact-oracle publisher for verified answers with citations. Posts your question on-chain and returns the answer plus reference URLs.
Instructions
Query a PayPerByte fact-oracle publisher for a verified factual answer with citations. Posts the question to a registered fact-oracle publisher (topic='fact-oracle'), waits for the on-chain BroadcastStreamed response, and returns the answer plus structured citation URLs. Use for grounding LLM outputs in real-time verified information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | The factual question to ask (e.g. 'What was last night's Lakers vs Warriors score?'). Should be specific and verifiable. | |
| subscriber_address | Yes | Your wallet address. You MUST be subscribed to the chosen publisher (with sufficient USDC escrow) or the publisher's on-chain broadcast will be skipped. | |
| max_byte_cost | No | Max response payload bytes you're willing to pay for (defaults to 2000, ≈$1 at $0.0005/byte). Publisher refuses if can't fit answer. | |
| topic_filter | No | Optional topic filter (e.g. 'fact-oracle' default; future: 'sports', 'finance'). | |
| min_publisher_pqs | No | Minimum PQS to consider (BPS scale, 0-10000). 9000 = Elite-only, 7500 = Premium+. | |
| max_response_latency_ms | No | Max time to wait for the publisher's broadcast (default 30000 ms). Local-LLM publishers (Ollama + Searxng + 3-sample NLI gate) take ~30-60s; Anthropic + passthrough takes ~10-20s. Hard ceiling 180s. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | No | Publisher's grounded answer to the question | |
| citations | No | URLs/sources cited by the publisher in support of the answer | |
| publisher_address | No | Publisher address that fulfilled the query | |
| publisher_pqs | No | Publisher quality score (PQS) at fulfillment | |
| confidence | No | Publisher-reported confidence (0-1) | |
| request_id | No | Request id binding the query to this answer | |
| payload_hash | No | keccak256 of the response payload | |
| response_size_bytes | No | Size of the response payload (bytes) | |
| publisher_tx_or_status | No | Delivery status or settlement reference | |
| elapsed_ms | No | End-to-end time to obtain the answer (ms) | |
| error | No | Error message if the query failed (no eligible publisher, broadcast timeout, etc.) |