This is the discussion thread for EIP-8487 (PR: Add EIP: Separate execution credits and billing credits by Giulio2002 · Pull Request #12637 · ethereum/EIPs · GitHub).
The proposal introduces two counters, both initialized from tx.gasLimit:
- Credits follow the legacy gas schedule and are the only gas the EVM sees (GAS opcode, call forwarding, creation).
- Billing follows the new schedule and determines the transaction fee.
If billing runs out, the whole transaction aborts (uncatchable), even if credits remain. The goal is to let opcodes be repriced without changing execution behavior for contracts that inspect or forward gas.
Open questions: the exact schedules, charge points, rebate rules, receipt fields and block accounting. Feedback welcome.
The ERC-4337 EntryPoint charges each UserOp from gasleft() deltas, and Safe’s handlePayment does the same for relayed execTransaction calls, so both pay the bundler or relayer back in credits while it is billed on the new schedule. The draft says reimbursement contracts must tell the two apart, but with billing invisible to contracts none of them can. After a repricing up, a user who fills an op with the repriced operations has the bundler pay the difference on every op, with no abort involved.
Batches have the same gap. A bundler caps each op with callGasLimit, which is credits, so nothing per op bounds its billing, and one op that drains billing aborts the whole bundle at the full tx.gasLimit. A published bound on billing cost over credit cost per operation would let both add a fixed margin. A read-only view of remaining billing would go further, though that’s a contract-visible budget the rationale avoids on purpose.