Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth.Transaction: EIP-4844 Blob Txs (type 0x3) #89

Closed
ryanschneider opened this issue Aug 21, 2023 · 1 comment · Fixed by #92
Closed

eth.Transaction: EIP-4844 Blob Txs (type 0x3) #89

ryanschneider opened this issue Aug 21, 2023 · 1 comment · Fixed by #92
Labels

Comments

@ryanschneider
Copy link
Contributor

https://eips.ethereum.org/EIPS/eip-4844#blob-transaction

We introduce a new EIP-2718 transaction, “blob transaction”, where the TransactionType is BLOB_TX_TYPE (0x03) and the TransactionPayload is the RLP serialization of the following TransactionPayloadBody:

[chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, to, value, data, access_list, max_fee_per_blob_gas, blob_versioned_hashes, y_parity, r, s]

The field to deviates slightly from the semantics with the exception that it MUST NOT be nil and therefore must always represent a 20-byte address. This means that blob transactions cannot have the form of a create transaction.

The field max_fee_per_blob_gas is a uint256 and the field blob_versioned_hashes represents a list of hash outputs from kzg_to_versioned_hash.

The EIP-2718 ReceiptPayload for this transaction is rlp([status, cumulative_transaction_gas_used, logs_bloom, logs]).

@noleto
Copy link

noleto commented Aug 28, 2023

@ElhadiCherifi95 @ggiannos when EIP-4844 will be deployed, transactions data structure will come with two new fields so we need to update our txs decoder in Python (https://github.com/INFURA/datasci-infra/blob/staging/business/spark/commons/tlm_commons/transaction_raw_decoder.py#L94)

(posting this message here as I reminder when transaction_from_raw.go will be updated :-) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants