Magen Logo
Production Ready • Solana Native

Magen x404

Magen x404

Magen x404

Advanced Solana wallet authentication with 7 modular verification features beyond simple token-gating. Production-ready package with full TypeScript support.

npm install magenx404
CL6frD87dGURF5LdxGD7yTdGmcmeFH3cCjEbf3JMmpG2

Key Features

Exclusion-Based AuthFilter out unwanted token holders
7 Modular FeaturesChoose exactly what you need
Production ReadyFull server implementation included
7
Auth Features
v1.0.1
NPM Package
3+
Wallets
30d
Token Expiry

The 7 Authentication Features

Choose the exact authentication mechanism that fits your needs. Modular, flexible, and production-ready.

x404-Blacklist
Exclusion-Based Authentication
Filter out users holding competitor tokens, scam tokens, or unwanted assets

Example:

"Access denied if you hold competitor tokens"

  • Verify user does NOT hold banned/blacklisted tokens
  • Set maximum holdings for specific tokens
  • Optional geolocation restrictions
  • Perfect for exclusive communities
x404-TimeLock
Time-Based Token Holding
Reward long-term holders, prevent quick flips

Example:

"Must hold token for 30+ days to access premium features"

  • Verify users have held tokens for minimum duration
  • Prevents users from buying tokens just to access content
  • Ensures commitment and long-term engagement
  • Great for loyalty programs
x404-MultiToken
Portfolio Verification
Require diverse portfolios, multi-token ecosystems

Example:

"Must hold Token A AND Token B to access exclusive content"

  • Verify users hold multiple tokens simultaneously
  • Support for 'ALL' or 'ANY' modes
  • Perfect for ecosystems with multiple tokens
  • Enables complex portfolio-based access control
x404-Activity
Transaction History Verification
Filter for active traders, prevent bot accounts

Example:

"Must have 10+ transactions and $1000+ volume in last 30 days"

  • Verify minimum transaction count
  • Verify minimum trading volume
  • Filter by transaction types
  • Time-period based verification
x404-Tier
Tiered Access Levels
Bronze/Silver/Gold membership tiers based on holdings

Example:

"Gold tier (100k+ tokens) gets exclusive access"

  • Automatic tier assignment (Bronze/Silver/Gold)
  • Different access levels based on token holdings
  • Single authentication returns user's tier
  • Perfect for membership programs
x404-NoDebt
Negative Balance Verification
Ensure users have no outstanding loans/debts

Example:

"Access only if you have no outstanding loans"

  • Verify users have zero (or minimal) debt
  • Check multiple protocols simultaneously
  • Prevents access for risky financial positions
  • Useful for exclusive financial services
x404-Age
Wallet Age Verification
Filter out new wallets, prevent bot accounts, reward OG users

Example:

"Wallet must be 90+ days old with first transaction 30+ days ago"

  • Verify minimum wallet age (days since creation)
  • Verify minimum time since first transaction
  • Prevents new bot accounts from accessing
  • Rewards long-term community members

Use Cases & Applications

From exclusive communities to financial services, x404 powers authentication across the Solana ecosystem.

Exclusive Communities
  • Filter out holders of competitor tokens
  • Ensure members don't hold scam tokens
  • Create truly exclusive access
Loyalty Programs
  • Reward long-term holders (TimeLock)
  • Tier-based benefits (Tier)
  • Reward active traders (Activity)
Financial Services
  • Ensure no outstanding debts (NoDebt)
  • Verify portfolio diversity (MultiToken)
  • Filter by trading activity (Activity)
Bot Prevention
  • Filter new wallets (Age)
  • Require transaction history (Activity)
  • Time-based verification (TimeLock)
Premium Content Access
  • Tiered access levels (Tier)
  • Long-term holder rewards (TimeLock)
  • Portfolio requirements (MultiToken)
dApp Integration
  • Easy NPM package integration
  • Works with React, Vue, vanilla JS
  • Tree-shakeable modular exports

How Authentication Works

Simple, secure, and nonce-based authentication flow with signature verification.

1
Nonce Request

Client requests nonce from server

Sign Challenge

User signs challenge with wallet

Verification

Server verifies signature and performs feature checks

Token Generation

Server returns JWT token on success

Token Storage

Client stores token in localStorage (30-day expiry)

Quick Integration Example
Get started in minutes with our simple API
import { X404Blacklist } from "magenx404/blacklist";

const result = await X404Blacklist({
  wallet: "phantom",
  excluded_mints: ["scam_token_address"],
  // ... config
});

if (result.success) {
  console.log("Authenticated!", result.token);
}