For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chain Commands

The chain binary (bitbadgeschaind, aliased as bb) provides key management, transaction signing, broadcasting, and on-chain queries. It is a standard Cosmos SDK binary with BitBadges-specific modules.

Every command on this page works with either binary name. We use bb throughout the rest of the docs; bitbadgeschaind is the canonical underlying name and is still accepted everywhere.

Key Management

BitBadges supports both Ethereum-compatible keys (eth_secp256k1) and standard Cosmos keys (secp256k1). The default keyring backend is test (unencrypted, for development). For production, use --keyring-backend os or --keyring-backend file.

# Create a new key
bb keys add mykey

# Recover from mnemonic
bb keys add mykey --recover

# List keys
bb keys list

# Show key details (add --bech val for validator address)
bb keys show mykey

# Export / Import
bb keys export mykey
bb keys import mykey keyfile.armor

# Delete a key
bb keys delete mykey

Submitting Transactions

All transaction commands follow this pattern:

Common Flags

Flag
Description
Default

--from

Key name or address to sign with

(required)

--chain-id

Cosmos chain ID

bitbadgeschain

--node

Node RPC endpoint

tcp://localhost:26657

--gas

Gas limit (auto to simulate)

200000

--gas-adjustment

Multiplier when using auto gas

1.0

--fees

Transaction fee (e.g. 10000ubadge)

--keyring-backend

Keyring backend (os, file, test)

test

--broadcast-mode

sync, async, or block

sync

--dry-run

Simulate without broadcasting

false

--generate-only

Generate unsigned tx JSON

false

Network Endpoints

Network
Cosmos Chain ID
Node LCD
EVM Chain ID

Mainnet

bitbadges-1

https://lcd.bitbadges.io

50024

Testnet

bitbadges-2

https://lcd-testnet.bitbadges.io

50025

Tokenization Module

The tokenization module handles collections, tokens, transfers, approvals, and dynamic stores. Most commands accept a JSON argument (inline or file path).

Collections

Transfers

Example transfer.json:

Approvals

Metadata and Configuration

Dynamic Stores

Address Lists

Query Commands

All query commands support --node to specify which node to query and --output json for JSON output.

JSON Input

Most transaction commands accept JSON either inline or from a file path:

Using files is recommended for complex transactions. The JSON schema for each message matches the protobuf definitions documented in the Messages section.

Last updated