Skip to content

Task guides for BitBadges. Start with the AI builder, then follow CLI, TypeScript SDK, and JSON examples for direct integration.

Each guide takes one job (create a token, distribute it, gate access, sign users in) and connects the creation flow to working commands. Concepts are not re-explained here; each step links to the canonical page in the Token Standard tab.

For the pitch behind each build (which two or three approval fields turn the standard into a stablecoin, a subscription, or an agent vault), read Use Cases first.

Start with a Prompt

Set up your AI and describe the result you want. The builder assembles and checks the transaction; you review and sign through a browser link.

text
Create a 100-piece NFT collection called Demo NFTs where only I can mint,
validate and simulate it, and give me the review link.

Follow Your First Collection for a complete prompt-to-collection walkthrough. To embed this creation flow in application code, see Programmatic Agent.

Follow the Implementation

The CLI, SDK, and JSON examples below show how each build works and support repeatable integrations. For these examples:

  • Install bb using the Quickstart.
  • Examples target mainnet. Replace example addresses, collection IDs, metadata URIs, and dates with your own values before signing. The signer needs BADGE for fees and any coins or tokens the transaction spends. See Testnet for availability.
  • Review transaction JSON with bb check and bb preview, then sign with your wallet. See Deploy or the SDK signing client.

Guides

TaskSurfacesGuide
Create an NFT or fungible collectionbb CLI, SDK, JSONCreate a Collection
Mint tokens and hand them out (creator mint, public mint, paid mint, escrow payouts)bb CLI, SDK, JSONMint and Distribute
Decide who can transfer, burn, or force-move tokensSDK, JSONSet Transferability
Freeze supply, approvals, metadata, or the whole collectionJSON, SDKLock Permissions
Distribute with codes, allowlists, socials, and other claim pluginsBitBadges site, BitBadges APIDistribute with Claims
Write your own claim pluginBitBadges APIBuild a Claim Plugin
Gate an API route or page by token ownership (BB-402)BitBadges API, SDKGate access
Add "Sign in with BitBadges" to an appBitBadges APISign In Users
Make tokens spendable as an x/bank coin and over IBCbb CLI, SDK, JSONWrap to an IBC Denom
Create pools, swap, and add liquiditybb CLI, BitBadges APITrade on the DEX
Sell recurring subscriptions, prepaid credits, and expiring tokensbb CLI, JSONSubscriptions and Time-Based Tokens
Issue a 1:1 backed token or an AI agent vaultbb CLI, SDK, JSONSmart Tokens and Vaults

Reading Order

For a new token, read the first four guides in order. They build one collection: create it, add mint approvals, set post-mint transferability, then lock what must never change. The remaining guides stand alone.

Edit this page on GitHub