ethereum.forks.cancun.exceptions
Exceptions specific to this fork.
TransactionTypeError
Unknown EIP-2718 transaction type byte.
class TransactionTypeError:
transaction_type
The type byte of the transaction that caused the error.
| 22 |     transaction_type: Final[int] | 
|---|
__init__
                def __init__(self, transaction_type: int):
            
| 28 |         super().__init__(f"unknown transaction type `{transaction_type}`") | 
|---|---|
| 29 |         self.transaction_type = transaction_type | 
TransactionTypeContractCreationError
Contract creation is not allowed for a transaction type.
class TransactionTypeContractCreationError:
transaction
The transaction that caused the error.
| 37 |     transaction: "Transaction" | 
|---|
__init__
                def __init__(self, transaction: "Transaction"):
            
| 43 |         super().__init__( | 
|---|---|
| 44 |             f"transaction type `{type(transaction).__name__}` not allowed to " | 
| 45 |             "create contracts" | 
| 46 |         ) | 
| 47 |         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.
| 67 |     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.
| 72 |     block_base_fee_per_gas: Final[Uint] | 
|---|
__init__
                def __init__(self, transaction_max_fee_per_gas: Uint, block_base_fee_per_gas: Uint):
            
| 80 |         super().__init__( | 
|---|---|
| 81 |             f"Insufficient max fee per gas " | 
| 82 |             f"({transaction_max_fee_per_gas} < {block_base_fee_per_gas})" | 
| 83 |         ) | 
| 84 |         self.transaction_max_fee_per_gas = transaction_max_fee_per_gas | 
| 85 |         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:
InitCodeTooLargeError
The init code of the transaction is too large.
class InitCodeTooLargeError: