๐ชToken Gating (Ethereum / EVM)
A guide to start token gating anything in minutes.
Requirements
Before continuing make sure you've followed the setup guide
โ๏ธStart Here: SetupToken Gate Anything
You can use Picket to token gate anything. If you want to authenticate users and verify their token ownership, you can pass the token ownership requirements to the login()
function.
Login User w/ Token Ownership Requirements
Token Ownership Requirements
Picket currently defaults to using the ethereum
(Mainnet) chain. While using ethereum
contract address can be any contract address for an ERC20 token or an NFT (including ERC-721 and ERC-1155.) Picket also authentication and authorization on other chains like Solana. See supported blockchains for the complete list.
You successfully validated a user's wallet and token ownership!
The returned access token can now act as secure proof of token ownership until expiration. It can be passed server side and verified there in order to restrict resources to authenticated wallets with whichever token ownership requirements you have.
Using Access Tokens
Congrats ๐ your user is now successfully logged in. After authenticated/authorizing a user, you get an access token. You can use this access token to make secure requests to your backend. Read more in the working with access tokens guide.
๐Working with Access TokensLast updated