← Back to Game

🔮 Soracles Smart Contract Code

Explore the Aiken validator and on-chain data

📝 Aiken Validator
⚙️ Plutus Script
📊 Datum Structure
💎 UTxO Query
⌨️ CLI Commands

Aiken Validator Code

About This Validator

The Soracles validator is written in Aiken, a modern smart contract language for Cardano. It manages the oracle prediction game logic including registration, predictions, and reward distribution.

Key Features:

  • Integrates with Charli3 Oracle for ADA/USD price feeds
  • 5-tier graded scoring system (50,000, 10,000, 1,000, 100, 50 points based on accuracy)
  • 4-tier payout system (50 ADA, 10 ADA, 3 ADA, 1.5 ADA)
  • 24-hour wait time for prediction maturation
  • Admin-controlled operations with signature verification
Loading Aiken validator code...

Compiled Plutus Script

Script Details

This is the compiled Plutus Core script generated from the Aiken validator. It's what actually runs on the Cardano blockchain.

Loading Plutus script...

On-Chain Datum Structure

Current State

The datum stores all game state on-chain including player registrations, predictions, and game parameters.

Loading datum structure...

Contract UTxO Query

View the current state of the smart contract on-chain, including the datum and UTxO details.

Contract Address:
addr1w8uvr3ya50krpyyx2j43flq0mtjnwc8cxmn7surf303nwrs89v7sx

Loading contract state...

Cardano CLI Commands

Command Reference

Example commands for interacting with the Soracles smart contract using cardano-cli

Loading CLI commands...