EIP-7768 Transactions and tips sent without ether (No-Ether transactions with free-for-all tips)
No call decision · Fees & gas · EIP status Stagnant · created 2024-09-14
Proposes a way for an account with no ether at all to sign and send a transaction directly with its own key, with a block producer covering the gas fee in exchange for a reward received via a "free-for-all bucket."
Why it is needed
There is strong demand for third-party-pay transactions, meaning transactions where someone else covers the gas fee on another's behalf. But most existing proposals either require changing the Ethereum client itself or require the transaction to be sent with a separate account's tx.origin rather than the original user's. If tx.origin changes, problems can arise in transactions where who directly called matters, such as ERC-721's setApprovalForAll. Without changing the client at all, this EIP aims to standardize a way for an account with no ether to send a transaction while keeping its own tx.origin, using only the existing mempool and block-building process, and to pay the block producer for the service.
What changes
Today
- An account with no ether at all cannot pay gas fees and so cannot send a transaction.
- Existing methods of paying gas on someone's behalf either require client changes or execute the transaction under a different account's tx.origin rather than the original account's.
After EIP-7768
- An account with no ether can still send a transaction signed directly with its own key as is, with the block producer covering the gas fee instead.
- The block producer checks and reclaims rewards, such as tokens, sent to a well-known address called the "free-for-all bucket" to cover the cost.
- The client code is not changed at all, and the transaction's tx.origin remains the user's own.
Who is affected
- Users with no ether: Even with no assets at all, a user can send a transaction directly with their own account key and have it executed by paying for it.
- Wallet & app developers: Because tx.origin is preserved, features that depend on the caller's identity, such as setApprovalForAll, can support gas sponsorship without being affected.
- Block producers (builders, proposers): They must implement their own logic for advancing the gas fee and reclaiming the reward, as well as the decision to roll back the block when the economics do not work out.
- Client teams: This proposal uses existing client behavior as is, so no separate implementation work is needed.
In depth
Why it is needed
There is strong demand for third-party-pay transactions, and this is being discussed on Ethereum as well as competing networks. But most existing proposals require either a change to the Ethereum client itself or require the transaction to use a separate account's tx.origin rather than the original user's when sent. This EIP instead proposes a solution that works with only existing clients and technology, preserving the tx.origin of the person who originally sent the transaction, and seeks to standardize it.
The end user's (Alice's) procedure
Alice first prepares and signs the transactions she wants to execute. To get paid, she arranges for a well-known address called the "free-for-all bucket" to end up holding tokens such as ERC-20, ERC-721, or ERC-1155 by the time these transactions finish. The nonce order must be chosen carefully here, since in practice none of the transactions might execute, or only the first, or only the first and second, or only up through the Nth but not the last, or all of them might execute in sequence. Finally, Alice sends this bundle of transactions to a service that communicates with block producers, since the mempool of an ordinary baseline client does not propagate transactions like these.
The block producer's procedure
The block builder first signs a transaction sending ether to Alice, based on the current gas price and block size. If needed, it also prepares a transaction that preloads a response into the preloadable account. It then opens an execution context, includes this ether-transfer transaction along with all of Alice's transactions, checks any reward (such as tokens) that arrived at the preload contract address, and includes a transaction to claim that reward. After evaluating the total gas used, it rolls back the context and repeats, this time sending only as much ether as actually required. If the reward received on the second pass differs from the amount expected on the first pass, it aborts. It compares the ether spent against the reward received, and if favorable, commits this execution context as is into the block; otherwise it rolls back. This judgment can feed into a reputation-tracking system used later when evaluating similar transactions.
free-for-all bucket contract
This approach must let a user send a reward without knowing who the block builder is, while still letting the block builder actually receive that reward. To achieve this, it proposes using a single well-known contract account. Its interface performs a call specified by execute(address recipient, bytes memory, uint256 gasLimit, uint256 value), and preloadExecutions(bytes[] memory) prepares the values this contract will return when called N times later within the same block (the source marks this part as '[TODO: spell this out]', so it has not yet been made concrete). The fallback() function returns the next value in order among those prepared via preloadExecutions.
Design rationale and alternatives considered
This approach is useful for users who do not want to, or cannot, put ether into their account. It also preserves the transaction's original tx.origin as the actual user, so it still works for transactions where the caller's identity matters, such as ERC-721's setApprovalForAll. However, it may use more gas than approaches that modify the consensus client or swap tx.origin for a different account. Alternatives considered included amending EIP-1559 to allow transactions with a gasPrice of 0 while having the block builder burn an equivalent amount of gas in the same block, creating a new transaction type that wraps a single signed transaction, and creating a new opcode that fetches the next block's coinbase.
Status and remaining work
This EIP is of Meta type and is currently Stagnant. It was written on 2024-09-14, and the source's Backwards Compatibility and Security Considerations sections are both left as TODO and have not been filled in. How preloadExecutions behaves is likewise only marked '[TODO: spell this out]' and has not been concretely defined. In other words, discussion stalled before the specification itself was completed, so the content may still be fleshed out or changed.