Verify factual claims about current DeFi market conditions.
Supports two modes:
- Single claim: provide claim_type, value, operator (and protocol/chain/asset
as needed). Returns one verification result.
- Batch mode: provide a JSON-encoded array in 'claims'. Each element has
the same fields (claim_type, value, operator, protocol, chain, asset).
Returns all results in one response. If 'claims' is provided, single-claim
parameters are ignored.
Args:
api_key: Your PreFlyte API key (required).
claim_type: What you're checking. One of:
"supply_rate" — current supply APY (%)
"borrow_rate" — current borrow APY (%)
"price" — current token price (USD)
"gas" — current base fee (gwei)
"utilization" — current pool utilization (%)
value: The numeric value you believe to be true.
operator: Comparison operator. One of:
"above" — actual must be >= value
"below" — actual must be <= value
"around" — actual must be within 10% of value
protocol: Required for supply_rate, borrow_rate, utilization.
Use "aave-v3" or "compound-v3".
chain: Chain name — "ethereum" or "arbitrum". Default "ethereum".
asset: Required for supply_rate, borrow_rate, price, utilization.
Use token symbol like "USDC", "WETH", etc.
claims: JSON-encoded array of claim objects for batch verification.
Each object contains: claim_type, value, operator, and optionally
protocol, chain, asset. When provided, single-claim params are ignored.
Returns:
Single mode: Dictionary with status (TRUE/FALSE), actual_value,
claimed_value, delta, delta_pct, data_timestamp, and summary.
Batch mode: Dictionary with 'mode', 'results' array, 'summary' counts,
and 'verified_at' timestamp.
Examples:
Single:
verify_claim(api_key="...", claim_type="supply_rate", value=5.0,
operator="above", protocol="aave-v3", asset="USDC")
Batch:
verify_claim(api_key="...", claims='[{"claim_type": "supply_rate", ...}, ...]')