ethereum.frontier.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
15 | TX_BASE_COST = 21000 |
---|
TX_DATA_COST_PER_NON_ZERO
16 | TX_DATA_COST_PER_NON_ZERO = 68 |
---|
TX_DATA_COST_PER_ZERO
17 | TX_DATA_COST_PER_ZERO = 4 |
---|
Transaction
Atomic operation performed on the block chain.
20 | @slotted_freezable |
---|
21 | @dataclass |
---|
class Transaction:
nonce
27 | nonce: U256 |
---|
gas_price
28 | gas_price: Uint |
---|
gas
29 | gas: Uint |
---|
to
30 | to: Union[Bytes0, Address] |
---|
value
31 | value: U256 |
---|
data
32 | data: Bytes |
---|
v
33 | v: U256 |
---|
r
34 | r: U256 |
---|
s
35 | s: U256 |
---|