Questions tagged [vrf]
The vrf tag has no summary.
60 questions
1 vote
2 answers
101 views
Why is Chainlink VRF request costing me over 120 LINK on Sepolia testnet?
I'm working on a smart contract using Chainlink VRF v2 on Sepolia. I've funded my subscription with 15 LINK, and here's the situation: I called requestRandomWords() after buyTicket(). The Keeper ...
0 votes
0 answers
27 views
🐛Giveaway Fails with `UNPREDICTABLE_GAS_LIMIT` Error
Summary When attempting to finalize a giveaway by calling requestRandomWinner from the frontend, the transaction fails with a UNPREDICTABLE_GAS_LIMIT error, indicating a possible revert or failed ...
0 votes
2 answers
49 views
I need some help in setting up the vrf programmatically
I'm working on a factory contract and I need all the child-contracts to instantly have a vrf subscription created upon deployment. Right now I have kinda hardcoded the config values of a subscription ...
0 votes
1 answer
68 views
How do i update this code from vrf version 2 to version 2.5 with the subscription id changes and everything?
pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@chainlink/contracts/...
0 votes
1 answer
95 views
What is the VRF input value of the Chainlink VRF off-chain operator?
A VRF accepts a value as input, and produces an output (i.e., the pseudorandom number) and its proof (via DSA). From Chainlink's documentation, I can't find what the off-chain operator uses as the ...
0 votes
1 answer
84 views
Unable to Execute VRF 2.5 Function in solidity
Im building a candle auction smart contract for my internship assignment, for getting complete random end time of the auction I'm using random number generator from chainlink. However when executing ...
0 votes
1 answer
50 views
VRF subscription sepolita testnet
i'm new on ethereum. I followed the following guide: https://docs.chain.link/vrf/v2-5/subscription/get-a-random-number and everything seems to have gone fine. but after 15 hours the process is still ...
0 votes
1 answer
95 views
Invalid type for argument in function call. Invalid implicit conversion from literal_string "" to bytes calldata requested
I'm doing the course of Patrick Collins to learn about programming in Solidity; but some libraries from Chainlink has been changed since 2 years ago. So, when I try to compile the code I have the next ...
0 votes
0 answers
43 views
VRF v2 for makeing randomnes number
I am trying to write a contract that generates a randomness number for some users who are going to mine (digging) in my game, and by chance one of them may find the random number and mine it and win ...
1 vote
1 answer
57 views
Cannot read properties of undefined (reading 'vrfCoordinatorV2')
Here Is my 01-Deploy-raffle.js Code const { network } = require("hardhat"); const { ethers } = require("hardhat"); const { networkConfig, developmentChains, ...
0 votes
3 answers
153 views
Chainlink VRF Contract Logic Error
I am beginning my journey in web3 so please be understanding 🙂 I am struggling to find an issue in my contract that uses VRF. It is a simple coinflip written in Vyper. I have deployed a consumer and ...
0 votes
1 answer
37 views
How to guarantee or ensure uniqueness based on Chainlink VRF?
I am using Chainlink VRF V2 to generate 10 random numbers. Assuming VRF generated something like this below. [ 111.., 222.., 333.., 444.., 555.. 666.., 777.., 888.., 999.., 000..] As best practice to ...
0 votes
1 answer
260 views
Why did Ethereum choose RANDAO rather than VRF for PoS?
I think RANDAO and VRF have different pros and cons for constructing a random number. And I read that RANDAO is very useful when it comes with VDF. But RANDAO is currently adapted without VDF (but ...
1 vote
1 answer
48 views
Call fundSubcription() chain link vrf v2 using brownie gas fee error?
def addCustomerAndFundsub(_subId, _cunsumerContract): account = get_account() if network.show_active() in LOCAL_BLOCKCHIAN_ENVIROMENTS: VRF_contract = VRFCoordinatorV2Mock[-1] else:...
1 vote
0 answers
37 views
I can't get API3 QRNG to select a random enum value and mint an NFT based on this enum choice
I tried to make a contract that mints a token from an enum of options https://gist.github.com/ChristianOConnor/0ae15b021521c9583dde6c3cc782d4d3. This code fails at every turn. I started with the code ...