🔑Token Gating

A novel content distribution technique.

TLDR

Token gating is a way to require ownership of a specific token in order to access content or a webpage.

Steps

  1. A user will connect their wallet.

  2. The wallet is queried for a balance of the specified token.

  3. If the balance meets the requirements, access is granted.

Why is this only possible with Blockchains?

Blockchains are completely transparent

The Blockchain is simply an open distributed database that everyone has access to, this means all values can be read by anyone.

When a user connects their wallet to your app you now have access to the user's public wallet address.

With this wallet address, you can check the balance of an NFT or token using these actions.

Action NameDescription

Get the owner of a ERC-721 NFT.

Get the balance of ERC-721 NFTs held by a wallet.

Get the balance of ERC-1155 NFTs held by a wallet.

Get the balance of ERC-20 tokens held by a wallet.

Get the balance of native tokens held by a wallet.

Wallets have no connection to your real-life identity unless you transfer funds to them from a service that requires KYC, such as centralized exchanges like Coinbase or Binance.

Last updated