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
12 | TX_BASE_COST = 21000 |
---|
TX_DATA_COST_PER_NON_ZERO
13 | TX_DATA_COST_PER_NON_ZERO = 68 |
---|
TX_DATA_COST_PER_ZERO
14 | TX_DATA_COST_PER_ZERO = 4 |
---|
Transaction
Atomic operation performed on the block chain.
17 | @slotted_freezable |
---|
18 | @dataclass |
---|
class Transaction:
nonce
24 | nonce: U256 |
---|
gas_price
25 | gas_price: Uint |
---|
gas
26 | gas: Uint |
---|
to
27 | to: Union[Bytes0, Address] |
---|
value
28 | value: U256 |
---|
data
29 | data: Bytes |
---|
v
30 | v: U256 |
---|
r
31 | r: U256 |
---|
s
32 | s: U256 |
---|