-
is it enough paying some fee to deploy and maintain a smart contract forever? what about the "hosting" costs of contracts? if there's no cost for hosting smart contracts then blockchains will keep dead/inactive contracts forever and this would be result in a higher cost of maining blockchains. any answer would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
@timgeil There is no cost for hosting a smart contract, there is only one cost and that is a gas fee that you pay when you deploy your contract. Yes, the dead/inactive contracts stay in the blocks as a transaction, because deploying a contract is also a transaction. And yes, the nodes that keep the data also keep that dead/inactive contracts like other transactions. |
Beta Was this translation helpful? Give feedback.
-
Hey @timgeil well technically, there is no hosting fee, just the fee you incur when performing a transaction that deploys the contract. Afterwards, you don't pay anything if you just let it sit there. However, people will still incur cost (gas fees) when they interact with your contract. The blockchain is sustainable in the long run because the gas fees gets paid to miners who ensure continuity of the blockchain. |
Beta Was this translation helpful? Give feedback.
-
"is it enough paying some fee to deploy and maintain a smart contract forever? what about the "hosting" costs of contracts?" The only costs involved are for deploying the contract. "if there's no cost for hosting smart contracts then blockchains will keep dead/inactive contracts forever" Yes, they are kept forever, that indeed is the point of blockchains. "and this would be result in a higher cost of maining blockchains." You are correct. This is so because the storage to compute increases linearly with time, and will keep on increasing and thereby it will be harder to store the full state of the blockchain. Several protocols, like NEAR, have introduced a checkpointing scheme where the nodes do not have to store the full state of the blockchain--only the ones necessary to prove that the block is valid. |
Beta Was this translation helpful? Give feedback.
-
It's weird that there's no/little development on this yet while just one smart contract can take equal storage to thousands of token transactions. That means the data of any blockchain might be enormous in the long run. We'll have 3 btc halving in the next 10 years and halving periods make blockchain development trend skyrocket and end up with thousands of new smart contracts deployed to the mainnets. |
Beta Was this translation helpful? Give feedback.
"is it enough paying some fee to deploy and maintain a smart contract forever? what about the "hosting" costs of contracts?" The only costs involved are for deploying the contract.
"if there's no cost for hosting smart contracts then blockchains will keep dead/inactive contracts forever" Yes, they are kept forever, that indeed is the point of blockchains.
"and this would be result in a higher cost of maining blockchains." You are correct. This is so because the storage to compute increases linearly with time, and will keep on increasing and thereby it will be harder to store the full state of the blockchain. Several protocols, like NEAR, have introduced a checkpointing scheme where the no…