Risk Warning: Beware of illegal fundraising in the name of 'virtual currency' and 'blockchain'. — Five departments including the Banking and Insurance Regulatory Commission
Information
Discover
Search
Login
简中
繁中
English
日本語
한국어
ภาษาไทย
Tiếng Việt
BTC
ETH
HTX
SOL
BNB
View Market
Chainlink VRF v2 is officially launched, explaining the advantages of the new version in five aspects
Chainlink
特邀专栏作者
2022-02-17 11:08
This article is about 3633 words, reading the full article takes about 6 minutes
This article will explore the main advantages of Chainlink VRF v2 and share some use cases of verifiable random number implementation.

Chainlink Verifiable Random Function (VRF)Chainlink Verifiable Random Function (VRF)smart contractsmart contractAnd the off-chain system provides random numbers, and guarantees its encryption security, transparency and verifiable fairness.

Since its launch, Chainlink VRF has completed more than three million requests, covering multiple blockchain networks such as Ethereum, Polygon, and Binance Smart Chain, providing verifiable random numbers for more than 2,300 smart contracts. Chainlink VRF uses an advanced encrypted submission mechanism to provide dApps with tamper-proof random numbers on the chain, to ensure security for the casting and issuance of NFT, to ensure fair results for blockchain games, and to achieve DeFi and DAO governance, etc. A series of rich application scenarios.

Chainlink VRF has undergone extensive and in-depth research and received feedback from numerous users. Here, we are very pleased to announce the official launch of Chainlink VRF v2. Chainlink VRF v2 is an improved version of the currently widely used RNG solution. It provides a more powerful random number solution for smart contract developers. Developers can more easily configure and extend nonce requests. Additionally, the cost of requesting transactions can be reduced by as much as 60%. The release of Chainlink VRF v2 marks the first step towards a self-service development, access and management model for Chainlink decentralized services.

Explore the Chainlink VRF subscription app

developer documentationdeveloper documentationfirst level title

secondary title

1. Expand the pay-as-you-go scale: improve the cost-effectiveness of random number requests

Chainlink VRF v2 launched the subscription management smart contract application (subscription management app) for the first time. The smart contract can be recharged in advance, and the fee for the random number request can be deducted from the LINK token balance. Users do not need to send LINK tokens for each request, so the gas fee for VRF requests can be reduced by up to 60%.

image description

secondary title

2. Flexible setting of gas fee upper limit for random number callback: developers have more flexibility

Users of Chainlink VRF v2 can flexibly set a gas fee limit for verifiable random numbers sent back to smart contract applications. In this way, smart contract applications can execute more complex code logic in the same transaction that receives the verifiable nonce. Therefore, critical random number tasks can be performed even under extremely congested conditions, which will bring greater stability and flexibility to dApp developers.

secondary title

3. Flexible configuration: users have more permissions to define security parameters

Users of Chainlink VRF v2 can define how many blocks must be confirmed after initiating a request transaction to generate a verifiable random number and send it to the chain. This parameter has a minimum of 3 blocks and a maximum of 200 blocks, and covers all testnets and mainnets. In Chainlink VRF v1, the parameter on Ethereum is fixed at 10 blocks.

The development team can flexibly configure block confirmation parameters, which can perfectly balance security and performance, avoid block reorganization, and reduce request response delay, so it can meet the specific application needs of each development team. For more information about this parameter configuration, please seesecondary title

4. More random numbers can be requested at one time: multiple random number results can be generated in a single request

Chainlink VRF v2 improves the VRF coordination smart contract, users can request multiple random numbers (multi-word) in one chain transaction, so the experience is smooth and the cost is lower. In addition, multiple random numbers can also be sent back to the chain in one transaction, further reducing costs and response delays.

secondary title

5. Unified billing: one subscription contract binds multiple addresses

Chainlink VRF v2 allows up to 100 smart contract addresses to recharge and pay random number requests to the same LINK subscription contract. The subscription balance is managed uniformly by the subscription contract administrator.

image description

first level title

Common Chainlink VRF Use Cases

35 Blockchain Random Number Generator (RNG) Use Cases for Chainlink VRF35 Blockchain Random Number Generator (RNG) Use Cases for Chainlink VRFsecondary title

Minting NFTs fairly

image description

secondary title

Random airdrop NFT and treasure chest

image description

secondary title

Sweepstakes and Community Giveaways

image description

secondary title

PVP battle

image description

secondary title

to sort

image description

first level title

Develop applications using Chainlink VRF

Chainlink VRF v2 can greatly improve cost-effectiveness and usability, so developers can more easily create advanced smart contract applications to ensure unpredictable and fair game results. The above is just an introduction, sharing some use cases that verifiable random numbers can achieve. We believe there are countless potential use cases yet to be explored.

If you're a developer and want to quickly connect your app toChainlink VRFand join us atdeveloper documentationand join us atDiscordContact a Chainlink ExpertContact a Chainlink Expert

Explore the Chainlink VRF subscription app

We hope developers will integrate Chainlink VRF v2 into their applications along with other Chainlink decentralized services. Developers can useChainlink KeepersAutomatically execute on-chain transactions based on predefined conditions, such as: start/end the game at a specific point in time; useChainlink Price FeedsDetermine the current market value of game assets; useChainlink Data FeedsCross-Chain Interoperability Protocol (CCIP)Cross-Chain Interoperability Protocol (CCIP)Cross-chain assets and create cross-chain smart contracts.

We would like to thank all of the following projects that participated in VRF v2 beta testing:

Mechanized Abstractions, Polyroll, Decentral Games, Aavegotchi, Coin98, PolyWantsACracker, Gains Farm, PoolTogether, Yarloo, BetSwirl, Magic Beasties, Fantasy Arena, Black Eye Galaxy, Crypto Unicorns, JayPigs, Elemon, 0xCord, DigiBudz, BiFrost, PolyFight, DogeVille, MGG, Ridotto, LuckyChip, DexKit, HexTech, InuWars, DestinyDAO。

Chainlink
Welcome to Join Odaily Official Community