Skip to content

Add transaction schema for 7702 Set Code Transaction type #561

@mattsse

Description

@mattsse

EIP: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7702.md

We introduce a new EIP-2718 transaction, "set code transaction", where the TransactionType is SET_CODE_TX_TYPE and the TransactionPayload is the RLP serialization of the following:

rlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, value, data, access_list, authorization_list, signature_y_parity, signature_r, signature_s])

authorization_list = [[chain_id, address, nonce, y_parity, r, s], ...]

The fields chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, value, data, and access_list of the outer transaction follow the same semantics as EIP-1559.

This type is similar to EIP-1559 but has an additional list.

I think the schema for 7702 should be EIP-1559 + a list of authorization lists:

Transaction4844Unsigned:
type: object
title: EIP-4844 transaction.
required:
- type
- nonce
- to
- gas
- value
- input
- maxPriorityFeePerGas
- maxFeePerGas
- maxFeePerBlobGas
- accessList
- blobVersionedHashes
- chainId

I think the todos here are:

  • Add 7702 tx schema
  • Add authlist to receipt schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions