Giter VIP home page Giter VIP logo

Comments (3)

q9f avatar q9f commented on June 3, 2024

maybe @keeran wants to look into this. EthWorks/ethereum.rb#171

🙃

from eth.rb.

q9f avatar q9f commented on June 3, 2024

Just taking some notes.

EIP 1559 transaction (type 02)

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])

Transaction contents:

to:    0xCaA29806044A08E533963b2e573C1230A2cd9a2d
from:               0x4762119a7249823D18aec7EAB73258B2D5061Dd8 [chksum ok]
value:              10000000000000000 wei
gas:                0x5208 (21000)
maxFeePerGas:          1500000016 wei
maxPriorityFeePerGas:  1500000000 wei
nonce:    0x0 (0)
chainid:  0x5
Accesslist: []

Transaction signed:

 {
    "type": "0x2",
    "nonce": "0x0",
    "gasPrice": null,
    "maxPriorityFeePerGas": "0x59682f00",
    "maxFeePerGas": "0x59682f10",
    "gas": "0x5208",
    "value": "0x2386f26fc10000",
    "input": "0x",
    "v": "0x0",
    "r": "0x8673fab6d8c6f25ee21193b70eb8613e10a77823776103a068fb9e063a411f59",
    "s": "0x170dc4d7faa5294c65bbcb851d44db04260cf4fe11daf6c008567a2bd7a39962",
    "to": "0xcaa29806044a08e533963b2e573c1230a2cd9a2d",
    "chainId": "0x5",
    "accessList": [],
    "hash": "0x9bec09c6bcc01f461ec8769b262895190173e5cac887cca8463a84add7546a17"
  }

Txn Hash: 0x9bec09c6bcc01f461ec8769b262895190173e5cac887cca8463a84add7546a17

Raw Transaction Hex :

0x02f87105808459682f008459682f1082520894caa29806044a08e533963b2e573c1230a2cd9a2d872386f26fc1000080c080a08673fab6d8c6f25ee21193b70eb8613e10a77823776103a068fb9e063a411f59a0170dc4d7faa5294c65bbcb851d44db04260cf4fe11daf6c008567a2bd7a39962

Key (passphrase asdfasdfasdf):

{"address":"4762119a7249823d18aec7eab73258b2d5061dd8","crypto":{"cipher":"aes-128-ctr","ciphertext":"a940d353fd675933ce5fdc18ae96c307bf557fabe2d6677c974df58c7c32f727","cipherparams":{"iv":"3ed41f0c8f49f2a6fc881b68bfbb9f79"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"e283c600dd605cba619b84b15b4e514d948650e72d6ea8b98b1acf6a3be7fb2b"},"mac":"f250442879d4c81640636fe86fb0b5cb2b4f6532b158755350efb6dd017b6b01"},"id":"05dc143d-4bd8-4bb6-9406-ee6de8049ab6","version":3}

There is probably no need to support Type 01 and legacy transactions.

from eth.rb.

q9f avatar q9f commented on June 3, 2024

access lists: https://hackmd.io/@fvictorio/gas-costs-after-berlin

eth_createAccessList

from eth.rb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.