0xKYC Documentation
  • ☀️Welcome to 0xKYC Documentation
  • Overview
    • 💡What we do
    • ✨Our Products
  • DEVELOPER GUIDES
    • 📍Start Here
    • 🧙Client or Server Guide
      • Sunscreen - Uniquness Verification
        • Define ABI
        • Get Unique Identifier of an Address
        • Working with the UUID
      • 0xKYC - Sanctions/ AML
        • Contract Addresses
        • Define ABI
        • Checking for SBT
        • Token-gate on the Front-end
    • ⛓️Blockchain Guide
      • Smart Contract
      • On Chain Verification
      • No Code (Etherscan)
    • 🤖Public APIs
Powered by GitBook
On this page
  1. DEVELOPER GUIDES
  2. Client or Server Guide
  3. 0xKYC - Sanctions/ AML

Token-gate on the Front-end

Our solution is permissionless, thereby allowing for direct front-end integrations that require no permission from 0xKYC or its user base

Here is an example of a simple front end method, token gate the key functionality of your protocol with a check for our SBT:

    const checkSBT = async () => {
      try {
        if (address) {
          const isVerified = await checkForSBT(address);

          if (isVerified) {
            setIsAuth(true);
          } else {
            setIsAuth(false);
          }
        }
      } catch (err) {
        // handle error
      }
    };

PreviousChecking for SBTNextBlockchain Guide

Last updated 1 year ago

🧙