Token-gated content, NFT publisher access, and wallet-based commerce rules
The implementation supports first-party allowlists and contract-backed ERC-721 checks for gated articles, perks, or commerce flows. If chain configuration is missing, the API returns access: "unavailable" instead of inventing a result.
Gate-check test
Implemented · production verification pendingTST Access Pass
The TSTAccessToken contract uses balanceOf(address) when a deployment provides the contract address and RPC access.
Allowlist mode
The same endpoint can evaluate first-party allowlist rules without a chain dependency or wallet requirement.
This test reports the response from the current deployment. If the wallet path is unavailable, use the conventional allowlist/manual-review fallback instead.
Choose an access model
| Model | Use when | Avoid when |
|---|---|---|
| Account entitlement | Privacy, revocation, support recovery, and familiar login matter most | The entitlement must be independently portable |
| First-party allowlist | A small, controlled group needs temporary access | The list would become a permanent identity silo |
| Wallet-held token | Portable ownership is part of the product and users already rely on wallets | Transfer, public linkage, lost keys, or resale would undermine the policy |
Access recovery and revocation
- Offer a non-wallet recovery path that verifies the entitlement without requesting a seed phrase or private key.
- Fail closed with an explicit unavailable state when RPC or contract configuration cannot be verified.
- Publish how transfers, revocation, refunds, account unlinking, and false denials are handled before asking a reader to connect.
Builder proof
- Builder examples & snippets
- TSTAccessToken ABI artifact
- TSTLoyaltyBadge ABI artifact
- Deployment metadata
Builders can inspect the ERC-721 ABI and configured contract addresses instead of relying on marketing copy.
How this token-gated content implementation works
A concise view of the contract-aware token-gating flow for publishers.
- Declare a rule: A content item or offer points to a gating rule such as an ERC-721 balance check or first-party allowlist.
- Submit a gate check: The client posts the wallet address and rule identifier to /api/v1/gate-check.
- Read the honest result: The backend grants, denies, or returns unavailable if chain configuration is missing.
Common questions
Does this implementation support NFT gating for publishers?
Yes. It implements ERC-721 balance-based gating alongside local allowlist rules.
What happens if the RPC endpoint or contract address is missing?
The gate-check API returns access unavailable with an explicit reason instead of pretending the rule passed or failed.
Evidence, freshness, and corrections
- Written and edited by
- Rachel Julian, founder and editor
- Last reviewed
- 2026-08-13
- Readiness rule
- Scaffold means designed, not implemented. Beta means implemented with production verification pending. Live means independently verified end to end. Source code, ABI files, endpoints, or configuration never prove production availability.
- Correction path
- Report a correction or compare the capability changelog.
Source hierarchy
- Primary standards: Protocol specifications and standards bodies define what an implementation must do.
- Security guidance: Threat-model and identity guidance define controls, failure handling, and recovery expectations.
- Deployment evidence: Independent end-to-end checks establish whether a configured production capability is live.
- Editorial judgment: I apply those sources to revenue-travel decisions and state where the evidence stops.