Inspiration

Collectors often have a specific card in mind: a rookie from their favorite player, a PSA 10, or a card they have been watching for months. Prediction markets speak in probabilities, shares, and payouts.

We wanted to connect those two ways of thinking. With Slabline, you can back a team or player and see which cards a winning position could cover. The card gives the prediction a concrete target.

What it does

Slabline brings prediction markets and collectible discovery into one app. Users browse real Gemini markets, choose an outcome, and enter a stake. The app calculates an estimated payout from available order-book depth and shows related graded cards from Collector Crypt, alongside Card Hedge valuations where available. Users can also select a card and calculate the stake needed to target it.

Pull & Predict adds a pack-opening experience. Opening a pack reveals a prediction budget; users then choose their market and outcome. Users can review every possible budget and its probability before opening.

The current build runs in Devnet mode. Users can add to positions, sell shares, and try settlement with cash or collectible reward choices. Solana devnet supports verifiable pack randomness and wallet-signed collectible representations. Mainnet trading requires Gemini OAuth approval and the necessary account permissions. Physical-card purchases and redemption remain gated.

How we built it

We used Bun and TypeScript for the workspace, Next.js for the frontend, and a separate worker for provider data and live order books. The worker receives Gemini WebSocket updates and sends them to the browser through server-sent events. PostgreSQL and Drizzle handle accounts, positions, pack openings, and transaction recovery state.

Gemini supplies market data, Collector Crypt supplies listings and slab images, Card Hedge supplies matched valuations, and Grail adds tokenized collectible discovery. We used Privy for sign-in and wallet connections, and Railway to host the web app, worker, and database.

For Pull & Predict, we used a native Rust Solana receipt program with MagicBlock VRF. Each opening has a receipt containing its randomness result. The app verifies that finalized receipt before assigning the budget.

Challenges we ran into

A displayed market price is only part of a trade estimate. A larger order can consume several price levels, and available liquidity may cover only part of the requested stake. We used exact integer arithmetic to calculate fills, payouts, and remaining balances without floating-point rounding errors.

Wallet recovery required careful handling. A request can reach the network even when the browser never receives a response. Slabline saves signed transactions before broadcasting and checks their status before allowing a replacement, preventing duplicate submissions during recovery.

Matching cards also meant handling incomplete data. A listing’s asking price and its estimated fair market value are separate figures. When Card Hedge has no reliable match, the app shows that the valuation is unavailable.

Accomplishments that we're proud of

We got the prediction-to-card journey working as a repeatable devnet demo. In the Wembanyama replay, a $39.90 position buys 145 YES shares against recorded Gemini depth. A winning result produces a $145 reward budget that can target the archived Wembanyama PSA 10 listing and create a wallet-controlled devnet representation.

Pull & Predict also has a verified path from an onchain draw to a saved position. One integration check debited $25 once, verified a $15 budget, opened a $14.88 devnet demo position, and returned the remaining $0.12 to the balance.

What we learned

Verifiable randomness solved one part of a pack opening using MagicBlocks. The rest still needed account ownership checks, a request bound to the paid opening, protection against duplicate claims, and recovery when a transaction gets interrupted.

We also learned how much the interface depends on precise accounting. Stake, potential payout, available cash, card price, and card valuation each answer a different question. Keeping those amounts distinct made the product easier to explain and use.

What's next for Slabline

Our next step toward mainnet is obtaining Gemini OAuth approval and verifying authorized account access and live order execution. Collectible purchases also need signed transaction testing, funding reconciliation, and confirmed redemption arrangements before release.

We want to improve player and team matching, expand valuation coverage, and test the mobile experience with collectors. The goal is to make finding a relevant prediction and targeting a particular card feel natural in the same session.

Built With

Share this project:

Updates

Submission history