链链链接费用是否随着请求的随机单词数量而增加?

发布于 2025-02-13 01:17:53 字数 227 浏览 0 评论 0原文

我正在编写一份智能合约,该合约需要通过链链接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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫﹏色ふ单纯 2025-02-20 01:17:53

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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文