链链链接费用是否随着请求的随机单词数量而增加?
我正在编写一份智能合约,该合约需要通过链链接VRF生成许多随机单词。
现在,根据Chailink VRFV2Consumer合同,您可以要求这样的随机单词数量:
uint32 numWords = 2;
我的问题是,如果您增加了请求的随机单词数量,或者费用会保持不变?我还没有看到任何对此的解释,所以我认为如果开发人员知道这将如何影响费用,这对他们会有所帮助。
I am writing a smart contract that requires a number of random words to be generated via the Chainlink VRF.
Now, according to Chailink VRFV2Consumer contract, you can request the number of random words like so:
uint32 numWords = 2;
My question is, will it cost more if you increase the number of random words requested or will the fees remain same? I haven't seen any explanation of this yet so I think it would be helpful for developers if they knew how this would impact the fees.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如他们在文档中提到的那样,这取决于您要求的随机值。
仔细阅读以下链接的文档。
汽油价格:
回调气:
验证气:
这些变量取决于当前的网络条件,您对回调气的指定限制以及请求中的随机值数量。仅在完成交易完成后,每个请求的成本才最终最终,但是您定义了愿意用于以下变量的请求的限制:
As they mentioned in their documents yes it depends on the number random values you asked.
Read the document linked below carefully.
https://docs.chain.link/docs/chainlink-vrf/
Gas price:
Callback gas:
Verification gas:
These variables depend on current network conditions, your specified limit on callback gas, and the number of random values in your request. The cost of each request is final only after the transaction is complete, but you define the limits you are willing to spend for the request with the following variables: