简体   繁体   中英

NFT smart contract where NFTs keep being added over time. Does every addition necessarily cost gas?

The title sums it up. I was thinking of doing a erc721 contract where I'd keep adding overtime, instead of all at once. The question is, every time I add an NFT to the contract, I'd have to pay gas, this being on Ethereum. Is there any way where I could post the contract and keep adding NFTs to it post contract submission, without paying gas?

The EVM allows contract state changes (eg writing the new token owner and metadata to the contract storage) only as a result of a transaction.

And to answer your question - yes, transactions always require gas to be mined.

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