πŸ“šOverview

This directory contains comprehensive developer documentation for the BitBadges blockchain's x/badges module.

This section is a knowledge dump for how badges operate behind the scenes. For most use cases, you will not care about any of this as it will be handled for you via the site. And if you are self-implementing a badge-gated service, you can just fetch balances and metadata from the API without worrying about the underlying details.

const res = await BitBadgesApi.getBalanceByAddress(collectionId, address, {
    ...options,
});
console.log(res);

const res = await BitBadgesApi.getBadgeMetadata(1, 5);

Table of Contents

  1. Introduction - Overview and key concepts

  2. Concepts - Core data structures and business logic

  3. State - State management and storage patterns

  4. Messages - Transaction messages and handlers

  5. Queries - Query types and endpoints

  6. Events - Event emissions and tracking

  7. Examples - Common usage patterns and building blocks

Tokens vs Badges

We use the terms tokens and badges interchangeably. For example, "badgeIds" refers to token IDs. In the past, our niche was primarily earned badges, and we are slowly trying to rollout rebrands to full tokens. However, the core interface is still named "badges" behind the scenes.

Message Reference

Collection Management

Badge Transfers

User Approvals

Address Lists & Dynamic Stores

Query Reference

Core Queries

Documentation Style

This documentation follows the Cosmos SDK module documentation standards and is designed for developers building on or integrating with the BitBadges blockchain.

Last updated