BASE TOKEN GATING
Server-side token gating for Base applications.
Protect SaaS routes, community features and APIs using Base token state without repeating RPC checks throughout your backend.
BASE
Support the token standards your access rules already use
Create ERC-20 minimum balance, ERC-721 ownership and ERC-1155 balance policies on Base.
SERVER
Keep project credentials and decisions server-side
The browser can authenticate a wallet, but the AccessVerdict project key stays in your backend where authorization belongs.
EXAMPLE
Protect one route first
Start with a route that already performs a Base token check and replace that boundary with a saved policy.
const verdict = await accessVerdict.verify({
policyId: process.env.ACCESSVERDICT_POLICY_ID!,
wallet,
});