简体   繁体   中英

Is it possible to batch mint 10k NFTs in one transaction?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM