是否可以在一次交易中批处理10K NFT?

发布于 2025-02-03 03:17:08 字数 116 浏览 3 评论 0原文

因此,我正在使用ERC1155,当批处理至少200多个NFT时,我总是会出现气体误差,这意味着该方法使用的气体超过了区块链的阻止气体极限。我想知道这是否正常。如果是这样,我应该将10K细分为多个交易。这还可以解决什么?

So I'm using ERC1155 and I always get the out of gas error when batch minting at least 200+ NFTs, which means that the gas used for that method exceeds the block gas limit of the blockchain. I'm wondering if this is normal. If so, should I subdivide the 10k into multiple transactions instead..? What else can be a workaround for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

看透却不说透 2025-02-10 03:17:08

是的,您不应该在单个TX上执行太多数据量。

有一些称为汇总的高级技术旨在增加交易量,但它们具有自己的考虑。

我认为这个问题没有本地解决方法,因为整个汽油动态是避免被垃圾邮件发送的网络。不建议写这些“巨大”数据。

一些“最近”的变化增加了动态限制,这些限制将块大小调整为当前的EVM链,但它们逐渐起作用。这意味着它们根据需求进行调整。

我今年早些时候检查了以太坊区块链接近10 TB。

Yes, you shouldn't do that much data volume on a single tx.

There are some advanced techniques called rollups that aim to increase the volume of transactions, but they come with their own considerations.

I don't think there is a native workaround to this issue as the whole gas dynamic is to avoid the network being spammed. Writing these "huge" volumes of data is discouraged.

Some "recent" changes have added dynamic limits that adjust block sizes to current EVM chains, but they work progressively. Meaning they adjust depending on demand across several blocks.

Ethereum blockchain was close to 10 TB last time I checked earlier this year.

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