DISCLAIMER & TERMS: This website is owned and operated by Ten Fifteen, LLC. By using it and its associated smart contracts, you accept any and all risk and agree to waive any claims against Ten Fifteen, LLC and its owners/members for any reason. Do your own research on all contracts used in the Etheria ecosystem and carefully review the information in Metamask before executing transactions.
setName (and build data) gas cost explanation
💡 TL;DR To build cheaply, set the gas price low when you submit and wait for the network to fall into range. Don't try to adjust the gas limit.
Every time you submit a transaction to the Ethereum network, you have to pay the network for the privilege. The heavier your transaction, the more you have to pay. Different types of transactions have different costs: e.g. sending a normal ETH transaction has a different calculation (internally) than saving values to storage (like name+build) or deploying a contract.
For this type of Etheria name+artwork deployment transaction, in particular, we have observed the cost to closely follow this formula:
Number of hex chars in build data × 365 × current network gas price (in ETH) = Amount you pay (in ETH)
This page does this calculation automatically, but adds significant padding to the gas limit to make sure you don't run out of gas and have a failed transaction: 600x instead of 365x for the multiplier. BUT -- you will be automatically refunded the unused portion. So don't let the price tag that appears in MetaMask scare you; expect it to be about 60% of what's shown.
Additionally, extremely small builds (e.g. tests or existing build wipes) can have a higher gas multiple (the curve is not linear), so we've instituted a 600k gas limit minimum. In these cases, your actual spend may be far less than shown in the MetaMask window.
DO NOT ATTEMPT TO CHANGE THE GAS LIMIT. Changing the gas limit (a) doesn't save you any money and (b) may result in failed transactions.