• Fantom Logo
  • Technology Tools Enterprise Ecosystem Developers
  • Fantom DeFi
      • Sub menu

        Intro to Fantom

        Fantom is a fast, scalable and secure platform for digital assets.

      • Sub menu

        Stake on Fantom

        Earn rewards by securing the network.

      • Sub menu

        FTM token

        FTM is the primary token of the Fantom ecosystem.

      • Sub menu

        The Consensus

        Discover Lachesis, Fantom’s ultra-fast consensus protocol.

      • Sub menu

        Opera Chain

        The Fantom mainnet, with staking and EVM support.

    • WALLETS

      • Sub menu

        Fantom Wallets

        Store, send, receive, and stake FTM on desktop, mobile, and hardware wallets.

      EXPLORER

      • Sub menu

        FTMScan

        A new Fantom explorer built by the Etherscan team.

      • Sub menu

        Opera Explorer

        Explore the network transactions, blocks, and nodes on Opera.

      • Sub menu

        OKLink

        OKLink is an alternative explorer for the Fantom network

    • GUIDES

      • How to use Fantom Wallet

      • How to set up Ledger Nano with Fantom

    • Sub menu

      Enterprise

      Discover Fantom’s solutions for enterprise clients.

    • Sub menu

      Solutions

      Take a deep dive in real world use cases.

      • Sub menu

        About us

        Meet the people behind Fantom.

      • Sub menu

        Partners and integrations

        Learn how we're creating a cross-chain ecosystem on our innovative platform.

      • Sub menu

        Blog

        Learn about Fantom through our general and tech articles.

      • Sub menu

        Podcasts and interviews

        Check out all the Fantom related interviews and AMAs.

      • Sub menu

        FAQ

        Do you have questions? We have answers!

      • Sub menu

        Community

        Join our wonderful community and share ideas.

      • Sub menu

        Careers

        Come work with us!

    • Sub menu

      Documentation

      Start building on Fantom

      GET STARTED

      Deploy a smart contract Create a fixed-cap asset Create a local test network GraphQL API docs

      GUIDES

      Set up Metamask Run a validator node
    • Sub menu

      Technical papers

      Read our technical papers and latest research essays.

      Covalent API
      The Graph's Subgraphs
      Verified contracts
      Frontend JS Utilities
      DeFi Smart Contracts
      Developers’ chat
Fantom Logo
menu
Fantom Logo close
  • Technology
        • Sub menu

          Intro to Fantom

        • Sub menu

          Stake on Fantom

        • Sub menu

          FTM token

        • Sub menu

          The Consensus

        • Sub menu

          Opera Chain

  • Tools
      • WALLETS

        • Sub menu

          Fantom Wallets

        EXPLORER

        • Sub menu

          FTMScan

        • Sub menu

          Opera Explorer

        • Sub menu

          OKLink

        GUIDES

        • How to use Fantom Wallet

        • How to set up Ledger Nano with Fantom

  • Enterprise
        • Sub menu

          Enterprise

        • Sub menu

          Solutions

  • Ecosystem
      • Sub menu

        About us

      • Sub menu

        Partners and integrations

      • Sub menu

        Blog

      • Sub menu

        Podcasts and interviews

      • Sub menu

        FAQ

      • Sub menu

        Community

      • Sub menu

        Careers

  • Developers
      • Sub menu

        Documentation

      • GET STARTED

      • Deploy a smart contract

      • Create a fixed-cap asset

      • Create a local test network

      • GraphQL API docs

      • GUIDES

      • Set up Metamask

      • Run a validator node

      • Covalent API

      • Verified contracts

      • DeFi Smart Contracts

      • The Graph's Subgraphs

      • Frontend JS Utilities

      • Developers’ chat

      • Sub menu

        Technical papers

blog-image
May 20, 2021

Fantom collaborates with Chainlink to natively integrate Chainlink VRF providing developers with on-chain randomness

Development

We’re excited to announce that Fantom and Chainlink are actively working to natively integrate Chainlink Verifiable Random Function (VRF)—a secure and verifiable on-chain randomness solution purpose-built for smart contracts. Designed according to leading academic research, along with multiple security audits and time-tested usage in production, we are integrating Chainlink VRF as the recommended random number generator (RNG) solution for all Fantom developers needing it within their decentralized applications.

Fantom developers will be able to leverage Chainlink VRF to create high-throughput and low-cost gaming, NFT, and DeFi products that are augmented by randomness, such as unpredictable in-game scenarios, fair distribution of limited-edition financial assets, or random assignment of rare NFTs attributes. This initiative comes in addition to the recent Chainlink grant given to Block 42, which is currently bringing the widely used Chainlink Price Feeds natively to Fantom to support the DeFi initiatives being launched by Fantom Finance and other development teams.

Understanding the Technical Details of Chainlink VRF

Blockchain randomness is a critical component of meaningful smart contract applications, driving unpredictability to create thrills, establishing fairness to stimulate competition, and creating security to uphold the scarcity of certain assets. However, accessing an RNG solution on-chain in a manner that is tamper-proof and auditable by its users is not as straightforward as it may seem.

For example, RNG solutions derived from on-chain data such as block hashes can be subject to manipulation by blockchain miners, where they leverage their ability to order transactions into blocks as a means of temporarily delaying the publication of a random number input derived from a block has until it produces a more favorable outcome for them. On the other hand, RNG derived from off-chain providers like traditional APIs are opaque and provide no integrity guarantees that the API provider is remaining tamper-proof. Chainlink VRF is designed to mitigate both of these problems, which is especially critical as the amount of on-chain value being secured by randomness scales. 

On a technical level, Chainlink VRF works by combining block data that is still unknown when the VRF request is initiated with the oracle node’s pre-committed private key to generate both a random number and a cryptographic proof. The smart contract will only accept the random number input if it has a valid cryptographic proof, and a valid cryptographic proof can only be generated if the VRF process is tamper-proof. This provides users with automated and publicly verifiable assurances directly on-chain that each application using Chainlink VRF for randomness is provably fair and cannot be tampered with or predicted by the oracle, outside entities, or the application’s development team. 

For a technical walkthrough and in-depth understanding of the architecture and mathematics underpinning Chainlink VRF, refer to the Chainlink VRF blog post.

Combining Fantom and Chainlink VRF to Create Scalable, Low Cost dApps Enhanced by Randomness and Price Data

Through both Chainlink VRF and Chainlink Price Feeds, we’re confident that Fantom developers will have the most important oracle infrastructure building blocks needed to quickly construct and launch high-speed applications on the Fantom mainnet that function securely and reliably based on a wide variety of key inputs. Fantom’s EVM-compatible blockchain features high throughput, low transaction costs, and instant finality, which is critical for developers wanting major upgrades in scalability and cost-efficiency within their decentralized applications than what is obtainable on most Layer-1 blockchains. 

Developers can leverage Chainlink VRF within their dApp in many unique ways, including: 

  • Creating provably random NFT attributes for in-game items and characters
  • Distributing provably rare NFTs based on weighted probabilities 
  • Selecting random winners from DeFi LP pools to receive unique airdrops
  • Ordering participants fairly when there is high demand for limited access functions
  • Generating random gameplay elements like maps, critical hits, and matchmaking
  • Choosing participants from a DAO or network validators to make a key decision

We look forward to continuing working with Chainlink to create more ways that users can leverage oracles within their applications to offer innovative forms of value to users within new and existing markets. 

“Fantom continues to attract world-class developers building next-generation decentralized smart contract applications. Consequently, we wanted to scale up our infrastructure to include more secure and expansive tooling that enables new use cases and opportunities for developers,” stated Michael Kong, CEO of Fantom. “As such, we are actively integrating Chainlink Price Feeds and VRF because they are the industry’s leading oracle solutions for price data and verifiable randomness, ultimately empowering our developers to build highly advanced decentralized applications for industries like gaming, DeFi, NFTs, and more.”

“We are pleased to support Fantom as they integrate both Chainlink Price Feeds and Chainlink VRF to augment what developers can build on Fantom’s high-throughput, low-cost network,” commented Dan Kochis, Head of Partnerships at Chainlink Labs. “Chainlink’s flexible architecture and time-tested decentralized services give developers the ability to leverage external data and off-chain computation to create more meaningful user experiences that are fully integrated with the real world.” 

About Chainlink

Chainlink is the most widely used and secure way to power universally connected smart contracts. With Chainlink, developers can connect any blockchain with high-quality data sources from other blockchains as well as real-world data. Managed by a global, decentralized community of hundreds of thousands of people, Chainlink is introducing a fairer model for contracts. Its network currently secures billions of dollars in value for smart contracts across the decentralized finance (DeFi), insurance and gaming ecosystems, among others.

Chainlink is trusted by hundreds of organizations to deliver definitive truth via secure, reliable data feeds. To learn more, visit chain.link, subscribe to the Chainlink newsletter, and follow @chainlink on Twitter.

Docs | Discord | Reddit | YouTube | Telegram | Events | GitHub | Price Feeds | DeFi | VRF

About Fantom 

The Fantom Foundation is committed to building technology that is open-source, decentralized Dag-based distributed ledgers. We aim to create fast, secure, and scalable technologies across a wide range of industries, allowing organizations, businesses, and individuals to develop decentralized and secure applications, solving real-world problems.

Website | Docs | Research papers | Discord | Blog | Twitter | Reddit | Github

Read more

Card image cap
Fantom General Update | March 27, 2023
READ STORY
Card image cap
New Fantom Wallet is Here!
READ STORY
Card image cap
Fantom General Update | March 13, 2023
READ STORY
Card image cap
Fantom General Update | March 27, 2023
READ STORY
Card image cap
New Fantom Wallet is Here!
READ STORY
Card image cap
Fantom General Update | March 13, 2023
READ STORY
  • Technology
    • Intro to Fantom
    • Stake on Fantom
    • FTM token
    • The Consensus
    • Opera Chain
  • Tools
    • Fantom Wallets
    • Opera Explorer
  • Enterprise
    • Enterprise
    • Solutions
  • Ecosystem
    • About us
    • Partners and integrations
    • Blog
    • Podcasts and interviews
    • FAQ
    • Community
    • Careers
    • Media kit
  • Developers
    • Documentation
    • Technical papers
    • Covalent API
    • Verified contracts
    • DeFi Smart Contracts
    • GraphQL API
    • Frontend JS utilities
    • Developers’ chat
Social
  • Twitter
  • Discord
  • Telegram
  • Telegram ANN
  • Reddit
Fantom Logo

© 2023 Fantom Foundation

  • Cookie Policy
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

The information on this website is for informational purposes only. It contains high-level summaries and is not intended to include all material information regarding the Fantom ecosystem and risk factors associated with holding FTM.