Skip to main content

Questions tagged [vrf]

1 vote
2 answers
101 views

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 ...
Hamza's user avatar
  • 21
0 votes
0 answers
27 views

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 ...
hacking 724's user avatar
0 votes
2 answers
49 views

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 ...
jaseem's user avatar
  • 35
0 votes
1 answer
68 views

pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@chainlink/contracts/...
shreyash1611peep's user avatar
0 votes
1 answer
95 views

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 ...
Yan's user avatar
  • 158
0 votes
1 answer
84 views

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 ...
Rohit Jambhulkar's user avatar
0 votes
1 answer
50 views

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 ...
Ota Repo's user avatar
0 votes
1 answer
95 views

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 ...
Tucan's user avatar
  • 3
0 votes
0 answers
43 views

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 ...
Helia Marami's user avatar
1 vote
1 answer
57 views

Here Is my 01-Deploy-raffle.js Code const { network } = require("hardhat"); const { ethers } = require("hardhat"); const { networkConfig, developmentChains, ...
Apex Aryan's user avatar
0 votes
3 answers
153 views

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 ...
szaleju's user avatar
0 votes
1 answer
37 views

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 ...
Jake Tawagon's user avatar
0 votes
1 answer
260 views

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 ...
Suhyeon's user avatar
1 vote
1 answer
48 views

def addCustomerAndFundsub(_subId, _cunsumerContract): account = get_account() if network.show_active() in LOCAL_BLOCKCHIAN_ENVIROMENTS: VRF_contract = VRFCoordinatorV2Mock[-1] else:...
Rhaegar's user avatar
  • 31
1 vote
0 answers
37 views

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 ...
ChristianOConnor's user avatar

15 30 50 per page