Skip to content

Instantly share code, notes, and snippets.

@sekrystal
Created November 16, 2022 15:23
Show Gist options
  • Select an option

  • Save sekrystal/709f12f05e549a5b59bf0f92bc5e108f to your computer and use it in GitHub Desktop.

Select an option

Save sekrystal/709f12f05e549a5b59bf0f92bc5e108f to your computer and use it in GitHub Desktop.

Revisions

  1. sekrystal created this gist Nov 16, 2022.
    6 changes: 6 additions & 0 deletions cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    | EIP | Block # (Hard Fork Name) | TransactionType (EIP2718) | Unsigned Transaction | Signed Transaction | Value of v |
    | --------------------------------------------------------------------------------------------- | --------------------------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
    | 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} |