Time-boxed Tickets & Access Passes
FX402 makes it simple to sell digital tickets, event passes, and temporary memberships using the same on-chain payment flow as NFT rentals.
Each ticket acts as a time-boxed license that expires automatically after the chosen duration.
🧩 1. Concept
Instead of minting a new NFT for every attendee, you can issue receipts that grant access for a fixed period, such as:
- 1-day event tickets
- 7-day festival passes
- 30-day subscription memberships
When valid_until passes, access ends automatically—no need for manual revocation.
🎟️ 2. Example: One-Day Ticket
Request:
GET /tickets/diriyah-grand-prixResponse:
{
"standard": "x402",
"profile": "r402/v1",
"usage": {
"tiers": [
{ "id": "1d", "label": "Event Pass", "price": { "amount": "10.00", "currency": "USDC", "chain": "solana" } }
]
},
"pay_to": { "address": "SoLWalletEvent...", "chain": "solana" }
}Once payment is completed, the receipt acts as a digital ticket.
🧾 3. Example Receipt
{
"resource": "event:diriyah-gp:2026",
"tier_id": "1d",
"valid_until": "2026-03-10T00:00:00Z",
"paid": { "amount": "10.00", "currency": "USDC" },
"jwt": "<signed JWT>"
}🧠 4. Post-Event Behavior
After the event ends:
- Receipt expires (
valid_until) - Client loses access to gated media (e.g., behind-the-scenes content)
- You can mint an optional “stub NFT” for permanent memorabilia
💡 5. Real-World Use Cases
| Use Case | Description |
|---|---|
| Fan Clubs | Sell temporary memberships that unlock Discord or Telegram |
| Sporting Events | Digital tickets for entry, redeemable via QR or JWT |
| Festivals/Conventions | Tiered access (day-pass vs VIP 3-day) |
| Post-Event Media | Only ticket holders can view highlights for 7 days post-event |
📚 Next Steps
Last updated on