# Configure token gating

# Understanding Token Gating Configuration

# Basic Structure

The token gating system operates on two key components:

  1. Rules: The primary framework that contains conditions
  2. Conditions: Specific requirements within each rule

# How Rules and Conditions Work

Rule Processing

Think of each rule as a checklist where every item must be completed. Within a single rule:

  • All conditions must be met (AND logic)
  • If any condition fails, the entire rule fails

Example of a Rule:

Rule #1:

✓ Must hold Token A

✓ Must have minimum balance of 100

✓ Must be holder for 30 days

Result: All conditions must be met for access

# Multiple Rules for a Role

When a role has multiple rules assigned:

  • Only one rule needs to pass (OR logic)
  • Access is granted if any single rule's conditions are fully met

Example of Multiple Rules:

To gain access, fulfill either:

Rule #1: Hold Token A + Minimum 100 balance + 30 days holding

OR

Rule #2: Hold Token B + Minimum 500 balance

Best Practice:

When designing your token gating structure, consider:

  • Creating clear, distinct rules
  • Setting reasonable condition thresholds
  • Regular review of rule effectiveness

Creating Rules: Step-by-Step Guide

# Rule Creation Process

# Step 1: Initiate Rule Creation

  • Open your Discord server
  • Navigate to the membrane-admin channel
  • Type the command /rule

# Step 2: Configure Rule Parameters

You will need to provide two essential pieces of information:

  1. Role Assignment: Mention the Discord role (@Role) that this rule will govern
  2. Rule Identifier: Provide a descriptive name for your rule

Format Example:

# Step 3: Confirmation Process

After submitting the information:

  1. Membrane Bot will display a confirmation prompt
  2. Review the details to ensure accuracy
  3. Confirm the rule creation

Important Notes:

  • Choose clear, descriptive rule names for easy management
  • Verify the correct role is mentioned before confirming
  • Wait for the success message before proceeding with additional configuration

# Success Verification:

Upon successful creation, you will receive a confirmation message indicating that your rule has been established and is ready for condition configuration.

# Creating Conditions: Complete Guide

  • Use the /condition command in the membrane-admin channel
  • Select your target rule from the dropdown menu and follow instructions

Select condition type:

# Condition Types

Available Options:

  1. ETH_FT
  • Purpose: Verify ERC20 token ownership on Ethereum network
  • Requires: Token contract address
  1. ETH
  • Purpose: Verify Ethereum (ETH) coin balance
  • Checks: Native ETH holdings
  1. Solana
  • Purpose: Verify Solana (SOL) coin balance
  • Checks: Native SOL holdings
  1. SOL_FT
  • Purpose: Verify Solana SPL Token ownership
  • Requires: Token address

# Configuration Process

Token Address Requirement:

  • Required for: ETH_FT and SOL_FT conditions
  • Must provide: Valid contract address for the specific token

Balance Threshold:

  • Set minimum token amount required
  • Must be a positive numerical value
  • Consider decimal places for token precision

Review Process:

  1. Bot will display a summary of your configuration
  2. Verify all provided information:
  • Selected rule
  • Condition type
  • Token address (if applicable)
  • Minimum balance requirement
  1. Confirm to finalize condition creation