Initia CLI
Querying Data
The initiad CLI offers a range of commands for querying data from Initia L1.
This guide walks you through using these commands to retrieve blockchain data.
initiad query
command enables you to query data from the blockchain. Each module provides a client-facing query interface.
The general syntax for querying data is:
Querying Account Balance
After receiving tokens to your address, you can view your account’s balance like:
Querying Blocks
You can query a single block by its height or hash using the following command:
Querying Transactions
You can query a single transaction by its hash using the following command:
Querying Params
You can query the module parameters using the following command:
Querying Oracle
If node has oracle module enabled, you can query the currency pairs and price using the following commands:
Was this page helpful?