When I adjusted the transaction fee in my wallet, I almost mistook the Gas Limit for the final charge. @Dusk Dusk breaks the fee into Gas Limit and Gas Price: the former limits the amount of computation the transaction can use, while the latter sets the price per unit of Gas in LUX. The amount actually paid is gas_used × gas_price. On the mainnet, 1 DUSK equals 1 billion LUX, and unused allowance is not charged.
I think of it like a restaurant card pre-authorization. Gas Limit is the spending cap, Gas Price is the unit price for each “step” of the process, and gas_used is the amount of work the kitchen actually completes. Leaving a higher allowance only increases the execution buffer; if the contract runs out of Gas midway, the transaction will revert, and the Gas already spent still needs to be paid—this money won’t buy you a successful on-chain result.
Before I press confirm, I check whether it’s a regular transfer or a contract call, then verify that the Gas Limit can cover the execution path, and I cross-check the Gas Price against my DUSK balance. Lowering the limit won’t reduce the unit cost; it only increases the chance of failure. Raising the unit price blindly also amplifies the cost of every step. My operating habit is very consistent: for complex calls, I leave some headroom, and I set a fee cap that I can tolerate.
#dusk $DUSK
I think of it like a restaurant card pre-authorization. Gas Limit is the spending cap, Gas Price is the unit price for each “step” of the process, and gas_used is the amount of work the kitchen actually completes. Leaving a higher allowance only increases the execution buffer; if the contract runs out of Gas midway, the transaction will revert, and the Gas already spent still needs to be paid—this money won’t buy you a successful on-chain result.
Before I press confirm, I check whether it’s a regular transfer or a contract call, then verify that the Gas Limit can cover the execution path, and I cross-check the Gas Price against my DUSK balance. Lowering the limit won’t reduce the unit cost; it only increases the chance of failure. Raising the unit price blindly also amplifies the cost of every step. My operating habit is very consistent: for complex calls, I leave some headroom, and I set a fee cap that I can tolerate.
#dusk $DUSK
