ethereum.forks.gray_glacier.exceptionsethereum.forks.paris.exceptions

Exceptions specific to this fork.

WrongChainIdError

Chain identifier from a transaction does not match the executing chain. See EIP-155.

class WrongChainIdError:

__init__

def __init__(self, ​​expected: U64, ​​actual: U64):
21
        super().__init__(f"expected chain_id `{expected}` but got `{actual}`")
22
        self.expected = expected
23
        self.actual = actual

TransactionTypeError

Unknown EIP-2718 transaction type byte.

class TransactionTypeError:

transaction_type

The type byte of the transaction that caused the error.

33
    transaction_type: Final[int]

__init__

def __init__(self, ​​transaction_type: int):
39
        super().__init__(f"unknown transaction type `{transaction_type}`")
40
        self.transaction_type = transaction_type

InsufficientMaxFeePerGasError

The maximum fee per gas is insufficient for the transaction.

class InsufficientMaxFeePerGasError:

transaction_max_fee_per_gas

The maximum fee per gas specified in the transaction.

48
    transaction_max_fee_per_gas: Final[Uint]

block_base_fee_per_gas

The base fee per gas of the block in which the transaction is included.

53
    block_base_fee_per_gas: Final[Uint]

__init__

def __init__(self, ​​transaction_max_fee_per_gas: Uint, ​​block_base_fee_per_gas: Uint):
61
        super().__init__(
62
            f"Insufficient max fee per gas "
63
            f"({transaction_max_fee_per_gas} < {block_base_fee_per_gas})"
64
        )
65
        self.transaction_max_fee_per_gas = transaction_max_fee_per_gas
66
        self.block_base_fee_per_gas = block_base_fee_per_gas

PriorityFeeGreaterThanMaxFeeError

The priority fee is greater than the maximum fee per gas.

class PriorityFeeGreaterThanMaxFeeError: