Welcome to Dev3
  • ➕Create a Dev3 App
  • 🤖SDK
    • 📖Introduction
    • ⚙️Initialization
    • ➡️Importing Contracts
    • 🤝User Authentication
      • Options
    • 🔍Query Contracts
      • Function Parameters
    • ⚡Execute Contracts
      • Execution Options
    • 🛠️Deploy Contracts
      • Deployment Options
    • 📖Address Book
    • ❓FAQ
      • Out of gas error
  • INTEGRATIONS
    • 🔷Chainlink Feeds
    • 🔷Chainlink Subscriptions
      • 🎲VRF Subscriptions
      • 🧮Functions Subscriptions
      • 🤖Upkeep Subscriptions
    • 🎆OriginTrail DKG
    • 📽️OriginTrail DKG Video Tutorial
    • 📊Polyflow Analytics
  • Pricing
    • 💸Dev3 Pricing Plans
    • 💸Polyflow Pricing Plans
  • 🚀Guides
    • 👾Launching an NFT Collection
      • Step 1: Upload assets
      • Step 2: Upload metadata
      • Step 3: Deploy contracts
  • 🏫Resources
    • 👨‍💻Developer Resources
Powered by GitBook
On this page
  • Introduction
  • Usage
  1. INTEGRATIONS
  2. Chainlink Subscriptions

VRF Subscriptions

Managing Chainlink VRF Subscriptions using the Dev3 tools.

PreviousChainlink SubscriptionsNextFunctions Subscriptions

Last updated 1 year ago

Introduction

is a provably fair and verifiable random number generator (RNG) that enables smart contracts to access random values without compromising security or usability. This module makes it easy to manage Chainlink Functions Subscriptions.

Usage

To start using this module, initialize the Dev3 SDK & Chainlink VRF instances first, like this:

import { Dev3SDK, VRFCoordinator } from "dev3-sdk";

var dev3: Dev3SDK;
var coordinator: VRFCoordinator;

async function init() {
    dev3 = new Dev3SDK("<your api key>", "<your project id>");
    coordinator = new VRFCoordinator();
    return coordinator.init();
}

init();

Once initialization function is finished, you can start using the VRF Subscriptions module by interacting with the coordinator object.

🔷
🎲
Chainlink VRF (Verifiable Random Function)