ZKasino Documentation
WebsitedAppTwitterTelegram
  • Welcome
  • Tokenomics
  • ZKasino Bridge
  • ZKasino Chain Testnet
  • ZKasino
    • Roadmap and FAQ
    • Responsible Gaming
    • Live Support
    • IPFS hosting
    • Mainnet Guide
    • Official Links
  • Platform
    • Glossary
    • Betting
    • Chains and Bet tokens
    • Self Exclusion
  • Developer
    • Contract addresses
    • Audits
    • Infrastructure
    • VRF Oracle
    • Architecture
    • Metaplay
    • Probability, Odds and House Edge
      • Dice
      • Plinko
      • Video Poker
      • Slots
      • Mines
      • Rock Paper Scissors
      • Coin Flip
    • Kelly-based bankroll management
    • Changelog
      • Game contracts v2.1
      • Game contracts v2.0
      • Contracts v1.0
      • Integrated VRFs (old)
      • Testnet Guide (outdated)
    • Testing
      • BNB Chain private fee testing
      • v2.1 private testnet WIP
      • v2.0 public testnet
      • v2.0 private testnet
      • multi-chain private mainnet with VRF
      • v1.1 public testnet
      • multi-chain private testnet with VRF
      • v1.0 public testnet
      • wip v1.0 private testnet
      • v2.1 public testnet
Powered by GitBook
On this page
  • Integrated VRFs
  • VRF fee
  • Pending VRF requests
  • Chainlink VRF
  1. Developer

VRF Oracle

PreviousInfrastructureNextArchitecture

Last updated 1 year ago

ZKasino requires randomness for its games which it receives from an integrated Verifiable Random Function (VRF). A VRF is a Random Number Generator (RNG) that provides random outcomes which are verifiable on-chain. With a VRF, ZKasino is able to provide users provably fair outcomes that are impossible to have been tampered with. Chainlink VRF is the biggest VRF provider in crypto. More information on how a VRF like Chainlink VRF works, can be found . For information on how ZKasino uses VRFs with its contracts, please see the page.

Integrated VRFs

Network
VRF integration
Subscription
Smart Contract address

Polygon

Arbitrum

Depreciated

Fantom

BNB Chain

Arbitrum

VRF fee

For VRFs to resolve RNG requests a lot of computation power is needed. Therefor, VRFs ask a fee to be paid for their efforts. The VRF fee is paid upfront by the user. Note that gas fees may seem high initially. This is because the VRF fee can only be calculated when the VRF request is made. A big portion of the VRF fee is refunded in the same transaction.

Pending VRF requests

On their profile page a player can find "Pending VRF Requests". On very rare occasions the VRF request does not get resolved and the player's wager will be stuck in the game contract. After 100 blocks the player can click "Refund" to remove their wager from the game contract.

Chainlink VRF

()

()

The VRF is also described in the .

On September 5th 2022 Chainlink that the Chainlink VRF had received a compliance certification through . This meant the first compliance certification for a VRF in the blockchain gaming industry. BMM Testlabs is an .

Architecture
announced
GLI-19
BMM Testlabs
independent, gaming certification lab
Chainlink VRF
576
0xAE975071Be8F8eE67addBC1A82488F1C24858067
Chainlink VRF
53
0x41034678d6c633d8a95c75e1138a360a28ba15d1
Chainlink VRF
Subscription
VRFCoordinatorV2
Chainlink VRF
Subscription
VRFCoordinatorV2
Randomizer
Randomizer: VRF
here
Architecture