Queries
Every x/tokenization gRPC query with its LCD REST path and bb CLI command. One page per query.
The x/tokenization module exposes 16 read-only queries. Each is reachable three ways: the bb query tokenization CLI, the LCD REST endpoint under https://lcd.bitbadges.io, and gRPC. Every query page shows the CLI command, the REST path, and the response shape.
For indexed, paginated, or historical data (activity, metadata, claims, search) use the BitBadges API. Chain queries return current state only.
Collections and Balances
| Query | CLI | What it returns |
|---|---|---|
| GetCollection | collection [id] | The full TokenCollection record. |
| GetCollectionStats | collection-stats [id] | Holder count and circulating supply. |
| GetBalance | balance [id] [address] | An address's UserBalanceStore: balances, approvals, flags, permissions. |
| GetBalanceForToken | balance-for-token [id] [address] [token-id] [time] | The amount of one token ID owned at one time. |
| GetWrappableBalances | wrappable-balances [denom] [address] | Maximum amount an address can wrap into a denom. |
Address Lists and Dynamic Stores
| Query | CLI | What it returns |
|---|---|---|
| GetAddressList | address-list [id] | An address list, including reserved IDs. |
| GetDynamicStore | dynamic-store [store-id] | Store config: default, kill switch, metadata. |
| GetDynamicStoreValue | dynamic-store-value [store-id] [address] | The boolean stored for one address. |
Approval Trackers and Challenges
| Query | CLI | What it returns |
|---|---|---|
| GetApprovalTracker | approvals-trackers ... | Cumulative transfers and amounts for an approval tracker. |
| GetChallengeTracker | num-used-for-merkle-challenge ... | Times a Merkle leaf has been used. |
| GetETHSignatureTracker | num-used-for-eth-signature-challenge ... | Times an ETH signature has been used. |
| GetVote | vote ... | One voter's vote on a voting challenge. |
| GetVotes | votes ... | Every vote on a voting challenge. |
Protocol
| Query | CLI | What it returns |
|---|---|---|
| Params | params | Module parameters. |
| IsAddressReservedProtocol | is-address-reserved-protocol [address] | Whether an address is reserved. |
| GetAllReservedProtocolAddresses | all-reserved-protocol-addresses | Every reserved protocol address. |
Conventions
approvalLeveliscollection,incoming, oroutgoing.approverAddressis empty forcollection. In a REST path, an empty segment produces//, which the LCD accepts.- Numbers are strings. Uint values up to
18446744073709551615are common for open-ended ranges. - Add
--node https://rpc.bitbadges.io:443(or your node) to CLI commands when running off-box.