AccessVerdict

BASE INTEGRATION

Turn Base token state into permissions.

Create ERC-20, ERC-721 or ERC-1155 access rules without moving authorization logic into every application route.

01

Keep chain logic behind one policy

Your application sends a wallet and policy ID. AccessVerdict reads Base, evaluates the saved policy and returns entitlements.

02

Example: require at least 1 USDC on Base

Rule type: ERC-20 balance
Chain: Base
Contract: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Minimum raw units: 1000000
Entitlement: premium
03

ERC-20 minimums use raw smallest units

For a 6-decimal token, 1000000 raw units represents 1 whole token. ERC-721 and ERC-1155 minimums represent integer token balances.

04

Evaluate from a trusted server boundary

const result = await accessVerdict.verify({
  policyId: process.env.ACCESSVERDICT_POLICY_ID!,
  wallet: userWallet,
});

if (result.status === "error") failClosed();
if (!result.allowed) denyAccess();
grant(result.entitlements);

Keep the AccessVerdict API key in server-only environment variables.

05

Denied and unavailable are different states

denied means the checked state failed the policy. error means AccessVerdict could not make a trustworthy decision. Fail closed.

Open server SDK guide