ethereum.istanbul.transactionsethereum.muir_glacier.transactions
Transactions are atomic units of work created externally to Ethereum and submitted to be executed. If Ethereum is viewed as a state machine, transactions are the events that move between states.
TX_BASE_COST
12 | TX_BASE_COST = 21000 |
---|
TX_DATA_COST_PER_NON_ZERO
13 | TX_DATA_COST_PER_NON_ZERO = 16 |
---|
TX_DATA_COST_PER_ZERO
14 | TX_DATA_COST_PER_ZERO = 4 |
---|
TX_CREATE_COST
15 | TX_CREATE_COST = 32000 |
---|
Transaction
Atomic operation performed on the block chain.
18 | @slotted_freezable |
---|
19 | @dataclass |
---|
class Transaction:
nonce
25 | nonce: U256 |
---|
gas_price
26 | gas_price: Uint |
---|
gas
27 | gas: Uint |
---|
to
28 | to: Union[Bytes0, Address] |
---|
value
29 | value: U256 |
---|
data
30 | data: Bytes |
---|
v
31 | v: U256 |
---|
r
32 | r: U256 |
---|
s
33 | s: U256 |
---|