ethereum.homestead.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

TX_CREATE_COST

18
TX_CREATE_COST = 32000

Transaction

Atomic operation performed on the block chain.

21
@slotted_freezable
22
@dataclass
class Transaction:

nonce

28
    nonce: U256

gas_price

29
    gas_price: Uint

gas

30
    gas: Uint

to

31
    to: Union[Bytes0, Address]

value

32
    value: U256

data

33
    data: Bytes

v

34
    v: U256

r

35
    r: U256

s

36
    s: U256