0

How you read the data from your contracts, just by using actions? Or there is another way?

Thanks!

0

2 Answers 2

1

There's RPC API: https://developers.eos.io/eosio-nodeos/reference. To read the data stored on the blockchain by contracts, one can use get_table_rows.

Also, you can browse contract tables in some block explorers, like https://bloks.io.

In case you are asking for something else, please clarify the question.

3
  • By using the get table, it seems best as you said. Could you share how I could get particular row and not the whole table and filter it in the js later?
    – Kristian
    Commented Jan 7, 2019 at 13:13
  • 1
    @Kristian There's example tabs on the developers.eos.io site, using cURL, Node, Ruby, JavaScript, and Python. Then just fill in the fields below, and you get the code in the window. Finally, change http://127.0.0.1:8888 to https://api.eosnewyork.io or some other API endpoint.
    – Gassa
    Commented Jan 7, 2019 at 13:19
  • Didn't know about those examples. It worked nice, thanks!
    – Kristian
    Commented Jan 7, 2019 at 13:27
0

Doing it like that works for now: cleos -u https://jungle2.cryptolions.io get table contractName contractName tableName --index 1 --key-type i64 -L 1234123423451235 -U 1234123423451235

this way I am searching for the given id - 1234123423451235

Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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