We're in beta. Help us improve by .
Documentation

YourGrails Docs

Everything you need to know about collecting, trading, and battling with real graded cards on the blockchain.

Welcome to YourGrails

The tokenized graded card exchange on Avalanche.

YourGrails is a platform where real, professionally graded trading cards β€” from PokΓ©mon to One Piece β€” are stored in insured vaults and represented as NFTs on the Avalanche blockchain. Buy packs, reveal cards, trade on the marketplace, battle other collectors, or request specific cards through our concierge sourcing service.

πŸƒ

Real Cards

PSA, BGS & CGC graded cards in secure vault storage

πŸ“¦

Ship Anytime

Request physical delivery of any card you own

πŸ”„

90% Buyback

Guaranteed buyback within 7 days of reveal

Getting Started

Up and running in under a minute.

1

Connect Your Wallet

Click Connect Wallet in the top-right corner. We support MetaMask, Core Wallet, and embedded wallets via Privy. You can also sign up with email β€” a wallet is created for you automatically.
2

Get Test USDC (Testnet)

On Avalanche Fuji testnet, you'll need test USDC to buy packs. Visit the faucet or use the mint function on the test USDC contract to get started.
3

Browse & Buy Packs

Head to the Packs page. Choose a tier, approve USDC spending, and purchase your first pack.
4

Reveal & Collect

After buying, go to your Collection to reveal your pack. Confirm the reveal, wait for the fair draw, and discover your graded card.

Packs & Opening

Multiple tiers with transparent odds and finite supply.

Pack Tiers

Basic
Starter
Pro
Master
Platinum
Diamond
Legend

How Buying Works

1. Approve USDC β€” grant the GachaPacks contract permission to spend the pack price.

2. Buy Pack β€” call buyPack on-chain.

3. Receive Pack NFT β€” an ERC-721 PackNFT is minted to your wallet, representing an unrevealed pack.

Reveal Flow

Every reveal uses a fair random draw:

β€’ You confirm the reveal from your wallet.

β€’ An independent draw service picks the result.

β€’ The smart contract uses that result to select your card from the pack inventory.

Odds & Transparency

Each pack tier has clearly displayed odds based on value tiers. Higher-tier packs have better chances at rare, high-value graded cards.

Odds are shown on each pack's detail page before purchase so you always know what you're getting into.

Finite Supply

Every pack has a limited inventory. Once a pack tier sells out, it's gone.

Each pack contains 1 graded card (configurable per pack tier). The inventory is tracked on-chain.

Fair Random Draws

A plain-English look at how pack results are selected.

When you open a pack, the card is not chosen by our website, an admin, or a hidden server after you click reveal. The reveal is handled by the smart contract using an independent random result.

What You See

Product screens call this a fair random draw. You confirm the reveal, the draw runs, and the card appears automatically when the result is ready.

What Happens Behind The Scenes

YourGrails uses Chainlink VRF, which stands for Verifiable Random Function. Chainlink supplies the random result, and the contract uses it to pick from the reserved inventory.

Why It Matters

Many pack sites ask users to trust a private server. Our draw is requested on-chain and can be audited, which makes it much harder for anyone to quietly choose winners or reroll outcomes.

The short version

You buy a pack, request a reveal, and an independent draw network provides the result. The smart contract then selects the card from the pack inventory. We keep the app language simple, but the Chainlink proof stays available for users who want to verify how the draw worked.

Cards & Grading

Real graded cards, tokenized and verifiable.

Every card on YourGrails is a real, professionally graded card authenticated by PSA, BGS, or CGC. Cards are stored in our insured, climate-controlled vault and represented as ERC-721 NFTs on Avalanche C-Chain.

Card Metadata

β€’ TCG: PokΓ©mon, One Piece, and more

β€’ Set Name: The card's set (e.g., Base Set, Scarlet & Violet)

β€’ Card Number: Collector number within the set

β€’ Grade: PSA 10, BGS 9.5, CGC 9, etc.

β€’ Cert Number: Verifiable certification ID

Vault Storage

All physical cards are stored in a secure, insured vault.

Cards are protected against theft, damage, and environmental factors.

You can request shipment at any time β€” once shipped, the NFT is burned.

Card Images

Each card NFT includes high-resolution images:

β€’ Front β€” the card face

β€’ Back β€” the card reverse

β€’ Slab β€” the full graded slab photo

Marketplace

Buy and sell graded cards with escrow-based security.

The YourGrails marketplace uses an escrow-based smart contract. When you list a card, the NFT is transferred to the marketplace contract and held securely until the card is sold or you cancel the listing.

For Sellers

β€’ List a card β€” set your price in USDC. The NFT moves to escrow.

β€’ Update price β€” change your asking price anytime.

β€’ Cancel listing β€” get your NFT back instantly.

β€’ A platform fee (configurable BPS) is deducted from sale proceeds.

For Buyers

β€’ Browse listings on the Market page.

β€’ Approve USDC for the marketplace contract.

β€’ Buy β€” USDC is sent to the seller (minus fee), NFT is sent to you.

β€’ All transactions are on-chain and verifiable.

Buyback Guarantee

Don't like your pull? Get 90% back.

πŸ›‘οΈ

90% Buyback Protection

Within 7 days of revealing a pack, you can sell any card back to the platform for 90% of its appraised value. This is funded by the platform's USDC reserve and executed entirely on-chain.

How It Works

1

Approve NFT

Grant the Buyback contract permission to transfer your card NFT.
2

Execute Buyback

Call executeBuyback on-chain. The contract verifies the 7-day window and card eligibility.
3

Receive USDC

90% of the appraised value is transferred directly to your wallet. The NFT is returned to the platform.

Card Sourcing (Concierge Service)

Request any card. We'll find it for you.

Can't find the card you want? Our Concierge Service lets you create a sourcing request with a wishlist and USDC budget. Our team scours eBay, PWCC, and other marketplaces to find exactly what you're looking for.

Sourcing Flow

1

Create Request

Describe the card(s) you want and deposit a USDC budget into the escrow smart contract.
2

Receive Quotes

Our team submits quotes with photos, grading info, and price. You'll be notified for each quote.
3

Accept or Reject

Review each quote. Accepted quotes lock the required funds from your budget.
4

Card Delivered

Once fulfilled, the card is purchased, professionally graded (if needed), and minted as an NFT to your wallet.

Budget Management

β€’ Unused funds can be withdrawn anytime.

β€’ Cancel your request to get all unallocated funds back.

β€’ Budget is held in the SourcingEscrow smart contract.

Quote Expiry

Quotes have an expiry period to prevent your funds from being locked indefinitely.

If a quote expires without fulfillment, the locked funds are released back to your budget.

Pack Battles (PvP)

Head-to-head pack opening competitions.

βš”οΈ

Pack Battles

Create a battle lobby, choose a pack tier, and deposit an entry fee. Share the link with a friend (or rival!) β€” both players open packs simultaneously in a split-screen UI. The higher value card wins the prize pool bonus!

How Battles Work

1. Create Lobby β€” pick a pack tier & deposit entry fee.

2. Opponent Joins β€” they deposit their entry fee too.

3. Reveal Together β€” both packs open simultaneously.

4. Winner Takes Bonus β€” higher value card wins the prize pool.

Prize Pool

β€’ Prize pool = entry fees from both players.

β€’ Platform takes a small cut.

β€’ Tie? Prize pool is split 50/50.

β€’ Both players keep their cards regardless of outcome!

Leaderboard

β€’ Wins β€” total battle victories

β€’ Win Streak β€” current consecutive wins

β€’ Total Winnings β€” lifetime USDC earned

β€’ Best Pull β€” highest value card from battles

β€’ Weekly and all-time rankings

Profiles & Social

Show off your collection and battle stats.

Customizable Profiles

β€’ Username & Display Name β€” your identity on the platform.

β€’ Bio β€” tell the world about your collection.

β€’ Avatar β€” upload a custom profile picture.

β€’ Win Streak Badges β€” flex your battle record.

Public Profile Pages

Every user has a public profile page showing:

β€’ Card collection

β€’ Marketplace activity

β€’ Battle stats & history

β€’ Win streak & badges

Notifications

Stay in the loop with real-time updates.

YourGrails uses Server-Sent Events (SSE) for real-time notifications. You'll never miss an important event.

Notification Types

β€’ πŸƒ Pack Revealed β€” your card has been assigned

β€’ πŸ’° Card Sold β€” a marketplace sale completed

β€’ πŸ“‹ Quote Received β€” a sourcing quote is ready

β€’ βœ… Quote Fulfilled β€” your sourced card has arrived

β€’ βš”οΈ Battle Results β€” battle outcome and prize info

Notification Controls

β€’ Bell Icon β€” shows unread count in the header.

β€’ Mark as Read β€” dismiss individual notifications.

β€’ Mark All as Read β€” clear all unread notifications at once.

Live Activity Feed

Watch the platform come alive in real-time.

The homepage features a live activity feed showing real-time platform events β€” pack openings, marketplace sales, and battle results. High-value reveals trigger a special "BIG PULL" golden glow animation.

🎴

Pack Openings

See what others are pulling

πŸ’Έ

Sales

Live marketplace transactions

βš”οΈ

Battles

Battle outcomes & winners

✨

BIG PULL Alerts

High-value reveals get a special golden glow animation visible to everyone on the platform, plus a viewer count badge showing how many people witnessed the pull.

Smart Contracts

Transparent, auditable on-chain infrastructure.

Avalanche C-Chain β€” Fuji Testnet

Contract Architecture

CardNFT

ERC-721 β€” tokenized graded cards

GachaPacks

Pack purchasing & verified reveals

PackNFT

ERC-721 β€” unrevealed pack tokens

MarketplaceEscrow

Listing, buying, cancelling with escrow

Buyback

Guaranteed buyback execution

SourcingEscrow

Budget management for sourcing

PackBattleV3

PvP pack battle system

Contract Addresses (Fuji)

CardNFT0xa260dD17449E0F4F2b228e9d341de02c3453B720
GachaPacks0x1856FcC340F3B5f19a8a8dd0c1130332B2F602e0
PackNFT0xe721723D2dA335272B55D733b1ce6917825E1fA2
USDC (Test)0x5425890298aed601595a70AB815c96711a31Bc65
Marketplace0x3c0aB3A0a7d74080A6b22Db8F1eF4771BCd6AE28
Buyback0xb06D63831946e7E308A956A94226856718B2a23B
PackBattleV30x653642EB19C0440eAaa0EB89E0fAF3F36AFd2a90
CCTP Receiver0x15D1a1C70F4602b00d7E8a3b40eB47E20607F33B

Security Standards

OpenZeppelin AccessControlReentrancyGuardVerified Random DrawsEscrow PatternsRole-Based Permissions

Security

Built with safety as a first principle.

Escrow Marketplace

When you list a card, the NFT is held by the smart contract β€” not another user. This eliminates counterparty risk entirely.

Verified Random Draws

Pack reveals use Chainlink VRF behind the scenes, so the outcome is requested on-chain, fulfilled independently, and checked before cards are awarded.

Reentrancy Guards

All contracts that handle fund transfers use OpenZeppelin's ReentrancyGuard to prevent reentrancy attacks.

Access Control

Admin operations use OpenZeppelin AccessControl with role-based permissions. No single key has unrestricted access.

Wallet Authentication

Admin actions require wallet signature authentication, ensuring only authorized wallets can perform privileged operations.

Quote Expiry

Sourcing quotes have expiry periods so your funds are never locked indefinitely. Expired quotes automatically release locked funds.

Frequently Asked Questions

Are the cards real?

Yes. Every card on YourGrails is a real, professionally graded card (PSA, BGS, or CGC) stored in our insured, secure vault. The NFT you hold represents 1:1 ownership of that physical card.

Can I get my physical card shipped to me?

Yes. You can request shipment of any card you own at any time. Once shipped, the NFT is burned and the physical card is sent to your address via insured shipping.

What blockchain is YourGrails on?

YourGrails runs on Avalanche C-Chain. We currently operate on the Fuji Testnet during our beta phase, with mainnet launch planned.

What wallet do I need?

We support MetaMask, Core Wallet, and embedded wallets via Privy. You can even sign up with email and a wallet will be created for you automatically.

How does the buyback work?

Within 7 days of revealing a pack, you can sell any card back to the platform for 90% of its appraised value. This is executed on-chain β€” simply approve the NFT transfer and the USDC is sent directly to your wallet.

How do I know pack draws are fair?

Every pack reveal uses a fair random draw. Behind the scenes, Chainlink VRF supplies an independent random result that the smart contract uses to pick the card from the pack inventory.

What are Pack Battles?

Pack Battles are PvP contests where two players each open a pack simultaneously. The player whose card has a higher value wins a bonus from the prize pool. Both players keep their revealed cards regardless of the outcome.

Is there a fee for marketplace sales?

Yes, there is a small platform fee on marketplace sales (configured in basis points). The fee is deducted from the sale proceeds automatically by the smart contract.

What is Card Sourcing?

Our Concierge Service lets you request specific cards. Deposit a USDC budget, and our team will source the card from eBay, PWCC, and other marketplaces. Once found, you approve the purchase and the card is minted as an NFT to your wallet.

What happens if I lose a Pack Battle?

You still keep the card you revealed! The only thing at stake is the entry fee bonus. The "loser" simply doesn't receive the prize pool bonus, but their card is theirs forever.

Built on Avalanche Β· Powered by YourGrails