{"eip":7768,"title":"No-Ether transactions with free-for-all tips","description":"Externally-owned account having no Ether can send transactions and pay tips using a new \"free-for-all\" bucket","authors":["William Entriken (@fulldecent)"],"status":"Stagnant","type":"Meta","created":"2024-09-14","discussionsTo":"https://ethereum-magicians.org/t/eip-7768-no-ether-transactions-with-free-for-all-tips/21108","repo":"EIPs","label":"EIP-7768","officialUrl":"https://eips.ethereum.org/EIPS/eip-7768","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7768.md","url":"https://eips.huatuo.xyz/eip-7768/","tldr":{"en":"A no-protocol-change scheme where an account with zero ETH still sends its own transactions: the block builder fronts the gas and is paid in tokens left at a shared 'free-for-all' contract.","ja":"プロトコル変更なしで、ETH ゼロのアカウントが自分でトランザクションを送れるようにする方式。ブロックビルダーがガスを立て替え、共有の「free-for-all」コントラクトに残されたトークンで支払いを受ける。","ko":"프로토콜 변경 없이, ETH가 0인 계정도 직접 트랜잭션을 보낼 수 있게 하는 방식. 블록 빌더가 가스를 대신 내 주고, 공용 \"free-for-all\" 컨트랙트에 남겨 둔 토큰으로 보상을 받는다.","zh":"一种无需修改协议的方案：ETH 余额为零的账户也能自己发送交易，区块构建者垫付 gas，并以留在共享\"free-for-all\"合约中的代币获得报酬。"},"tags":["gas","sponsorship","meta","mev","ux"],"explainers":{"en":{"lang":"en","tldr":"A no-protocol-change scheme where an account with zero ETH still sends its own transactions: the block builder fronts the gas and is paid in tokens left at a shared 'free-for-all' contract.","tags":["gas","sponsorship","meta","mev","ux"],"related":[1559,4337,7702,2771],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7768/","markdown":"## What problem does it solve?\n\nA new user who receives tokens but no ETH cannot do anything with them: every transaction needs ETH for gas. Existing fixes either need protocol changes, or have a different account submit the transaction (relayers, [ERC-4337](/eip-4337/) bundlers), which changes `tx.origin`. Some actions, such as an [ERC-721](/eip-721/) `setApprovalForAll` from an EOA, care about who the real originator is.\n\nEIP-7768 (a Meta EIP) describes a technique that works with today's clients and keeps `tx.origin` as the user: the block builder gives the user just enough ETH inside the same block, and collects payment in tokens.\n\n## How it works\n\n**User side**\n\n1. Alice, with no ETH, signs one or more ordinary transactions with consecutive nonces.\n2. To pay, one of them (normally the last) sends tokens, such as [ERC-20](/eip-20/), ERC-721 or [ERC-1155](/eip-1155/), to a well-known **free-for-all contract**.\n3. She must assume any prefix of her transactions might be executed: none, the first, the first two, and so on.\n4. She sends the bundle to a service that talks to block builders. Normal mempools will not relay these transactions, because her account has no ETH to pay gas.\n\n**Builder side**\n\n1. In a scratch execution context, insert a transaction sending Alice ETH to cover gas, then Alice's transactions.\n2. See what consideration landed in the free-for-all contract, and add a transaction that claims it.\n3. Measure the gas actually used, roll back, and replay with the exact ETH amount, aborting if the payment differs.\n4. If the payment is worth more than the ETH fronted, keep the result in the block; otherwise discard it, and possibly lower the sender's reputation.\n\nThe free-for-all contract has no owner. Whoever builds the block can sweep what is in it, so payment reaches the builder without Alice needing to know who that will be.\n\n## Sample code\n\nIllustrative shape of the shared contract (the spec's interface is still rough):\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IFreeForAll {\n    /// Anyone (in practice: the block builder) can make the bucket call out,\n    /// e.g. to transfer tokens it holds to themselves.\n    function execute(address recipient, bytes calldata data, uint256 gasLimit, uint256 value) external;\n\n    /// Pre-set return values for the next N calls to this contract in this block.\n    function preloadExecutions(bytes[] calldata responses) external;\n}\n```\n\nAlice's bundle, conceptually:\n\n```text\nnonce 7: router.swap(...)                      // the action she wants\nnonce 8: usdc.transfer(FREE_FOR_ALL, 2e6)      // tip: 2 USDC for the builder\n```\n\n## Things to know\n\n- Status is **Stagnant**, and the spec still has TODOs: the `preloadExecutions` behaviour, backward compatibility and security considerations are unfinished. No canonical free-for-all contract address is defined.\n- Because the bucket is open to anyone, tips are only safe if the builder sweeps them in the same block; tokens left there can be taken by whoever acts first.\n- Builders must simulate twice and take on risk, so in practice this depends on builders choosing to support it. It is not a guarantee of inclusion.\n- Alternatives listed in the spec include allowing zero-gas-price transactions under [EIP-1559](/eip-1559/) if the builder burns the equivalent, or a wrapper transaction type. Since Pectra, [EIP-7702](/eip-7702/) delegation also lets a sponsor pay gas on behalf of an EOA, through a different mechanism.\n"},"ja":{"lang":"ja","tldr":"プロトコル変更なしで、ETH ゼロのアカウントが自分でトランザクションを送れるようにする方式。ブロックビルダーがガスを立て替え、共有の「free-for-all」コントラクトに残されたトークンで支払いを受ける。","tags":["gas","sponsorship","meta","mev","ux"],"related":[1559,4337,7702,2771],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7768/","markdown":"## 何を解決するのか\n\nトークンを受け取ったが ETH がない新規ユーザーは、そのトークンで何もできません。すべてのトランザクションにガス用の ETH が必要だからです。既存の解決策は、プロトコルの変更を必要とするか、別のアカウントにトランザクションを送信させる（リレイヤー、[ERC-4337](/eip-4337/) の Bundler）もので、後者は `tx.origin` を変えてしまいます。EOA からの [ERC-721](/eip-721/) `setApprovalForAll` のように、本当の発信者が誰かを気にする操作もあります。\n\nEIP-7768（Meta EIP）は、現在のクライアントで動作し、`tx.origin` をユーザーのままに保つ手法を説明します。ブロックビルダーが同じブロック内でユーザーに必要なだけの ETH を渡し、支払いをトークンで回収します。\n\n## 仕組み\n\n**ユーザー側**\n\n1. ETH を持たない Alice が、連続した nonce を持つ 1 つ以上の通常のトランザクションに署名します。\n2. 支払いのため、そのうちの 1 つ（通常は最後）が、[ERC-20](/eip-20/)、ERC-721、[ERC-1155](/eip-1155/) などのトークンを、よく知られた **free-for-all コントラクト**に送ります。\n3. 彼女は、トランザクションの任意の先頭部分が実行されうると想定しなければなりません。何も実行されない、最初の 1 つだけ、最初の 2 つ、というようにです。\n4. 彼女はそのバンドルを、ブロックビルダーとやり取りするサービスに送ります。通常のメンプールは、アカウントにガスを払う ETH がないため、これらのトランザクションを中継しません。\n\n**ビルダー側**\n\n1. 使い捨ての実行コンテキストで、ガスをまかなう ETH を Alice に送るトランザクションを挿入し、続けて Alice のトランザクションを実行します。\n2. free-for-all コントラクトにどんな対価が入ったかを確認し、それを請求するトランザクションを追加します。\n3. 実際に使われた gas を測定し、ロールバックして、正確な ETH 額でリプレイします。支払額が異なる場合は中止します。\n4. 支払いの価値が立て替えた ETH を上回るなら、その結果をブロックに含めます。そうでなければ破棄し、場合によっては送信者の評判を下げます。\n\nfree-for-all コントラクトには owner がありません。ブロックを構築した人なら誰でも中身を引き出せるため、Alice は誰がそれを行うかを知らなくても、支払いはビルダーに届きます。\n\n## サンプルコード\n\n共有コントラクトの形のイメージ（仕様のインターフェースはまだ粗削りです）:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IFreeForAll {\n    /// Anyone (in practice: the block builder) can make the bucket call out,\n    /// e.g. to transfer tokens it holds to themselves.\n    function execute(address recipient, bytes calldata data, uint256 gasLimit, uint256 value) external;\n\n    /// Pre-set return values for the next N calls to this contract in this block.\n    function preloadExecutions(bytes[] calldata responses) external;\n}\n```\n\nAlice のバンドルを概念的に示すと:\n\n```text\nnonce 7: router.swap(...)                      // the action she wants\nnonce 8: usdc.transfer(FREE_FOR_ALL, 2e6)      // tip: 2 USDC for the builder\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** で、仕様には TODO が残っています。`preloadExecutions` の挙動、後方互換性、セキュリティ上の考慮事項は未完成です。正規の free-for-all コントラクトのアドレスも定義されていません。\n- バケットは誰にでも開かれているため、チップが安全なのは、ビルダーが同じブロック内でそれを回収する場合に限られます。そこに残されたトークンは、最初に動いた人が持っていけます。\n- ビルダーは 2 回シミュレーションしてリスクを負う必要があるため、実際にはビルダーが対応を選ぶかどうかに左右されます。取り込まれることの保証ではありません。\n- 仕様に挙げられている代替案には、ビルダーが同等額をバーンするなら [EIP-1559](/eip-1559/) でガス価格ゼロのトランザクションを許可する方法や、ラッパー用のトランザクションタイプがあります。Pectra 以降は、[EIP-7702](/eip-7702/) の委任により、別の仕組みでスポンサーが EOA に代わってガスを支払うこともできます。\n"},"ko":{"lang":"ko","tldr":"프로토콜 변경 없이, ETH가 0인 계정도 직접 트랜잭션을 보낼 수 있게 하는 방식. 블록 빌더가 가스를 대신 내 주고, 공용 \"free-for-all\" 컨트랙트에 남겨 둔 토큰으로 보상을 받는다.","tags":["gas","sponsorship","meta","mev","ux"],"related":[1559,4337,7702,2771],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7768/","markdown":"## 어떤 문제를 해결하나요?\n\n토큰은 받았지만 ETH가 없는 신규 사용자는 아무것도 할 수 없습니다. 모든 트랜잭션에 가스용 ETH가 필요하기 때문입니다. 기존 해결책은 프로토콜 변경이 필요하거나, 다른 계정이 트랜잭션을 제출하는 방식(릴레이어, [ERC-4337](/eip-4337/) 번들러)인데, 후자는 `tx.origin`을 바꿉니다. EOA에서 보내는 [ERC-721](/eip-721/) `setApprovalForAll`처럼 실제 발신자가 누구인지가 중요한 작업도 있습니다.\n\nEIP-7768(Meta EIP)은 현재의 클라이언트에서 동작하면서 `tx.origin`을 사용자 그대로 유지하는 기법을 설명합니다. 블록 빌더가 같은 블록 안에서 사용자에게 딱 필요한 만큼의 ETH를 주고, 대가는 토큰으로 받습니다.\n\n## 어떻게 동작하나요?\n\n**사용자 측**\n\n1. ETH가 없는 Alice가 연속된 nonce를 가진 하나 이상의 일반 트랜잭션에 서명합니다.\n2. 비용을 지불하기 위해 그중 하나(보통 마지막)가 [ERC-20](/eip-20/), ERC-721, [ERC-1155](/eip-1155/) 같은 토큰을 잘 알려진 **free-for-all 컨트랙트**로 보냅니다.\n3. 그녀는 자신의 트랜잭션 중 어느 앞부분이든 실행될 수 있다고 가정해야 합니다. 하나도 실행되지 않을 수도, 첫 번째만, 첫 두 개만 실행될 수도 있는 식입니다.\n4. 그녀는 번들을 블록 빌더와 통신하는 서비스로 보냅니다. 계정에 가스를 낼 ETH가 없기 때문에 일반 멤풀은 이런 트랜잭션을 전파하지 않습니다.\n\n**빌더 측**\n\n1. 임시 실행 컨텍스트에서 가스를 감당할 ETH를 Alice에게 보내는 트랜잭션을 넣고, 이어서 Alice의 트랜잭션을 실행합니다.\n2. free-for-all 컨트랙트에 어떤 대가가 들어왔는지 확인하고, 그것을 가져가는 트랜잭션을 추가합니다.\n3. 실제로 사용된 gas를 측정하고 롤백한 뒤, 정확한 ETH 금액으로 다시 실행합니다. 지불액이 다르면 중단합니다.\n4. 지불액의 가치가 대신 낸 ETH보다 크면 그 결과를 블록에 유지하고, 그렇지 않으면 버리며 경우에 따라 발신자의 평판을 낮춥니다.\n\nfree-for-all 컨트랙트에는 owner가 없습니다. 블록을 만드는 사람이 누구든 그 안의 내용을 가져갈 수 있으므로, Alice가 그게 누구인지 몰라도 지불은 빌더에게 도달합니다.\n\n## 샘플 코드\n\n공용 컨트랙트의 형태를 보여 주는 예(스펙의 인터페이스는 아직 거친 상태입니다):\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IFreeForAll {\n    /// Anyone (in practice: the block builder) can make the bucket call out,\n    /// e.g. to transfer tokens it holds to themselves.\n    function execute(address recipient, bytes calldata data, uint256 gasLimit, uint256 value) external;\n\n    /// Pre-set return values for the next N calls to this contract in this block.\n    function preloadExecutions(bytes[] calldata responses) external;\n}\n```\n\nAlice의 번들을 개념적으로 나타내면 다음과 같습니다.\n\n```text\nnonce 7: router.swap(...)                      // the action she wants\nnonce 8: usdc.transfer(FREE_FOR_ALL, 2e6)      // tip: 2 USDC for the builder\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**이며 스펙에는 아직 TODO가 남아 있습니다. `preloadExecutions` 동작, 하위 호환성, 보안 고려 사항이 미완성입니다. 표준 free-for-all 컨트랙트 주소도 정의되어 있지 않습니다.\n- 이 버킷은 누구에게나 열려 있으므로, 팁은 빌더가 같은 블록에서 가져갈 때만 안전합니다. 거기에 남은 토큰은 먼저 움직인 사람이 가져갈 수 있습니다.\n- 빌더는 두 번 시뮬레이션하며 위험을 감수해야 하므로, 실제로는 빌더가 지원하기로 선택하는지에 달려 있습니다. 포함이 보장되는 것은 아닙니다.\n- 스펙에 나열된 대안으로는 빌더가 그에 해당하는 금액을 소각한다면 [EIP-1559](/eip-1559/)에서 가스 가격이 0인 트랜잭션을 허용하는 방법, 또는 래퍼 트랜잭션 타입이 있습니다. Pectra 이후에는 [EIP-7702](/eip-7702/) 위임으로도, 다른 메커니즘을 통해 스폰서가 EOA 대신 가스를 낼 수 있습니다.\n"},"zh":{"lang":"zh","tldr":"一种无需修改协议的方案：ETH 余额为零的账户也能自己发送交易，区块构建者垫付 gas，并以留在共享\"free-for-all\"合约中的代币获得报酬。","tags":["gas","sponsorship","meta","mev","ux"],"related":[1559,4337,7702,2771],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7768/","markdown":"## 它解决什么问题？\n\n收到了代币却没有 ETH 的新用户，什么也做不了：每笔交易都需要 ETH 来支付 gas。现有的解决办法要么需要修改协议，要么由另一个账户来提交交易（中继者、[ERC-4337](/eip-4337/) 的 bundler），而这会改变 `tx.origin`。有些操作，比如 EOA 发起的 [ERC-721](/eip-721/) `setApprovalForAll`，会关心真正的发起者是谁。\n\nEIP-7768（一份 Meta EIP）描述了一种可在当前客户端上运行、并且让 `tx.origin` 仍是用户本人的技术：区块构建者在同一区块内给用户恰好够用的 ETH，并以代币收取报酬。\n\n## 它如何运作\n\n**用户端**\n\n1. 没有 ETH 的 Alice 签署一笔或多笔 nonce 连续的普通交易。\n2. 为了付费，其中一笔（通常是最后一笔）把代币（如 [ERC-20](/eip-20/)、ERC-721 或 [ERC-1155](/eip-1155/)）发送到一个众所周知的 **free-for-all 合约**。\n3. 她必须假定她的交易的任意前缀都可能被执行：一笔都不执行、只执行第一笔、执行前两笔，依此类推。\n4. 她把这批交易发送给一个与区块构建者对接的服务。普通的内存池不会转发这些交易，因为她的账户没有 ETH 来支付 gas。\n\n**构建者端**\n\n1. 在一个临时执行上下文中，先插入一笔向 Alice 发送足以支付 gas 的 ETH 的交易，然后是 Alice 的交易。\n2. 查看有哪些对价进入了 free-for-all 合约，并添加一笔领取它的交易。\n3. 测量实际使用的 gas，回滚，再用精确的 ETH 数额重放，如果付款不一致则中止。\n4. 如果付款价值高于垫付的 ETH，就把结果保留在区块中；否则丢弃，并可能降低发送者的信誉。\n\nfree-for-all 合约没有 owner。谁构建区块，谁就可以取走其中的内容，因此付款能到达构建者，而 Alice 不需要知道那会是谁。\n\n## 示例代码\n\n共享合约的示意形态（规范中的接口仍然比较粗糙）：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IFreeForAll {\n    /// Anyone (in practice: the block builder) can make the bucket call out,\n    /// e.g. to transfer tokens it holds to themselves.\n    function execute(address recipient, bytes calldata data, uint256 gasLimit, uint256 value) external;\n\n    /// Pre-set return values for the next N calls to this contract in this block.\n    function preloadExecutions(bytes[] calldata responses) external;\n}\n```\n\nAlice 的交易包，概念上如下：\n\n```text\nnonce 7: router.swap(...)                      // the action she wants\nnonce 8: usdc.transfer(FREE_FOR_ALL, 2e6)      // tip: 2 USDC for the builder\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**，规范中仍有 TODO：`preloadExecutions` 的行为、向后兼容性和安全考量都尚未完成。也没有定义规范的 free-for-all 合约地址。\n- 由于这个桶对任何人开放，只有构建者在同一区块内把小费取走，小费才是安全的；留在里面的代币可能被最先动手的人拿走。\n- 构建者必须模拟两次并承担风险，所以实际上这取决于构建者是否选择支持。它并不保证交易会被打包。\n- 规范中列出的替代方案包括：如果构建者销毁等值的金额，则在 [EIP-1559](/eip-1559/) 下允许 gas 价格为零的交易；或者使用一种包装交易类型。自 Pectra 起，[EIP-7702](/eip-7702/) 的委托也允许赞助者通过另一种机制替 EOA 支付 gas。\n"}}}
