250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 삶
- built in object
- Props
- web
- bitcoin
- Redux
- hardhat
- Ethereum
- evm
- middleware
- 기준
- JavaScript
- Interface
- SSR
- node.js
- CLASS
- solidity
- API
- graphQL
- HTML
- tailwindcss
- blockchain
- concept
- nextJS
- useState
- REACT
- express.js
- typeScript
- CSS
- error
Archives
- Today
- Total
ReasonJun
Ethereum : Transaction Structure 본문
728x90
Transaction is a structure used when EOA transmits Eth to EOA or when EOA calls CA.
- txType() byte: This method returns the type ID of the transaction. It is expected to return a byte representing the type of the transaction.
- copy() TxData: This method creates a deep copy of the transaction data, initializing all fields. It allows for the duplication of transaction data.
- chainID() *big.Int: Returns the chain ID associated with the transaction.
- accessList() AccessList: Returns the access list associated with the transaction. An access list is a list of addresses and storage keys that the transaction plans to access, providing a way to optimize gas calculations.
- data() []byte: Returns the transaction data as a byte slice.
- gas() uint64: Returns the amount of gas specified for the transaction.
- gasPrice() *big.Int: Returns the gas price set for the transaction.
- gasTipCap() *big.Int: Returns the maximum gas tip that the transaction is willing to pay.
- gasFeeCap() *big.Int: Returns the maximum fee (gas price * gas limit) that the transaction is willing to pay.
- value() *big.Int: Returns the value of ether being transferred with the transaction.
- nonce() uint64: Returns the nonce of the transaction.
- to() *common.Address: Returns the recipient address of the transaction.
- rawSignatureValues() (v, r, s *big.Int): Returns the raw signature values (v, r, s) of the transaction.
- setSignatureValues(chainID, v, r, s *big.Int): Sets the signature values for the transaction, including the chain ID, v, r, and s.
- effectiveGasPrice(dst *big.Int, baseFee *big.Int) *big.Int: Computes the effective gas price paid by the transaction, given the inclusion block baseFee. The result is returned as a big.Int. The dst parameter is provided to store the result, and it emphasizes that the returned value should be an independent copy.
- encode(*bytes.Buffer) error: Encodes the transaction data into a byte buffer. This is likely used for serialization purposes.
EOA - EOA Transaction
EOA - CA Transaction
728x90
'Blockchain > Ethereum' 카테고리의 다른 글
Ethereum: EIP-2770 (Standardizing Meta Transactions in Ethereum) (0) | 2024.01.17 |
---|---|
Ethereum : Transaction Receipt (0) | 2024.01.17 |
Ethereum : Block Structure (0) | 2024.01.16 |
Ethereum : Account structure (0) | 2024.01.05 |
Ethereum : Patricia Merkle Tries (0) | 2024.01.05 |
Comments