Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1021 Bytes

lesson_8.md

File metadata and controls

27 lines (19 loc) · 1021 Bytes

Goal:

  • Learners should understand how to make a query through API
  • Learners should be able to make a query through API

Lesson 8: Making a query through API

Browse 'http://localhost:1310' to learn more about query services

Guidelines

Query helps you to query information on chain or for debugging

  1. start a baby node bash scripts/run-node.sh --install
  2. make a transaction through CLI
  • babyd tx bank send test $(babyd keys show test1 -a --keyring-backend test) 500000ubaby --fees 30ubaby -y --node tcp://localhost:2281
  1. query balances of receiver through API

Help videos

https://youtu.be/FQnYBEc5pwE

Homework

  1. Query all validators and get the first operator address using jq

result_1

  1. Query number of existing accounts (hint: use jq to get length)

result_2