ethereum.forks.cancun.exceptionsethereum.forks.prague.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):
24
        super().__init__(f"expected chain_id `{expected}` but got `{actual}`")
25
        self.expected = expected
26
        self.actual = actual

TransactionTypeError

Unknown EIP-2718 transaction type byte.

class TransactionTypeError:

transaction_type

The type byte of the transaction that caused the error.

36
    transaction_type: Final[int]

__init__

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

TransactionTypeContractCreationError

Contract creation is not allowed for a transaction type.

class TransactionTypeContractCreationError:

transaction

The transaction that caused the error.

51
    transaction: "Transaction"

__init__

def __init__(self, ​​transaction: "Transaction"):
57
        super().__init__(
58
            f"transaction type `{type(transaction).__name__}` not allowed to "
59
            "create contracts"
60
        )
61
        self.transaction = transaction

BlobGasLimitExceededError

The blob gas limit for the transaction exceeds the maximum allowed.

class BlobGasLimitExceededError:

InsufficientMaxFeePerBlobGasError

The maximum fee per blob gas is insufficient for the transaction.

class InsufficientMaxFeePerBlobGasError:

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.

81
    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.

86
    block_base_fee_per_gas: Final[Uint]

__init__

def __init__(self, ​​transaction_max_fee_per_gas: Uint, ​​block_base_fee_per_gas: Uint):
94
        super().__init__(
95
            f"Insufficient max fee per gas "
96
            f"({transaction_max_fee_per_gas} < {block_base_fee_per_gas})"
97
        )
98
        self.transaction_max_fee_per_gas = transaction_max_fee_per_gas
99
        self.block_base_fee_per_gas = block_base_fee_per_gas

InvalidBlobVersionedHashError

The versioned hash of the blob is invalid.

class InvalidBlobVersionedHashError:

NoBlobDataError

The transaction does not contain any blob data.

class NoBlobDataError:

PriorityFeeGreaterThanMaxFeeError

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

class PriorityFeeGreaterThanMaxFeeError:

EmptyAuthorizationListError

The authorization list in the transaction is empty.

class EmptyAuthorizationListError:

InitCodeTooLargeError

The init code of the transaction is too large.

class InitCodeTooLargeError: