Built-In Plugins

This page documents the schemas for all core plugins and pre-built plugin-based plugins.

Core Plugins

Core plugins are built into BitBadges and handled in-memory. They require no external HTTP calls.

codes β€” Claim Codes

One-time use codes that users must present to claim.

User Input:

{ code: string }

Public Params:

{
  numCodes: number;           // Total number of codes
  hideCurrentState?: boolean; // Hide usage state from users
}

Private Params:

{
  codes: string[];   // The actual codes
  seedCode: string;  // Seed used to generate codes
}

Public State:


password β€” Password Gate

Gate claims behind a shared secret.

User Input:

Private Params:

No public params or state.


numUses β€” Max Claims Limit

Limit the total number of successful claims. This plugin is always required and cannot be made optional via success logic.

Public Params:

Public State:

No user input.


transferTimes β€” Time Windows

Restrict when claims can be completed.

Public Params:

No user input, state, or private params.


initiatedBy β€” Sign-In Requirement

Requires the user to be signed in to BitBadges. This verifies the claiming address is authenticated.

No configurable params β€” configuration is handled in the claim builder UI.


whitelist β€” Address List Gate

Gate claims to a specific set of addresses. Supports both static address lists and dynamic stores.

Public Params:

Private Params:

Private State:


halt β€” Pause Claims

Temporarily halt all claim attempts. No params β€” just add/remove from the plugin list.


anonymous β€” Anonymous Claiming

Allow claims without requiring an address. No params.


Pre-Built Custom Plugins

These are pre-built plugins available by their plugin ID. They function as custom plugins (HTTP-based) but are maintained by BitBadges.

To look up their full schema (user inputs, public/private params), use the API:

Plugin ID
Description

must-own-badges

Require ownership of specific badges/tokens. Configure which collection + token IDs.

min-badge

Require a minimum token/badge balance.

url-clicker

Require the user to visit a specific URL.

custom-instructions

Display custom instructions to the user (informational only).

satisfies-claim

Require the user to have completed another claim first.

username-set

Require the user to have set a BitBadges username.

Looking Up Plugin Schemas

You can look up any plugin's configuration schema via the API:

Plugin Version Config

Each plugin version contains the full configuration:

Schema Field Types

Each schema field (JsonBodyInputSchema) describes one input:

Last updated