1

how to set as the --key-type and --index parameters when i use the http api "v1/chain/get_table_rows" as cleos commend "cleos get table eosio eosio namebids --key-type i64 --index 2".

the "--key-type" and "--index" is disable in "v1/chain/get_table_rows" ,what should i do?

links: https://github.com/EOSIO/eos/pull/4053 https://developers.eos.io/eosio-nodeos/reference#get_table_rows

thanks.

1 Answer 1

2

i have solved this question.

I execute the command ”./cleos -u "http://dev.cryptolions.io:38888" get table xun xun cates --key-type i64 --index 2

then i get the socket data packets use wireshark.

i found this :

enter image description here

cleos comment: --key-type --index

rpc comment: key_type index_position

1
  • 1
    A tip, use cleos --print-request to get the request detailes
    – Jimmy Guo
    Jul 27, 2018 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.