Smart Contract

Learn about the avRaffle smart contract deployed on the Base network.

Contract Information

Contract Address

0x6255028d90050610e65D02c27D890B4953a0719b

This is the official avRaffle RaffleManager contract address. Always verify this address when interacting with our platform.

Network

Chain: Base

Chain ID: 8453

RPC: https://mainnet.base.org

View on Block Explorer

You can verify and interact with the smart contract on BaseScan:

View on BaseScan

Security & Verification

Security Features

On-Chain Randomness

Winner selection uses verifiable on-chain randomness that cannot be predicted or manipulated.

Transparent Transactions

All transactions are recorded on the Base blockchain and can be verified by anyone.

Immutable Records

Once a raffle is completed, results are permanently recorded and cannot be altered.

Base Network Security

Deployed on Base, a secure Layer 2 solution maintained by Coinbase and built on Ethereum.

Admin Controls

Only authorized admins can create and manage raffles, with all admin actions recorded on-chain.

How Randomness Works

The smart contract uses the Base network's block hash as a source of randomness. This ensures:

  • Unpredictability - Results are determined by network conditions
  • Transparency - Any observer can verify the randomness source
  • Fairness - Every participant has equal odds of winning

How It Works

1Raffle Creation

Admins create a new raffle with details like ticket price, max tickets, and prize distribution.

2Ticket Purchase

Users purchase tickets by sending ETH to the contract. Each ticket is tracked with the buyer's address.

3Raffle Conclusion

When the raffle ends, the contract executes the winner selection using verifiable randomness.

4Prize Distribution

The winner receives their prize automatically transferred to their wallet.

Verify the Contract

All smart contract code is transparent and deployed on the blockchain. You can verify:

  • Source code on BaseScan or Etherscan
  • All transactions associated with the contract
  • Raffle details and results history
  • Admin actions and state changes