What affects the total cost for a smart contract?

When I run my smart contract i get a final cost of: 0.004372070241743568 ETH. What affects the final cost and how could I make it more costly? Let’s say that I want the final cost to be 3.0 ETH. How could i achieve this final cost?

1 Like

hey, out of curiosity, why would you like to make it more costly ? In general people aim to get it more efficient in terms of gas requirements. It all depends on what your contract does and how efficient is the solidity code written, the more EVM works to execute it (processing + storage) the more it costs. This should be a good starting point [Solidity] Optimize Smart Contract Gas Usage | by Yi-Cyuan Chen | JOYSO | Medium

2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.