-
Notifications
You must be signed in to change notification settings - Fork 3.7k
chain_api_plugin get_table_rows table_key is not used #3695
Comments
Hi, I've created a pull request #4053 to support "get table" with any secondary index without the need of modifying abi file. Please would you review this? |
This is badly needed -- I am having to do workarounds to convert strings into uint64_t's on any table that needs to be referenced by the API, which uses the get table command. |
you can put any account name(string) as "lower bound" of i64, and conversion is implicitly performed. |
Javascript has a 58-bit limit on integers, so you have to do Mod 9007199254740991, which can lead to collisions (this is when using eosjs). Overall, it would be nice to be able to |
brief description: Index position logic: first index will always be primary index(type i64), then the 2nd to the N indexes correspond to the order of
1st index: index of get table command new parameters:
Command example: Get all the bids sorted by highbid:
Get all the producers which have votes equal to zero:
|
Resolved by #4053 |
Currently, the
table_key
passed toget_table_rows
ofchain_api_plugin
is not used. As such, it is not possible to specify the table key used for retrieval and only the primary key can be used to get table rows.The text was updated successfully, but these errors were encountered: