Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Where get location id? (help needed) #5128

Closed
plazav opened this issue Aug 9, 2018 · 3 comments
Closed

Where get location id? (help needed) #5128

plazav opened this issue Aug 9, 2018 · 3 comments

Comments

@plazav
Copy link

plazav commented Aug 9, 2018

To specify producer location there are some id numbers used.
The question is where to get those id's?
Have tried to use https://api1.eosdublin.io/v1/chain/get_table_rows with body
{"json":true,"code":"eosio","scope":"eosio","table":"locations","table_key":"","limit":500}
but table with this name is missing. May be there is some way to see all tables list?

@wuyahuang
Copy link
Contributor

try cleos get table eosio eosio producers

@jgiszczak
Copy link
Contributor

You may simply use cleos --print-response system listproducers, which gives you the detailed producer information as JSON, immediately followed by the human readable form. Note that the full registered producers list is long enough that the response is automatically limited in length to 50 entries at a time.

@plazav
Copy link
Author

plazav commented Aug 13, 2018

@jgiszczak, @wuyahuang Thank you for answers, but not any of those queries could give me complete list of locations id's and locations names.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants