This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
add next_key field to results of get_table_rows to better support pagination #7313
Labels
documentation
Requires attention from documentation team. e.g. documentation is expected to be generated.
enhancement
Other RPC calls in chain API that allow pagination have a
more
field that can support the same type as thelower_bound
andupper_bound
fields of the request. This enables nodeos to include the key that would need to be passed into thelower_bound
on a subsequent call to continue retrieving the remaining results from the initial request (ignoring any state changes since that time).However, the
get_table_rows
RPC was implemented using the old pattern of providing a booleanmore
which does not convey enough information to allow a client to generally handle pagination.So a new
string
fieldnext_key
should be added toget_table_rows_result
which is kept as the empty string whenmore == false
, otherwise the string will be set to the key of the next row that wasn't returned in the response in the same format that was expected for thelower_bound
andupper_bound
fields of the request.The text was updated successfully, but these errors were encountered: