BetSwirl Integrates Chainlink VRF v2 to Unlock Provably Random Gameplay Dynamics

4 min readApr 13, 2022


We’re excited to announce that BetSwirl — the online DeFi gaming protocol — has integrated Chainlink Verifiable Random Function (VRF) v2 on BNB Smart Chain mainnet. By integrating the industry-leading decentralized oracle network, we now have access to a tamper-proof and auditable source of randomness needed to help bring fairness to our gaming ecosystem. Ultimately this creates a more exciting and transparent experience for our community, as players can be sure that their chances of winning games are truly random.

BetSwirl is a cross-chain DeFi gaming platform that seeks to bring true decentralization to the online gaming industry. The platform features two classic games at the moment — Coin Toss and Dice — with more scheduled to roll out in the coming months.

Built on Polygon and BNB Smart Chain, the platform is positioned to bring a breath of fresh air to the blockchain gaming space as it allows dynamic user experiences. Again, the BetSwirl team is both skilled enough and totally determined to redefine on-chain gaming. When you think about BetSwirl, think of a decentralized gaming platform where everyone can enjoy fair gameplay.

In order to bring transparency to our games and help give everyone a fair chance to play and win, we needed access to a secure random number generator (RNG) that any user could independently audit. However, RNG solutions for smart contracts require several security considerations to prevent manipulation and ensure system integrity. For instance, RNG solutions derived from blockchain data like block hashes can be exploited by miners/validators, while off-chain RNG solutions derived from off-chain APIs are opaque and don’t provide users with definitive proof about the integrity of the process.

After reviewing various solutions, we selected Chainlink VRF v2 because it’s a cost-effective, flexible randomness solution based on cutting-edge academic research, supported by a time-tested oracle network, and secured through the generation and on-chain verification of cryptographic proofs that prove the integrity of each random number supplied to smart contracts.

Chainlink VRF works by combining block data that is still unknown when the request is made with the oracle node’s pre-committed private key to generate both a random number and a cryptographic proof. The BetSwirl smart contract will only accept the random number input if it has a valid cryptographic proof, and the cryptographic proof can only be generated if the VRF process is tamper-proof. This provides our users with automated and verifiable assurances directly on-chain that gaming outcomes were not tampered with by the oracle, outside entities, or the BetSwirl team.

If you have yet to check out our games, feel free to get started here. You will find BetSwirl’s user interface refreshingly engaging, which is a testament to BetSwirl’s commitment to improving the on-chain gaming experience for our community. We will continue to explore the integration of other Chainlink trust-minimized services to enhance our platform.

“Above all, we chose Chainlink VRF v2 because it’s time-tested and proven to produce the kind of result we’re looking for: verifiable randomness with unmatched transparency.” — Romuald Hog, Founder/CEO of BetSwirl

About Chainlink

Chainlink is the industry standard for building, accessing, and selling oracle services needed to power hybrid smart contracts on any blockchain. Chainlink oracle networks provide smart contracts with a way to reliably connect to any external API and leverage secure off-chain computations for enabling feature-rich applications. Chainlink currently secures tens of billions of dollars across DeFi, insurance, gaming, and other major industries, and offers global enterprises and leading data providers a universal gateway to all blockchains.

Learn more about Chainlink by visiting or reading the developer documentation at To discuss an integration, reach out to an expert.

About BetSwirl

BetSwirl is a cross-chain DeFi gaming platform that seeks to bring true decentralization to the online gaming industry. It leverages Polygon’s and BNB Smart Chain’s growing popularity and minimal gas fee, to create dynamic experiences that rival existing norms in the industry. Led by a public team, the BetSwirl project prides itself in a futuristic approach to ecosystem development. Beyond the usual offers of everyday betting platforms, BetSwirl is already laying the foundations of a metaverse inclined ecosystem. Together with ongoing efforts to accommodate more blockchain protocols, chains, and tokens, BetSwirl is positioning itself for the future.

Useful links







Originally published at on April 13, 2022.




Online cryptocurrency gaming platform, fully decentralized and anonymous, where everyone enjoys a fair play.