Fetch FIO Chain State Data
Overview
Even though, there are multiple specific getters for fetching information from the FIO Chain, there is also a more flexible option to query any table using /get_table_rows
Query Parameters
The core parameters are: code
which denotes the specific FIO Chain contract, scope
which will typically be same as code
and table
which denotes the specific table you want to query.
To constrain the response you may also pass in:
lower_bound
andupper_bound
denoting the search query start and stopindex_position
denoting index to searchkey_type
denoting key type of indexlimit
denoting number of results to return
Paging
If you would like to page through a large dataset (beyond what can be returned in a single call), you can:
- Read the primary index on the last record returned
- Pass that value into
lower_bound
on a subsequent call - You will now receive items starting with that index
Examples
🔎
Fetch FIO Handle from FIO Chain State Table
Open Recipe
🔎
Fetch FIO Domain from FIO Chain State Table
Open Recipe
Updated 25 days ago