{"eip":2930,"title":"Optional access lists","description":"Adds a transaction type which contains an access list, a list of addresses and storage keys that the transaction plans to access. Accesses outside the list are possible, but become more expensive.","authors":["Vitalik Buterin (@vbuterin)","Martin Swende (@holiman)"],"status":"Final","type":"Standards Track","category":"Core","created":"2020-08-29","requires":[2718,2929],"discussionsTo":"https://ethereum-magicians.org/t/eip-2930-optional-access-lists/4561","repo":"EIPs","label":"EIP-2930","officialUrl":"https://eips.ethereum.org/EIPS/eip-2930","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2930.md","url":"https://eips.huatuo.xyz/eip-2930/","tldr":{"en":"Added the type-1 transaction with an access list: addresses and storage slots a transaction declares up front and pre-pays for at a small discount, so later accesses are warm.","ja":"アクセスリスト付きの type-1 トランザクションを導入した。トランザクションが事前に宣言するアドレスとストレージスロットに少し割引された料金を前払いし、後続のアクセスをウォームにする。","ko":"접근 목록(access list)이 있는 type-1 트랜잭션을 도입했다. 트랜잭션이 미리 선언한 주소와 스토리지 슬롯에 약간 할인된 요금을 선불로 내고, 이후의 접근은 warm이 된다.","zh":"引入了带访问列表的 type-1 交易：交易提前声明将要访问的地址和存储槽，并以小幅折扣预先付费，之后的访问即为热访问。"},"tags":["transactions","access-list","gas","core","berlin"],"explainers":{"en":{"lang":"en","tldr":"Added the type-1 transaction with an access list: addresses and storage slots a transaction declares up front and pre-pays for at a small discount, so later accesses are warm.","tags":["transactions","access-list","gas","core","berlin"],"related":[2718,2929,1559,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-2930/","markdown":"## What problem does it solve?\n\n[EIP-2929](/eip-2929/), shipped alongside this one in the Berlin upgrade (2021), made the *first* access to an account or storage slot in a transaction much more expensive (\"cold\"), while repeated accesses became cheap (\"warm\"). That fixed a denial-of-service risk but threatened contracts that made calls with a hard-coded gas stipend: a cold access could now push them out of gas.\n\nEIP-2930 gives transactions a way to declare in advance which accounts and slots they will touch and pay for them up front. During execution those are already warm, costing just 100 gas. It also introduced the access-list format itself, which later features reuse.\n\n## How it works\n\nA new [EIP-2718](/eip-2718/) transaction type `0x01`:\n\n```\n0x01 || rlp([chainId, nonce, gasPrice, gasLimit, to, value, data,\n             accessList, signatureYParity, signatureR, signatureS])\n```\n\n- `accessList` is a list of `[address, [storageKey, ...]]` pairs.\n- At the start of execution, on top of the normal intrinsic gas, the transaction pays **2,400 gas per address** and **1,900 gas per storage key**. These are added to the warm sets, so in-transaction accesses cost 100 instead of the cold price (2,600 for an account, 2,100 for a slot).\n- Accesses not in the list still work; they just pay the cold price.\n- Duplicates are allowed but charged each time, so there is no reason to include them.\n- The signature covers the type byte, so a type-1 transaction cannot be reinterpreted as another type. `chainId` is a first-class field.\n\nThe [EIP-1559](/eip-1559/) type-2 transaction carries the same `accessList` field.\n\n## Sample code\n\nJSON form of an access list, as used by `eth_sendTransaction` and `eth_createAccessList`:\n\n```json\n[\n  {\n    \"address\": \"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae\",\n    \"storageKeys\": [\n      \"0x0000000000000000000000000000000000000000000000000000000000000003\",\n      \"0x0000000000000000000000000000000000000000000000000000000000000007\"\n    ]\n  }\n]\n```\n\nSending a type-1 transaction with ethers v6:\n\n```ts\nimport { JsonRpcProvider, Wallet } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst tx = await wallet.sendTransaction({\n  type: 1,\n  to: contractAddress,\n  data: calldata,\n  accessList: [\n    { address: contractAddress, storageKeys: [\"0x\" + \"00\".repeat(31) + \"03\"] },\n  ],\n});\nawait tx.wait();\n```\n\n## Things to know\n\n- The discount is small (about 10 % versus a cold access), so access lists only pay off when you are sure the slots will be touched. Listing something that is never accessed just wastes gas.\n- Many nodes offer `eth_createAccessList` to simulate a transaction and suggest a list.\n- The access list is charged per item, not per byte, and per-byte it is more expensive than calldata, so it cannot be used to bloat blocks cheaply.\n- Status is **Final**, activated in Berlin. Block-level access lists in [EIP-7928](/eip-7928/) are a separate, later idea.\n"},"ja":{"lang":"ja","tldr":"アクセスリスト付きの type-1 トランザクションを導入した。トランザクションが事前に宣言するアドレスとストレージスロットに少し割引された料金を前払いし、後続のアクセスをウォームにする。","tags":["transactions","access-list","gas","core","berlin"],"related":[2718,2929,1559,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-2930/","markdown":"## 何を解決するのか\n\n[EIP-2929](/eip-2929/) は、この EIP と同じ Berlin アップグレード（2021 年）で導入され、トランザクション内でのアカウントやストレージスロットへの*最初の*アクセスをはるかに高くし（「コールド」）、繰り返しのアクセスを安くしました（「ウォーム」）。これでサービス拒否攻撃のリスクは解消されましたが、ガスのスタイペンドをハードコードして呼び出しを行うコントラクトにとっては脅威となりました。コールドアクセスによってガス切れに追い込まれる可能性が出たのです。\n\nEIP-2930 は、トランザクションが触れるアカウントとスロットを事前に宣言し、前払いできるようにします。実行中、それらはすでにウォームであり、コストはわずか 100 ガスです。後の機能が再利用するアクセスリストの形式そのものも、この EIP で導入されました。\n\n## 仕組み\n\n新しい [EIP-2718](/eip-2718/) のトランザクションタイプ `0x01`:\n\n```\n0x01 || rlp([chainId, nonce, gasPrice, gasLimit, to, value, data,\n             accessList, signatureYParity, signatureR, signatureS])\n```\n\n- `accessList` は `[address, [storageKey, ...]]` のペアのリストです。\n- 実行の開始時に、通常の intrinsic gas に加えて、**アドレス 1 件あたり 2,400 ガス**、**ストレージキー 1 件あたり 1,900 ガス**を支払います。これらはウォームセットに追加されるため、トランザクション内でのアクセスはコールド価格（アカウントは 2,600、スロットは 2,100）ではなく 100 で済みます。\n- リストにないアクセスも問題なく動作し、コールド価格を支払うだけです。\n- 重複は許されますが、そのたびに課金されるため、含める理由はありません。\n- 署名はタイプのバイトを含むため、type-1 トランザクションを別のタイプとして解釈し直すことはできません。`chainId` は第一級のフィールドです。\n\n[EIP-1559](/eip-1559/) の type-2 トランザクションも、同じ `accessList` フィールドを持ちます。\n\n## サンプルコード\n\n`eth_sendTransaction` や `eth_createAccessList` で使われる、アクセスリストの JSON 形式:\n\n```json\n[\n  {\n    \"address\": \"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae\",\n    \"storageKeys\": [\n      \"0x0000000000000000000000000000000000000000000000000000000000000003\",\n      \"0x0000000000000000000000000000000000000000000000000000000000000007\"\n    ]\n  }\n]\n```\n\nethers v6 で type-1 トランザクションを送信する:\n\n```ts\nimport { JsonRpcProvider, Wallet } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst tx = await wallet.sendTransaction({\n  type: 1,\n  to: contractAddress,\n  data: calldata,\n  accessList: [\n    { address: contractAddress, storageKeys: [\"0x\" + \"00\".repeat(31) + \"03\"] },\n  ],\n});\nawait tx.wait();\n```\n\n## 知っておくべきこと\n\n- 割引は小さく（コールドアクセスに比べて約 10 %）、スロットに確実に触れるとわかっている場合にだけアクセスリストは元が取れます。一度もアクセスされないものを載せると、ガスを無駄にするだけです。\n- 多くのノードが、トランザクションをシミュレートしてリストを提案する `eth_createAccessList` を提供しています。\n- アクセスリストは、バイト単位ではなく項目単位で課金され、バイト単位で見れば calldata より高いため、安くブロックを肥大化させる目的には使えません。\n- ステータスは **Final** で、Berlin で有効化されました。[EIP-7928](/eip-7928/) のブロックレベルのアクセスリストは、別の、後のアイデアです。\n"},"ko":{"lang":"ko","tldr":"접근 목록(access list)이 있는 type-1 트랜잭션을 도입했다. 트랜잭션이 미리 선언한 주소와 스토리지 슬롯에 약간 할인된 요금을 선불로 내고, 이후의 접근은 warm이 된다.","tags":["transactions","access-list","gas","core","berlin"],"related":[2718,2929,1559,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-2930/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-2929](/eip-2929/)는 이 EIP와 함께 Berlin 업그레이드(2021년)에 반영되어, 트랜잭션에서 계정이나 스토리지 슬롯에 대한 *첫 번째* 접근을 훨씬 비싸게(\"cold\") 만들고 반복 접근은 싸게(\"warm\") 만들었습니다. 이는 서비스 거부 위험을 해결했지만, 가스 스타이펜드(stipend)를 하드코딩해 호출하는 컨트랙트에는 위협이 되었습니다. cold 접근 때문에 가스가 바닥날 수 있게 된 것입니다.\n\nEIP-2930은 트랜잭션이 건드릴 계정과 슬롯을 미리 선언하고 선불로 비용을 내도록 합니다. 실행 중에는 그것들이 이미 warm이라 100 가스만 듭니다. 이후 기능들이 재사용하는 접근 목록 형식 자체도 이 EIP에서 도입되었습니다.\n\n## 어떻게 동작하나요?\n\n새로운 [EIP-2718](/eip-2718/) 트랜잭션 타입 `0x01`:\n\n```\n0x01 || rlp([chainId, nonce, gasPrice, gasLimit, to, value, data,\n             accessList, signatureYParity, signatureR, signatureS])\n```\n\n- `accessList`는 `[address, [storageKey, ...]]` 쌍의 리스트입니다.\n- 실행이 시작될 때, 일반 intrinsic gas에 더해 **주소당 2,400 가스**와 **스토리지 키당 1,900 가스**를 냅니다. 이들은 warm 집합에 추가되므로, 트랜잭션 내의 접근은 cold 가격(계정 2,600, 슬롯 2,100) 대신 100이 듭니다.\n- 목록에 없는 접근도 여전히 동작하며, cold 가격을 낼 뿐입니다.\n- 중복은 허용되지만 매번 요금이 부과되므로 포함할 이유가 없습니다.\n- 서명은 타입 바이트를 포함하므로 type-1 트랜잭션을 다른 타입으로 재해석할 수 없습니다. `chainId`는 일급 필드입니다.\n\n[EIP-1559](/eip-1559/)의 type-2 트랜잭션도 같은 `accessList` 필드를 가집니다.\n\n## 샘플 코드\n\n`eth_sendTransaction`과 `eth_createAccessList`에서 쓰는 접근 목록의 JSON 형태:\n\n```json\n[\n  {\n    \"address\": \"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae\",\n    \"storageKeys\": [\n      \"0x0000000000000000000000000000000000000000000000000000000000000003\",\n      \"0x0000000000000000000000000000000000000000000000000000000000000007\"\n    ]\n  }\n]\n```\n\nethers v6로 type-1 트랜잭션 보내기:\n\n```ts\nimport { JsonRpcProvider, Wallet } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst tx = await wallet.sendTransaction({\n  type: 1,\n  to: contractAddress,\n  data: calldata,\n  accessList: [\n    { address: contractAddress, storageKeys: [\"0x\" + \"00\".repeat(31) + \"03\"] },\n  ],\n});\nawait tx.wait();\n```\n\n## 알아둘 점\n\n- 할인 폭이 작아서(cold 접근 대비 약 10 %) 슬롯에 접근할 것이 확실할 때만 접근 목록이 이득입니다. 한 번도 접근되지 않는 항목을 넣으면 가스만 낭비됩니다.\n- 많은 노드가 트랜잭션을 시뮬레이션해 목록을 제안해 주는 `eth_createAccessList`를 제공합니다.\n- 접근 목록은 바이트당이 아니라 항목당 요금이 부과되고, 바이트당으로 따지면 calldata보다 비싸기 때문에 싸게 블록을 부풀리는 데 쓸 수 없습니다.\n- 상태는 **Final**이며 Berlin에서 활성화되었습니다. [EIP-7928](/eip-7928/)의 블록 수준 접근 목록은 별개의, 이후의 아이디어입니다.\n"},"zh":{"lang":"zh","tldr":"引入了带访问列表的 type-1 交易：交易提前声明将要访问的地址和存储槽，并以小幅折扣预先付费，之后的访问即为热访问。","tags":["transactions","access-list","gas","core","berlin"],"related":[2718,2929,1559,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-2930/","markdown":"## 它解决什么问题？\n\n[EIP-2929](/eip-2929/) 与本 EIP 一同在 Berlin 升级（2021 年）中上线，它让交易中对账户或存储槽的*首次*访问贵了很多（“冷”），而重复访问变得便宜（“热”）。这修复了拒绝服务风险，但威胁到了那些使用硬编码 gas 津贴发起调用的合约：冷访问现在可能让它们耗尽 gas。\n\nEIP-2930 让交易可以提前声明自己将触及哪些账户和槽，并预先付费。执行期间，这些已经是热的，只需 100 gas。它还引入了访问列表格式本身，后来的特性也复用了它。\n\n## 它如何运作\n\n一种新的 [EIP-2718](/eip-2718/) 交易类型 `0x01`：\n\n```\n0x01 || rlp([chainId, nonce, gasPrice, gasLimit, to, value, data,\n             accessList, signatureYParity, signatureR, signatureS])\n```\n\n- `accessList` 是一组 `[address, [storageKey, ...]]` 对。\n- 执行开始时，在正常的 intrinsic gas 之外，交易还要支付**每个地址 2,400 gas** 和**每个存储键 1,900 gas**。这些会被加入热集合，因此交易内的访问只需 100，而不是冷价格（账户 2,600，槽 2,100）。\n- 不在列表中的访问仍然有效，只是按冷价格付费。\n- 允许重复，但每次都会收费，所以没有理由包含重复项。\n- 签名覆盖类型字节，因此 type-1 交易不会被重新解释为其他类型。`chainId` 是一等字段。\n\n[EIP-1559](/eip-1559/) 的 type-2 交易也带有同样的 `accessList` 字段。\n\n## 示例代码\n\n访问列表的 JSON 形式，`eth_sendTransaction` 和 `eth_createAccessList` 使用它：\n\n```json\n[\n  {\n    \"address\": \"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae\",\n    \"storageKeys\": [\n      \"0x0000000000000000000000000000000000000000000000000000000000000003\",\n      \"0x0000000000000000000000000000000000000000000000000000000000000007\"\n    ]\n  }\n]\n```\n\n用 ethers v6 发送 type-1 交易：\n\n```ts\nimport { JsonRpcProvider, Wallet } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst tx = await wallet.sendTransaction({\n  type: 1,\n  to: contractAddress,\n  data: calldata,\n  accessList: [\n    { address: contractAddress, storageKeys: [\"0x\" + \"00\".repeat(31) + \"03\"] },\n  ],\n});\nawait tx.wait();\n```\n\n## 需要注意\n\n- 折扣很小（与冷访问相比约 10 %），所以只有在确定会触及这些槽时，访问列表才划算。列出一个永远不会被访问的项只会浪费 gas。\n- 许多节点提供 `eth_createAccessList`，用来模拟交易并建议一个列表。\n- 访问列表按项收费，而不是按字节，且按字节算比 calldata 更贵，所以不能用它低成本地撑大区块。\n- 状态为 **Final**，在 Berlin 中激活。[EIP-7928](/eip-7928/) 中的区块级访问列表是另一个更晚出现的想法。\n"}},"requiredBy":[1559,2780,3521,3529,3534,3584,4844,5027,5081,5806,6404,7650,7664,7702,7707,7886,7981,8058,8197,8289,8295,8369]}
