Token Configuration & Logic
Fuze enables access gating using Solana-based tokens; whether fungible (SPL tokens) or NFTs (Metaplex standard). This lets you tokenize access to content, products, and communities directly through the Solana ecosystem.
π Key Attributes
data-token
The Solana token mint address used for access gating
data-chain
Blockchain (should be "solana" in all cases)
data-type
Type of gating (content-gate, product-access, etc.)
data-threshold
(Optional) Minimum token balance required (e.g., 1)
data-role
(Optional) Custom logic roles, if needed
π§ Examples of Gating Logic (Solana)
β 1. SPL Token Ownership
Allow access to anyone holding any amount of a specific Solana token:
<script
data-token="So11111111111111111111111111111111111111112"
data-chain="solana"
></script>π’ 2. Minimum Token Threshold
Only allow users who hold a minimum amount of a fungible SPL token:
πΌοΈ 3. NFT Ownership
Gate access based on NFT ownership using a Metaplex collection address:
π§© React SDK Example (Solana)
Usage in JSX:
βοΈ Best Practices
β Use mint addresses from trusted sources (SPL token, NFT collection)
π Ensure the wallet is connected via Solana-compatible wallet (e.g., Phantom, Solflare)
π§ͺ Test your logic in staging before going live
π‘ Use Solana devnet for local testing (
data-network="devnet"optional override)
Last updated