I'd like to know the detail of the Ethereum transaction data structure.
What data is stored in transaction?
[Ethereum] the ethereum transaction data structure
calldataraw-transactiontransactions
calldataraw-transactiontransactions
I'd like to know the detail of the Ethereum transaction data structure.
What data is stored in transaction?
Best Answer
An Ethereum transaction - as in, what you pass to
sendRawTransaction()
- consists of the following fields, in order and RLP-encoded (note that the field names are not part of the encoded data):Any payload, whether raw data or a contract function signature and parameters, is encoded into the data field.
Some references:
Transaction (python)
LegacyTx (go)
rlp.Serializable (python)
ECDSA parameters