API queries now return a single numeric value
Jul 8, 2022
Shipped1 commit+10−6
- API query response format changed — API queries now return **one encoded numeric value** instead of a list of matching fields. This update also clarifies that this query type is meant for reporting numerical values to Tellor oracles on testnet only.
API
- API query responses now use a single `ufixed256x18` value with 18 decimals of precision.
- The second query parameter was renamed from `key_str` to `parseStr` to better reflect how the numeric value is found in the response.
Breaking Changes
- If you integrate API queries, update your handling to expect one encoded numeric value instead of a list of matches.
Documentation
- Updated the API query documentation to describe the new numeric response format and testnet-only usage.
1 commits+10-6