Skip to content

Instantly share code, notes, and snippets.

@banteg
Forked from sekrystal/cheatsheet.md
Last active September 21, 2023 21:47
Show Gist options
  • Save banteg/0a759b2cab9968c8eddfeb1bfa948801 to your computer and use it in GitHub Desktop.
Save banteg/0a759b2cab9968c8eddfeb1bfa948801 to your computer and use it in GitHub Desktop.
EIP Cheatsheet
EIP Block # (Hard Fork Name) TransactionType (EIP2718) Unsigned Transaction Signed Transaction Value of v or yParity
Pre-EIP155 RLP([ nonce, gasprice, startgas, to, value, data]) RLP([ nonce, gasprice, startgas, to, value, data, v, r, s]) {0,1} + 27
EIP-155 2,675,000 (Spurious Dragon) RLP([ nonce, gasprice, startgas, to, value, data, chain_id, 0, 0]) RLP([ nonce, gasprice, startgas, to, value, data, v, r, s]) chain_id * 2 + 35 + {0,1}
EIP-2930 12,244,000 (Berlin) 0x01 0x01 + RLP([ chainId, nonce, gasPrice, gasLimit, to, value, data, accessList]) 0x01 + RLP([ chainId, nonce, gasPrice, gasLimit, to, value, data, accessList, signatureYParity, signatureR, signatureS]) {0,1}
EIP-1559 12,965,000 (London) 0x02 0x02 + RLP([ chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, amount, data, access_list]) 0x02 + RLP([ chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, amount, data, access_list, signature_y_parity, signature_r, signature_s]) {0,1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment