---
eip: 3709
label: EIP-3709
title: Remove Support for Type 1 Transactions
status: Stagnant
type: Standards Track
category: Interface
created: 2021-08-07
requires: 1559
official: https://eips.ethereum.org/EIPS/eip-3709
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3709.md
canonical: https://eips.huatuo.xyz/ko/eip-3709/
lang: ko
tldr: 지갑과 프로바이더가 type-1(접근 목록) 트랜잭션 생성을 중단하고, 이를 같은 접근 목록에 더 나은 수수료 필드를 가진 EIP-1559 type-2 트랜잭션으로 조용히 업그레이드하자는 제안.
tags: [transactions, wallets, access-list, gas, interface]
---

# EIP-3709: Remove Support for Type 1 Transactions

> Deprecates usage of EIP-2718 TransactionType 1 in wallets and providers, upgrading all type 1 transactions to a type 2 transaction.

**TL;DR:** 지갑과 프로바이더가 type-1(접근 목록) 트랜잭션 생성을 중단하고, 이를 같은 접근 목록에 더 나은 수수료 필드를 가진 EIP-1559 type-2 트랜잭션으로 조용히 업그레이드하자는 제안.

## 어떤 문제를 해결하나요?

[EIP-2718](/eip-2718/)은 타입 있는 트랜잭션을 도입했습니다. 첫 번째 타입인 [EIP-2930](/eip-2930/)의 `0x01`은 본질적으로 레거시 트랜잭션에 `access_list`를 붙인 것으로, 여전히 하나의 `gasPrice`를 씁니다. 얼마 뒤 [EIP-1559](/eip-1559/)가 타입 `0x02`를 추가했는데, 이것도 `access_list`를 *함께* 가지면서 `gasPrice`를 `maxFeePerGas`와 `maxPriorityFeePerGas`로 대체합니다.

type 2가 생긴 이상 type 1은 type 2에 없는 것을 제공하지 않습니다. type-1 트랜잭션을 보내는 사람은 접근 목록은 얻지만 base fee/팁 모델과 그에 따른 더 매끄러운 수수료 추정은 놓칩니다. 둘 다 유지하면 이득 없이 지갑과 라이브러리의 코드 경로만 늘어납니다.

## 어떻게 동작하나요?

이것은 *Interface* 제안으로 컨센서스는 아무것도 바꾸지 않습니다. 노드는 여전히 type-1 트랜잭션을 받아들입니다. 대신 지갑과 프로바이더에게, 사용자나 dapp이 type-1 트랜잭션의 서명을 요청하면 서명 전에 type 2로 다시 쓰도록 요청합니다.

| 필드 | 변경 |
| --- | --- |
| `type` | `0x1`이 `0x2`가 됨 |
| `access_list` | 그대로 유지 |
| `gas_price` | 제거되고 `max_fee_per_gas`와 `max_priority_fee_per_gas`로 대체됨(EIP-1559에 설명된 대로 설정) |

결과 페이로드는 일반적인 type-2 형태입니다: `rlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, amount, data, access_list, y_parity, r, s])`.

## 샘플 코드

이런 업그레이드가 지갑 계층에서 어떻게 보일 수 있는지(ethers v6). 수수료 값을 어떻게 고를지는 지갑에 달려 있으며, 여기서는 프로바이더의 수수료 데이터에서 가져옵니다.

```ts
import { JsonRpcProvider, TransactionRequest } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);

async function upgradeType1(tx: TransactionRequest): Promise<TransactionRequest> {
  if (tx.type !== 1) return tx;
  const fees = await provider.getFeeData();
  const { gasPrice, ...rest } = tx;          // drop the legacy field
  return {
    ...rest,
    type: 2,
    accessList: tx.accessList,               // access list is preserved
    maxFeePerGas: fees.maxFeePerGas,
    maxPriorityFeePerGas: fees.maxPriorityFeePerGas,
  };
}
```

## 알아둘 점

- 상태: **Stagnant**. 확정된 적이 없으며, type-1 트랜잭션은 이더리움에서 여전히 유효합니다.
- 지갑과 RPC 프로바이더에 대한 권고이지 프로토콜 규칙이 아닙니다. 하드포크와는 무관합니다.
- 실제로는 대부분의 지갑이 이미 type-2 트랜잭션을 기본으로 쓰므로, 이 제안의 목표는 관행으로 대부분 달성되었습니다.
- 사용자가 서명을 요청한 트랜잭션을 다시 쓰면 그들이 무엇을 어떻게 지불하는지가 달라집니다. 이렇게 하는 지갑은 서명 전에 새 수수료 필드를 보여 주어야 합니다.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-3709
