query (q)
Using the query command of the daemon, you can search all the module data listed on the chain.
query authz
Querying commands for the authz module.
grants
grantsQuery authorization grants for a granter-grantee pair. If msg-type-url is set, it will select grants only for that msg type.
Usage
firmachaind query authz grants <granter-addr> <grantee-addr>Example
firmachaind query authz grants firma1thh.. firma1nss.. /cosmos.bank.v1beta1.MsgSendquery bank
Querying commands for the bank module.
balances
balancesQuery the total balance of an account or of a specific denomination.
Usage
firmachaind query bank balances <address>Example
firmachaind query bank balances firma1e..y5a43qcdenom-metadata
denom-metadataQuery the client metadata for all the registered coin denominations
Usage
firmachaind query bank denom-metadatatotal
totalQuery total supply of coins that are held by accounts in the chain.
Usage
firmachaind query bank totalquery block
Get verified data for a the block at given height.
Usage
firmachaind query block <height>Example
firmachaind query block 100query contract
Querying commands for the contract module.
is-contract-owner
is-contract-ownerCheck Contract Owner by ownerAddress and fileHash
Usage
firmachaind query contract is-contract-owner <fileHash> <ownerAddress>Example
firmachaind query contract is-contract-owner "fileHash" firma1e..y5a43qclist-contract-file
list-contract-filelist all contractFile
Usage
firmachaind query contract list-contract-filelist-contract-log
list-contract-loglist all contractLog
Usage
firmachaind q contract list-contract-logshow-contract-file
show-contract-fileshows a contractFile by index.
Usage
firmachaind query contract show-contract-file <index>Example
firmachaind query contract show-contract-file 1show-contract-list-from-hash
show-contract-list-from-hashGet Contract from contract hash
Usage
firmachaind query contract show-contract-list-from-hash <contractHash>Example
firmachaind query contract show-contract-list-from-hash "contractHash"show-contract-log
show-contract-logshows a contractLog
Usage
firmachaind query contract show-contract-log <id>Example
firmachaind query contract show-contract-log 1query distribution
Querying commands for the distribution module.
commission
commissionQuery validator commission rewards from delegators to that validator.
Usage
firmachaind query distribution commission <valoper_address>Example
firmachaind query distribution commission firmavaloper..y2w72qkcommunity-pool
community-poolQuery all coins in the community pool which is under Governance control.
Usage
firmachaind q distribution community-poolparams
paramsQuery distribution params.
Usage
firmachaind q distribution paramsrewards
rewardsQuery all rewards earned by a delegator, optionally restrict to rewards from a single validator.
Usage
firmachaind query distribution rewards <delegate-address>Example
firmachaind query distribution rewards firma1e..y5a43qcBy putting in the command provided in the above example, you can check the total amount of your reward. Furthermore, if you wish to check the amount of reward accrued from a particular Validator, you can add the validator-address at the back of the delegate-address as provided in the example below.
Usage
firmachaind query distribution rewards <delegate-address> <validator-address>Example
firmachaind query distribution rewards firma1e..y5a43qc firmavaloper..y2w72qk..2qkslashes
slashesQuery all slashes of a validator for a given block range.
Usage
firmachaind query distribution slashes <validator-address> <start-height> <end-height>Example
firmachaind query distribution slashes firmavaloper1epg..2qk 0 100query feegrant
Querying commands for the feegrant module.
grant
grantQuery details for a grant.
Usage
firmachaind query feegrant grant <granter> <grantee>Example
firmachaind query feegrant grant firma1e..y5a43qc firma1n..65ux9ugrants-by-grantee
grants-by-granteeQueries all the grants for a grantee address.
Usage
firmachaind query feegrant grants-by-grantee <grantee>Example
firmachaind query feegrant grants-by-grantee firma1e..y5a43qcgrants-by-granter
grants-by-granterQueries all the grants issued for a granter address.
Usage
firmachaind query feegrant grants-by-granter <granter>Example
firmachaind query feegrant grants-by-granter firma1n..65ux9uquery gov
Querying commands for the governance module
deposit
depositQuery details for a single proposal deposit on a proposal by its identifier.
Usage
firmachaind query gov deposit <proposal-id> <depositer-address>Example
firmachaind query gov deposit 1 firma1e..y5a43qcdeposits
depositsQuery details for all deposits on a proposal. You can find the proposal-id by running "firmachaind query gov proposals".
Usage
firmachaind query gov deposits <proposal-id>Example
firmachaind query gov deposits 1param
paramQuery the all the parameters for the governance process.
Usage
firmachaind query gov param <param-type>Example
firmachaind query gov param voting
firmachaind query gov param tallying
firmachaind query gov param depositparams
paramsQuery the all the parameters for all governance process.
Usage
firmachaind query gov paramsproposal
proposalQuery details for a proposal. You can find the proposal-id by running "firmachaind query gov proposals".
Usage
firmachaind query gov proposal <proposal-id>Example
firmachaind query gov proposal 1proposals
proposalsQuery for a all paginated proposals that match optional filters:
Usage
firmachaind query gov proposalsExample
firmachaind query gov proposals --depositor firma1e..y5a43qc
firmachaind query gov proposals --voter firma1e..y5a43qc
firmachaind query gov proposals --status (DepositPeriod|VotingPeriod|Passed|Rejected)
firmachaind query gov proposals --page=2 --limit=100proposer
proposerQuery which address proposed a proposal with a given ID.
Usage
firmachaind query gov proposer <proposal-id>Example
firmachaind query gov proposer 1tally
tallyQuery tally of votes on a proposal. You can find the proposal-id by running "firmachaind query gov proposals".
Usage
firmachaind query gov tally <proposal-id>vote
voteQuery details for a single vote on a proposal given its identifier.
Usage
firmachaind query gov vote <proposal-id> <voter-addr>Example
firmachaind query gov vote 1 firma1e..y5a43qcvotes
votesQuery vote details for a single proposal by its identifier.
Usage
firmachaind query gov votes <proposal-id> <flag?>Example
firmachaind query gov votes 1
firmachaind query gov votes 1 --page=2 --limit=100ibc-transfer
IBC fungible token transfer query subcommands
denom-hash
denom-hashQuery the denom hash info from a given denom trace.
Usage
firmachaind query ibc-transfer denom-hash <trace>Example
firmachaind query ibc-transfer denom-hash transfer/channel-0/(denom)denom-trace
denom-traceQuery the denom trace info from a given trace hash or ibc denom
Usage
firmachaind query ibc-transfer denom-trace <hash/denom>Example
firmachaind query ibc-transfer denom-trace 27A6394C3F9FF9C9DCF5DFFADF9BB5FE9A37C7E92B006199894CF1824DF9AC7Cdenom-traces
denom-tracesQuery the trace info for all token denominations
Usage
firmachaind query ibc-transfer denom-tracesescrow-address
escrow-addressGet the escrow address for a channel.
Usage
firmachaind query ibc-transfer escrow-address <port> <channel-id>Example
firmachaind query ibc-transfer escrow-address transfer channel-1params
paramsQuery the current ibc-transfer parameters
Usage
firmachaind query ibc-transfer paramsmint
Querying commands for the minting module.
annual-provisions
annual-provisionsQuery the current minting annual provisions value.
Usage
firmachaind query mint annual-provisionsinflation
inflationQuery the current minting inflation value
Usage
firmachaind query mint inflationparams
paramsQuery the current minting parameters
Usage
firmachaind query mint paramsnft
Querying commands for the nft module
balance-of
balance-ofQuery balanceOf
Usage
firmachaind query nft balance-of <ownerAddress>list-nft-id-of-owner
list-nft-id-of-ownerQuery Nft ID List Of Owner
Usage
firmachaind query nft list-nft-id-of-owner <ownerAddress>Example
firmachaind query nft list-nft-id-of-owner firma1e..y5a43qclist-nft-item
list-nft-itemlist all nftItem
Usage
firmachaind query nft list-nft-itemshow-nft-item
show-nft-itemshows a nftItem
Usage
firmachaind query nft show-nft-item <id>Example
firmachaind query nft show-nft-item 0params
Querying commands for the params module
subspace
subspaceUsage
firmachaind query params subspace <subspace> <key>Example
firmachaind query params subspace staking MaxValidatorsslashing
Querying commands for the slashing module
params
paramsQuery genesis parameters for the slashing module.
Usage
firmachaind query slashing paramssigning
signingUse a validators' consensus public key to find the signing-info for that validator.
Usage
firmachaind query slashing signing-info <validator-conspub>Example
firmachaind query slashing signing-info '{"@type":"/cosmos.crypto.ed25519.PubKey","key":"OauFcTKbN5Lx3fJL689cikXBqe+hcp6Y+x0rYUdR9Jk="}'signing-infos
signing-infossigning infos of validators
Usage
firmachaind query slashing signing-infosstaking
Querying commands for the staking module
delegation
delegationQuery delegations for an individual delegator on an individual validator.
Usage
firmachaind query staking delegation <delegator-addr> <validator-addr>Example
firmachaind query staking delegation firma1e..y5a43qc firmavaloper..y2w72qkdelegations
delegationsQuery delegations for an individual delegator on all validators.
Usage
firmachaind query staking delegationsExample
firmachaind query staking delegations firma1e..y5a43qcdelegations-to
delegations-toQuery delegations on an individual validator.
Usage
firmachaind query staking delegations-to <validator-addr>Example
firmachaind query staking delegations-to firmavaloper..y2w72qkhistorical-info
historical-infoQuery historical info at given height.
Usage
firmachaind query staking historical-info <height>Example
firmachaind query staking historical-info 100params
paramsQuery values set as staking parameters.
Usage
firmachaind query staking paramspool
poolQuery values for amounts stored in the staking pool.
Usage
firmachaind query staking poolredelegation
redelegationQuery a redelegation record for an individual delegator between a source and destination validator.
Usage
firmachaind query staking redelegation <delegator-addr> <src-validator-addr> <dst-validator-addr>Example
firmachaind query staking redelegation firma1e..y5a43qc firmavaloper..y2w72qk firmavaloper..xy8ha9jredelegations
redelegationsQuery all redelegation records for an individual delegator.
Usage
firmachaind query staking redelegation <delegator-addr>Example
firmachaind query staking redelegation firma1e..y5a43qcredelegations-from
redelegations-fromQuery delegations that are redelegating from a validator.
Usage
firmachaind query staking redelegations-from <validator-addr>Example
firmachaind query staking redelegations-from firmavaloper..y2w72qkunbonding-delegation
unbonding-delegationQuery unbonding delegations for an individual delegator on an individual validator.
Usage
firmachaind query staking unbonding-delegation <delegator-addr> <validator-addr>Example
firmachaind query staking unbonding-delegation firma1e..y5a43qc firmavaloper..y2w72qkunbonding-delegations
unbonding-delegationsQuery unbonding delegations for an individual delegator.
Usage
firmachaind query staking unbonding-delegations <delegator-addr>Example
firmachaind query staking unbonding-delegations firma1e..y5a43qcunbonding-delegations-from
unbonding-delegations-fromQuery delegations that are unbonding 'from' a validator.
Usage
firmachaind query staking unbonding-delegations-from <validator-addr>Example
firmachaind query staking unbonding-delegations-from firmavaloper..y2w72qkvalidator
validatorQuery details about an individual validator.
Usage
firmachaind query staking validator <validator-addr>Example
firmachaind query staking validator firmavaloper..y2w72qkvalidators
validatorsQuery details about all validators on a network.
Usage
firmachaind query staking validatorstx
Search transactions using the transaction hash, account sequence and signature information.
Usage (for hash)
firmachaind query tx <hash>Usage (for account sequence)
firmachaind query tx --type=acc_seq <addr>/<sequence>Usage (for signature)
firmachaind query tx --type=signature <sig1_base64>,<sig2_base64...>txs
Search for transactions that match the exact given events where results are paginated. Each event takes the form of '{eventType}.{eventAttribute}={value}'. Please refer to each module's documentation for the full set of events to query for. Each module documents its respective events under 'xx_events.md'.
Usage
firmachaind query txs --events <events>Example
'message.sender=firma1...&message.action=withdraw_delegator_reward' --page 1 --limit 30wasm
Querying commands for the wasm module
build-address
build-addressbuild contract address
Usage
firmachaind query wasm build-address <code-hash> <creator-address> <salt-hex-encoded> <json_encoded_init_args (required when set as fixed)>Example
firmachaind query wasm build-address code
codeDownloads wasm bytecode for given code id
Usage
firmachaind query wasm code <code_id> <output filename>Example
firmachaind query wasm code 1 "codeFile"code-info
code-infoPrints out metadata of a code id
Usage
firmachaind query wasm code-info <code_id>Example
firmachaind query wasm code-info 1contract
contractPrints out metadata of a contract given its address
# usage
firmachaind query wasm contract <bech32_address>contract-history
contract-historyPrints out the code history for a contract given its address.
Usage
firmachaind query wasm contract-history <bech32_address>Example
firmachaind query wasm contract-history ""contract-state all
contract-state allPrints out all internal state of a contract given its address
Usage
firmachaind query wasm contract-state all <bech32_address>Example
firmachaind query wasm contract-state all ""contract-state raw
contract-state rawPrints out internal state for of a contract given its address
Usage
firmachaind query wasm contract-state raw <bech32_address>Example
firmachaind query wasm contract-state raw ""contract-state smart
contract-state smartCalls contract with given address with query data and prints the returned result
Usage
firmachaind query wasm contract-state smart <bech32_address>Example
firmachaind query wasm contract-state smart <bech32_address>libwasmvm-version
libwasmvm-versionGet libwasmvm version
Usage
firmachaind query wasm libwasmvm-versionlist-code
list-codeList all wasm bytecode on the chain
Usage
firmachaind query wasm list-codelist-contract-by-code
list-contract-by-codeList wasm all bytecode on the chain for given code id
Usage
firmachaind query wasm list-contract-by-code <code-id>Example
firmachaind query wasm list-contract-by-code 1params
paramsQuery the current wasm parameters
Usage
firmachaind query wasm paramspinned
pinnedList all pinned code ids
Usage
firmachaind query wasm pinnedLast updated