Questions tagged [vrf]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

Read a variable from a onchain deployed contract

I was deploying a NFT and the VRF coordinator takes too much time to respond and I cant see if the _safemint function is working or not. Also i cant verify the contract on rinkeby.io Is there a way to ...
user avatar
0 votes
1 answer
30 views

Whenever i write some code in Chianlink VRF fulfillRandomWords function it does not get updated

I have already set my Subscriptions for Chainlink Added consumer and subscription have sufficient Link as well No Error occurs whenever I call the requestRandomWords function The chainlink ...
user avatar
0 votes
0 answers
49 views

Stuck in Chainlink VRF Randomness Function Implementation

[URGENT QUESTION] I am trying to get a random number in my contract. I have imported both VRFCoordinatorV2Interface.sol and VRFConsumerBaseV2.sol and inherited them in my contract. I am using the ...
user avatar
0 votes
1 answer
35 views

Pseudo Random generator based on real random seed

I have a big array of numbers and need to choose X of them randomly without repetition. I have a real random seed provided by an external oracle. Is there a known fair algorithm to create a pseudo ...
user avatar
  • 329
0 votes
1 answer
35 views

How chainlink oracle works incase of state update?

I was trying to understand this pizza sample build by Patrick Collins. so my understanding is that when we send a transaction (for example store which stores a user provided number) all the nodes in ...
user avatar
1 vote
1 answer
150 views

How Chainlink VRF fulfillRandomWords() callback function works?

I am using Chainlink VRF2 where I receive random numbers via a callback to this function: function fulfillRandomWords( uint256, /* requestId */ uint256[] memory randomWords ) internal ...
user avatar
  • 925
0 votes
0 answers
17 views

revert InvalidCalldata error VRFCoordinator

I am using a clone of the pancakeSwap lottery and attempting to use a write function. I keep getting an error in the BSC testnet VRFCoordinatorV2 contract saying revert InvalidCalldata();. The ...
user avatar
  • 11
0 votes
1 answer
58 views

VRF2 createSubscription() help

I am very new to Solidity and Blockchain, have a background of Web Developer though, and as many i am following the Youtube video on these technologies by freeCodeCamp.org channel, where the VRF v1 is ...
user avatar
0 votes
1 answer
252 views

Chainlink VRF - fee costs

I am giving my first steps into chainlink more precisly with VRF v2 but I have some doubts regarding the fees costs. I would prefer to have a concrete value of the costs per request. in this article I ...
user avatar
  • 3
0 votes
1 answer
319 views

How to mint one or more randomly selected token ids on ERC1155 using Chainlink VRF?

I'm looking to have an ERC1155 smart contract with a set number of tokens, each with their own max supply, and when a user mints it selects randomly from the available tokens. Creating the 5 tokens (...
user avatar
  • 1
0 votes
1 answer
185 views

Why does getting random numbers using Chainlink take more than 30 seconds?

I'm writing an article and I'm using Chainlink VRF in one part. Theoretically, this is a two-transaction process, as it is impossible to storethe cryptographic proof on the blockchain and read the ...
user avatar
  • 141
0 votes
0 answers
43 views

The endLottery function doesn't work on rinkeby from freecodecamp's video

so i was following that 'beginners to expert' video and my lottery contract works fine on kovan but on rinkeby the "start" and "enter" functions work but the "endLottery" ...
user avatar
  • 1
0 votes
1 answer
33 views

what is the chainlink VRF randomness details for xDai/Gnosis chain?

I looked into docs of chainlink but I couldn't find the VRF details for xDai/Gnosis chain network. Could you please help me find the following details? Chainlink VRF Coordinator address: LINK token ...
user avatar
  • 62
0 votes
1 answer
808 views

Random-order minting of ERC721 tokens

Problem is minting of tokens in random order. I would like to hear more about drawbacks of these approaches: Having: 10.000 NFT collectibles amongst them there are rare ones images are clearly ...
user avatar
  • 1
1 vote
1 answer
64 views

How much can I trust on the truffle test gasUsed value?

I'm trying to guarantee that I'm not going to require more than the 200k gas limit on VRF fulfillrandomness call. I'm running the truffles test and they present to me gasUsed on the txn value of the ...
user avatar
1 vote
0 answers
83 views

Chainlink VRF requestRandomness returning a requestId of 0

Would it be possible for Chainlink VRF's requestRandomness(bytes32 keyHash, uint256 fee) method to return a value of 0 as the request ID? I'm not sure if the VRF returns incremental request IDs.
user avatar