Queries
Last updated
Using swisstronikcli you can send various queries to the node. On this page we will consider the most frequently used queries.
This command accepts only the transaction hash of Cosmos transactions, it cannot be used to retrieve transaction data by hash from the EVM block explorer, mobile apps or web extension.
To query transaction by its hash, use the following command:
swisstronikcli query tx <tx_hash>To query information about the node we are connected to, use the following command:
swisstronikcli statusTo query the account balance, use the following command:
swisstronikcli query bank balances <bech32_address>All swisstronikcli commands accept only bech32 addresses (with theswtr1 prefix). To convert an Ethereum address to bech32 address use swisstronikd debug convert-address command. Instructions on how to use it can be found here.
Last updated