evmspec package
Subpackages
- evmspec.data package
- Submodules
- evmspec.data.uints module
uint104uint104.fromhex()uint104.__new__()uint104.as_integer_ratio()uint104.bit_count()uint104.bit_length()uint104.conjugate()uint104.from_bytes()uint104.is_integer()uint104.to_bytes()uint104.bitsuint104.bytesuint104.denominatoruint104.imaguint104.max_valueuint104.min_valueuint104.numeratoruint104.real
uint112uint112.fromhex()uint112.__new__()uint112.as_integer_ratio()uint112.bit_count()uint112.bit_length()uint112.conjugate()uint112.from_bytes()uint112.is_integer()uint112.to_bytes()uint112.bitsuint112.bytesuint112.denominatoruint112.imaguint112.max_valueuint112.min_valueuint112.numeratoruint112.real
uint120uint120.fromhex()uint120.__new__()uint120.as_integer_ratio()uint120.bit_count()uint120.bit_length()uint120.conjugate()uint120.from_bytes()uint120.is_integer()uint120.to_bytes()uint120.bitsuint120.bytesuint120.denominatoruint120.imaguint120.max_valueuint120.min_valueuint120.numeratoruint120.real
uint128uint128.fromhex()uint128.__new__()uint128.as_integer_ratio()uint128.bit_count()uint128.bit_length()uint128.conjugate()uint128.from_bytes()uint128.is_integer()uint128.to_bytes()uint128.bitsuint128.bytesuint128.denominatoruint128.imaguint128.max_valueuint128.min_valueuint128.numeratoruint128.real
uint136uint136.fromhex()uint136.__new__()uint136.as_integer_ratio()uint136.bit_count()uint136.bit_length()uint136.conjugate()uint136.from_bytes()uint136.is_integer()uint136.to_bytes()uint136.bitsuint136.bytesuint136.denominatoruint136.imaguint136.max_valueuint136.min_valueuint136.numeratoruint136.real
uint144uint144.fromhex()uint144.__new__()uint144.as_integer_ratio()uint144.bit_count()uint144.bit_length()uint144.conjugate()uint144.from_bytes()uint144.is_integer()uint144.to_bytes()uint144.bitsuint144.bytesuint144.denominatoruint144.imaguint144.max_valueuint144.min_valueuint144.numeratoruint144.real
uint152uint152.fromhex()uint152.__new__()uint152.as_integer_ratio()uint152.bit_count()uint152.bit_length()uint152.conjugate()uint152.from_bytes()uint152.is_integer()uint152.to_bytes()uint152.bitsuint152.bytesuint152.denominatoruint152.imaguint152.max_valueuint152.min_valueuint152.numeratoruint152.real
uint16uint160uint160.fromhex()uint160.__new__()uint160.as_integer_ratio()uint160.bit_count()uint160.bit_length()uint160.conjugate()uint160.from_bytes()uint160.is_integer()uint160.to_bytes()uint160.bitsuint160.bytesuint160.denominatoruint160.imaguint160.max_valueuint160.min_valueuint160.numeratoruint160.real
uint168uint168.fromhex()uint168.__new__()uint168.as_integer_ratio()uint168.bit_count()uint168.bit_length()uint168.conjugate()uint168.from_bytes()uint168.is_integer()uint168.to_bytes()uint168.bitsuint168.bytesuint168.denominatoruint168.imaguint168.max_valueuint168.min_valueuint168.numeratoruint168.real
uint176uint176.fromhex()uint176.__new__()uint176.as_integer_ratio()uint176.bit_count()uint176.bit_length()uint176.conjugate()uint176.from_bytes()uint176.is_integer()uint176.to_bytes()uint176.bitsuint176.bytesuint176.denominatoruint176.imaguint176.max_valueuint176.min_valueuint176.numeratoruint176.real
uint184uint184.fromhex()uint184.__new__()uint184.as_integer_ratio()uint184.bit_count()uint184.bit_length()uint184.conjugate()uint184.from_bytes()uint184.is_integer()uint184.to_bytes()uint184.bitsuint184.bytesuint184.denominatoruint184.imaguint184.max_valueuint184.min_valueuint184.numeratoruint184.real
uint192uint192.fromhex()uint192.__new__()uint192.as_integer_ratio()uint192.bit_count()uint192.bit_length()uint192.conjugate()uint192.from_bytes()uint192.is_integer()uint192.to_bytes()uint192.bitsuint192.bytesuint192.denominatoruint192.imaguint192.max_valueuint192.min_valueuint192.numeratoruint192.real
uint200uint200.fromhex()uint200.__new__()uint200.as_integer_ratio()uint200.bit_count()uint200.bit_length()uint200.conjugate()uint200.from_bytes()uint200.is_integer()uint200.to_bytes()uint200.bitsuint200.bytesuint200.denominatoruint200.imaguint200.max_valueuint200.min_valueuint200.numeratoruint200.real
uint208uint208.fromhex()uint208.__new__()uint208.as_integer_ratio()uint208.bit_count()uint208.bit_length()uint208.conjugate()uint208.from_bytes()uint208.is_integer()uint208.to_bytes()uint208.bitsuint208.bytesuint208.denominatoruint208.imaguint208.max_valueuint208.min_valueuint208.numeratoruint208.real
uint216uint216.fromhex()uint216.__new__()uint216.as_integer_ratio()uint216.bit_count()uint216.bit_length()uint216.conjugate()uint216.from_bytes()uint216.is_integer()uint216.to_bytes()uint216.bitsuint216.bytesuint216.denominatoruint216.imaguint216.max_valueuint216.min_valueuint216.numeratoruint216.real
uint224uint224.fromhex()uint224.__new__()uint224.as_integer_ratio()uint224.bit_count()uint224.bit_length()uint224.conjugate()uint224.from_bytes()uint224.is_integer()uint224.to_bytes()uint224.bitsuint224.bytesuint224.denominatoruint224.imaguint224.max_valueuint224.min_valueuint224.numeratoruint224.real
uint232uint232.fromhex()uint232.__new__()uint232.as_integer_ratio()uint232.bit_count()uint232.bit_length()uint232.conjugate()uint232.from_bytes()uint232.is_integer()uint232.to_bytes()uint232.bitsuint232.bytesuint232.denominatoruint232.imaguint232.max_valueuint232.min_valueuint232.numeratoruint232.real
uint24uint240uint240.fromhex()uint240.__new__()uint240.as_integer_ratio()uint240.bit_count()uint240.bit_length()uint240.conjugate()uint240.from_bytes()uint240.is_integer()uint240.to_bytes()uint240.bitsuint240.bytesuint240.denominatoruint240.imaguint240.max_valueuint240.min_valueuint240.numeratoruint240.real
uint248uint248.fromhex()uint248.__new__()uint248.as_integer_ratio()uint248.bit_count()uint248.bit_length()uint248.conjugate()uint248.from_bytes()uint248.is_integer()uint248.to_bytes()uint248.bitsuint248.bytesuint248.denominatoruint248.imaguint248.max_valueuint248.min_valueuint248.numeratoruint248.real
uint32uint40uint48uint56uint64uint72uint8uint80uint88uint96
- Module contents
AddressAddress.checksum()Address.__new__()Address.maketrans()Address.capitalize()Address.casefold()Address.center()Address.count()Address.encode()Address.endswith()Address.expandtabs()Address.find()Address.format()Address.format_map()Address.index()Address.isalnum()Address.isalpha()Address.isascii()Address.isdecimal()Address.isdigit()Address.isidentifier()Address.islower()Address.isnumeric()Address.isprintable()Address.isspace()Address.istitle()Address.isupper()Address.join()Address.ljust()Address.lower()Address.lstrip()Address.partition()Address.removeprefix()Address.removesuffix()Address.replace()Address.rfind()Address.rindex()Address.rjust()Address.rpartition()Address.rsplit()Address.rstrip()Address.split()Address.splitlines()Address.startswith()Address.strip()Address.swapcase()Address.title()Address.translate()Address.upper()Address.zfill()
BlockHashBlockHash.__new__()BlockHash.maketrans()BlockHash.capitalize()BlockHash.center()BlockHash.count()BlockHash.decode()BlockHash.endswith()BlockHash.expandtabs()BlockHash.find()BlockHash.fromhex()BlockHash.hex()BlockHash.index()BlockHash.isalnum()BlockHash.isalpha()BlockHash.isascii()BlockHash.isdigit()BlockHash.islower()BlockHash.isspace()BlockHash.istitle()BlockHash.isupper()BlockHash.join()BlockHash.ljust()BlockHash.lower()BlockHash.lstrip()BlockHash.partition()BlockHash.removeprefix()BlockHash.removesuffix()BlockHash.replace()BlockHash.rfind()BlockHash.rindex()BlockHash.rjust()BlockHash.rpartition()BlockHash.rsplit()BlockHash.rstrip()BlockHash.split()BlockHash.splitlines()BlockHash.startswith()BlockHash.strip()BlockHash.swapcase()BlockHash.title()BlockHash.translate()BlockHash.upper()BlockHash.zfill()BlockHash.to_0x_hex
BlockNumberBlockNumber.fromhex()BlockNumber.__new__()BlockNumber.as_integer_ratio()BlockNumber.bit_count()BlockNumber.bit_length()BlockNumber.conjugate()BlockNumber.from_bytes()BlockNumber.is_integer()BlockNumber.to_bytes()BlockNumber.denominatorBlockNumber.imagBlockNumber.numeratorBlockNumber.real
ChainIdHexBytes32HexBytes32.__new__()HexBytes32.maketrans()HexBytes32.capitalize()HexBytes32.center()HexBytes32.count()HexBytes32.decode()HexBytes32.endswith()HexBytes32.expandtabs()HexBytes32.find()HexBytes32.fromhex()HexBytes32.hex()HexBytes32.index()HexBytes32.isalnum()HexBytes32.isalpha()HexBytes32.isascii()HexBytes32.isdigit()HexBytes32.islower()HexBytes32.isspace()HexBytes32.istitle()HexBytes32.isupper()HexBytes32.join()HexBytes32.ljust()HexBytes32.lower()HexBytes32.lstrip()HexBytes32.partition()HexBytes32.removeprefix()HexBytes32.removesuffix()HexBytes32.replace()HexBytes32.rfind()HexBytes32.rindex()HexBytes32.rjust()HexBytes32.rpartition()HexBytes32.rsplit()HexBytes32.rstrip()HexBytes32.split()HexBytes32.splitlines()HexBytes32.startswith()HexBytes32.strip()HexBytes32.swapcase()HexBytes32.title()HexBytes32.translate()HexBytes32.upper()HexBytes32.zfill()HexBytes32.to_0x_hex
LogIndexNonceTransactionHashTransactionHash.__new__()TransactionHash.maketrans()TransactionHash.capitalize()TransactionHash.center()TransactionHash.count()TransactionHash.decode()TransactionHash.endswith()TransactionHash.expandtabs()TransactionHash.find()TransactionHash.fromhex()TransactionHash.hex()TransactionHash.index()TransactionHash.isalnum()TransactionHash.isalpha()TransactionHash.isascii()TransactionHash.isdigit()TransactionHash.islower()TransactionHash.isspace()TransactionHash.istitle()TransactionHash.isupper()TransactionHash.join()TransactionHash.ljust()TransactionHash.lower()TransactionHash.lstrip()TransactionHash.partition()TransactionHash.removeprefix()TransactionHash.removesuffix()TransactionHash.replace()TransactionHash.rfind()TransactionHash.rindex()TransactionHash.rjust()TransactionHash.rpartition()TransactionHash.rsplit()TransactionHash.rstrip()TransactionHash.split()TransactionHash.splitlines()TransactionHash.startswith()TransactionHash.strip()TransactionHash.swapcase()TransactionHash.title()TransactionHash.translate()TransactionHash.upper()TransactionHash.zfill()TransactionHash.to_0x_hex
TransactionIndexTransactionIndex.fromhex()TransactionIndex.__new__()TransactionIndex.as_integer_ratio()TransactionIndex.bit_count()TransactionIndex.bit_length()TransactionIndex.conjugate()TransactionIndex.from_bytes()TransactionIndex.is_integer()TransactionIndex.to_bytes()TransactionIndex.denominatorTransactionIndex.imagTransactionIndex.numeratorTransactionIndex.real
UnixTimestampUnixTimestamp.fromhex()UnixTimestamp.__new__()UnixTimestamp.as_integer_ratio()UnixTimestamp.bit_count()UnixTimestamp.bit_length()UnixTimestamp.conjugate()UnixTimestamp.from_bytes()UnixTimestamp.is_integer()UnixTimestamp.to_bytes()UnixTimestamp.datetimeUnixTimestamp.denominatorUnixTimestamp.imagUnixTimestamp.numeratorUnixTimestamp.real
Weiuint
- evmspec.structs package
- Subpackages
- Submodules
- evmspec.structs.block module
BaseBlockBaseBlock.get()BaseBlock.items()BaseBlock.keys()BaseBlock.values()BaseBlock.baseFeePerGasBaseBlock.difficultyBaseBlock.extraDataBaseBlock.gasLimitBaseBlock.gasUsedBaseBlock.hashBaseBlock.logsBloomBaseBlock.minerBaseBlock.mixHashBaseBlock.nonceBaseBlock.numberBaseBlock.parentHashBaseBlock.receiptsRootBaseBlock.sha3UnclesBaseBlock.sizeBaseBlock.stateRootBaseBlock.timestampBaseBlock.totalDifficultyBaseBlock.transactionsBaseBlock.transactionsRootBaseBlock.uncles
BlockBlock.get()Block.items()Block.keys()Block.values()Block.extraDataBlock.gasLimitBlock.gasUsedBlock.hashBlock.logsBloomBlock.minerBlock.mixHashBlock.nonceBlock.numberBlock.parentHashBlock.receiptsRootBlock.sha3UnclesBlock.sizeBlock.stateRootBlock.timestampBlock.transactionsBlock.transactionsRootBlock.uncles
MinedBlockMinedBlock.get()MinedBlock.items()MinedBlock.keys()MinedBlock.values()MinedBlock.difficultyMinedBlock.extraDataMinedBlock.gasLimitMinedBlock.gasUsedMinedBlock.hashMinedBlock.logsBloomMinedBlock.minerMinedBlock.mixHashMinedBlock.nonceMinedBlock.numberMinedBlock.parentHashMinedBlock.receiptsRootMinedBlock.sha3UnclesMinedBlock.sizeMinedBlock.stateRootMinedBlock.timestampMinedBlock.totalDifficultyMinedBlock.transactionsMinedBlock.transactionsRootMinedBlock.uncles
ShanghaiCapellaBlockShanghaiCapellaBlock.get()ShanghaiCapellaBlock.items()ShanghaiCapellaBlock.keys()ShanghaiCapellaBlock.values()ShanghaiCapellaBlock.extraDataShanghaiCapellaBlock.gasLimitShanghaiCapellaBlock.gasUsedShanghaiCapellaBlock.hashShanghaiCapellaBlock.logsBloomShanghaiCapellaBlock.minerShanghaiCapellaBlock.mixHashShanghaiCapellaBlock.nonceShanghaiCapellaBlock.numberShanghaiCapellaBlock.parentHashShanghaiCapellaBlock.receiptsRootShanghaiCapellaBlock.sha3UnclesShanghaiCapellaBlock.sizeShanghaiCapellaBlock.stateRootShanghaiCapellaBlock.timestampShanghaiCapellaBlock.transactionsShanghaiCapellaBlock.transactionsRootShanghaiCapellaBlock.unclesShanghaiCapellaBlock.withdrawals
StakingWithdrawalTinyBlockTransactions
- evmspec.structs.header module
- evmspec.structs.log module
DataData.maketrans()Data.capitalize()Data.center()Data.count()Data.decode()Data.endswith()Data.expandtabs()Data.find()Data.fromhex()Data.hex()Data.index()Data.isalnum()Data.isalpha()Data.isascii()Data.isdigit()Data.islower()Data.isspace()Data.istitle()Data.isupper()Data.join()Data.ljust()Data.lower()Data.lstrip()Data.partition()Data.removeprefix()Data.removesuffix()Data.replace()Data.rfind()Data.rindex()Data.rjust()Data.rpartition()Data.rsplit()Data.rstrip()Data.split()Data.splitlines()Data.startswith()Data.strip()Data.swapcase()Data.title()Data.translate()Data.upper()Data.zfill()Data.__new__Data.as_addressData.as_uintData.as_uint128Data.as_uint256Data.as_uint64Data.as_uint8Data.to_0x_hex
FullLogLogSmallLogTinyLogTopicTopic.__new__()Topic.maketrans()Topic.capitalize()Topic.center()Topic.count()Topic.decode()Topic.endswith()Topic.expandtabs()Topic.find()Topic.fromhex()Topic.hex()Topic.index()Topic.isalnum()Topic.isalpha()Topic.isascii()Topic.isdigit()Topic.islower()Topic.isspace()Topic.istitle()Topic.isupper()Topic.join()Topic.ljust()Topic.lower()Topic.lstrip()Topic.partition()Topic.removeprefix()Topic.removesuffix()Topic.replace()Topic.rfind()Topic.rindex()Topic.rjust()Topic.rpartition()Topic.rsplit()Topic.rstrip()Topic.split()Topic.splitlines()Topic.startswith()Topic.strip()Topic.swapcase()Topic.title()Topic.translate()Topic.upper()Topic.zfill()Topic.as_addressTopic.as_uintTopic.as_uint104Topic.as_uint112Topic.as_uint120Topic.as_uint128Topic.as_uint136Topic.as_uint144Topic.as_uint152Topic.as_uint16Topic.as_uint160Topic.as_uint168Topic.as_uint176Topic.as_uint184Topic.as_uint192Topic.as_uint200Topic.as_uint208Topic.as_uint216Topic.as_uint224Topic.as_uint232Topic.as_uint24Topic.as_uint240Topic.as_uint256Topic.as_uint32Topic.as_uint40Topic.as_uint48Topic.as_uint56Topic.as_uint64Topic.as_uint72Topic.as_uint8Topic.as_uint80Topic.as_uint88Topic.as_uint96Topic.to_0x_hex
- evmspec.structs.receipt module
ArbitrumFeeStatsFeeStatsFullTransactionReceiptFullTransactionReceipt.get()FullTransactionReceipt.items()FullTransactionReceipt.keys()FullTransactionReceipt.values()FullTransactionReceipt.blobGasUsedFullTransactionReceipt.blockHashFullTransactionReceipt.blockNumberFullTransactionReceipt.contractAddressFullTransactionReceipt.cumulativeGasUsedFullTransactionReceipt.effectiveGasPriceFullTransactionReceipt.feeStatsFullTransactionReceipt.gasUsedFullTransactionReceipt.l1BlockNumberFullTransactionReceipt.l1FeeFullTransactionReceipt.l1FeeScalarFullTransactionReceipt.l1GasPriceFullTransactionReceipt.l1GasUsedFullTransactionReceipt.l1InboxBatchInfoFullTransactionReceipt.logsFullTransactionReceipt.logsBloomFullTransactionReceipt.statusFullTransactionReceipt.transactionHashFullTransactionReceipt.transactionIndexFullTransactionReceipt.type
StatusTransactionReceiptTransactionReceipt.get()TransactionReceipt.items()TransactionReceipt.keys()TransactionReceipt.values()TransactionReceipt.blobGasUsedTransactionReceipt.blockNumberTransactionReceipt.contractAddressTransactionReceipt.cumulativeGasUsedTransactionReceipt.effectiveGasPriceTransactionReceipt.feeStatsTransactionReceipt.gasUsedTransactionReceipt.l1BlockNumberTransactionReceipt.l1FeeTransactionReceipt.l1FeeScalarTransactionReceipt.l1GasPriceTransactionReceipt.l1GasUsedTransactionReceipt.l1InboxBatchInfoTransactionReceipt.logsTransactionReceipt.statusTransactionReceipt.transactionHashTransactionReceipt.transactionIndexTransactionReceipt.type
- evmspec.structs.transaction module
AccessListEntryAuthorizationListEntryAuthorizationListEntry.get()AuthorizationListEntry.items()AuthorizationListEntry.keys()AuthorizationListEntry.values()AuthorizationListEntry.addressAuthorizationListEntry.chainIdAuthorizationListEntry.gasAuthorizationListEntry.nonceAuthorizationListEntry.rAuthorizationListEntry.sAuthorizationListEntry.yParity
Transaction1559Transaction1559.get()Transaction1559.items()Transaction1559.keys()Transaction1559.values()Transaction1559.accessListTransaction1559.blockTransaction1559.blockHashTransaction1559.blockNumberTransaction1559.chainIdTransaction1559.gasTransaction1559.gasPriceTransaction1559.hashTransaction1559.inputTransaction1559.maxFeePerGasTransaction1559.maxPriorityFeePerGasTransaction1559.nonceTransaction1559.rTransaction1559.sTransaction1559.senderTransaction1559.toTransaction1559.transactionIndexTransaction1559.typeTransaction1559.vTransaction1559.valueTransaction1559.yParity
Transaction2930Transaction2930.get()Transaction2930.items()Transaction2930.keys()Transaction2930.values()Transaction2930.accessListTransaction2930.blockTransaction2930.blockHashTransaction2930.blockNumberTransaction2930.chainIdTransaction2930.gasTransaction2930.gasPriceTransaction2930.hashTransaction2930.inputTransaction2930.nonceTransaction2930.rTransaction2930.sTransaction2930.senderTransaction2930.toTransaction2930.transactionIndexTransaction2930.typeTransaction2930.vTransaction2930.valueTransaction2930.yParity
Transaction4844Transaction4844.get()Transaction4844.items()Transaction4844.keys()Transaction4844.values()Transaction4844.accessListTransaction4844.blobVersionedHashesTransaction4844.blockTransaction4844.blockHashTransaction4844.blockNumberTransaction4844.chainIdTransaction4844.gasTransaction4844.gasPriceTransaction4844.hashTransaction4844.inputTransaction4844.maxFeePerBlobGasTransaction4844.maxFeePerGasTransaction4844.maxPriorityFeePerGasTransaction4844.nonceTransaction4844.rTransaction4844.sTransaction4844.senderTransaction4844.toTransaction4844.transactionIndexTransaction4844.typeTransaction4844.vTransaction4844.valueTransaction4844.yParity
Transaction7702Transaction7702.get()Transaction7702.items()Transaction7702.keys()Transaction7702.values()Transaction7702.accessListTransaction7702.authorizationListTransaction7702.blockTransaction7702.blockHashTransaction7702.blockNumberTransaction7702.chainIdTransaction7702.gasTransaction7702.gasPriceTransaction7702.hashTransaction7702.inputTransaction7702.maxFeePerGasTransaction7702.maxPriorityFeePerGasTransaction7702.nonceTransaction7702.rTransaction7702.sTransaction7702.senderTransaction7702.toTransaction7702.transactionIndexTransaction7702.typeTransaction7702.vTransaction7702.valueTransaction7702.yParity
TransactionLegacyTransactionLegacy.get()TransactionLegacy.items()TransactionLegacy.keys()TransactionLegacy.values()TransactionLegacy.accessListTransactionLegacy.blockTransactionLegacy.blockHashTransactionLegacy.blockNumberTransactionLegacy.chainIdTransactionLegacy.gasTransactionLegacy.gasPriceTransactionLegacy.hashTransactionLegacy.inputTransactionLegacy.nonceTransactionLegacy.rTransactionLegacy.sTransactionLegacy.senderTransactionLegacy.toTransactionLegacy.transactionIndexTransactionLegacy.typeTransactionLegacy.vTransactionLegacy.value
TransactionRLPTransactionRLP.get()TransactionRLP.items()TransactionRLP.keys()TransactionRLP.values()TransactionRLP.accessListTransactionRLP.arbSubTypeTransactionRLP.arbTypeTransactionRLP.blockTransactionRLP.blockHashTransactionRLP.blockNumberTransactionRLP.chainIdTransactionRLP.gasTransactionRLP.gasPriceTransactionRLP.hashTransactionRLP.indexInParentTransactionRLP.inputTransactionRLP.l1BlockNumberTransactionRLP.l1TxOriginTransactionRLP.nonceTransactionRLP.rTransactionRLP.sTransactionRLP.senderTransactionRLP.toTransactionRLP.transactionIndexTransactionRLP.vTransactionRLP.value
- Module contents
ErigonBlockHeaderFullTransactionReceiptFullTransactionReceipt.get()FullTransactionReceipt.items()FullTransactionReceipt.keys()FullTransactionReceipt.values()FullTransactionReceipt.blobGasUsedFullTransactionReceipt.blockHashFullTransactionReceipt.blockNumberFullTransactionReceipt.contractAddressFullTransactionReceipt.cumulativeGasUsedFullTransactionReceipt.effectiveGasPriceFullTransactionReceipt.feeStatsFullTransactionReceipt.gasUsedFullTransactionReceipt.l1BlockNumberFullTransactionReceipt.l1FeeFullTransactionReceipt.l1FeeScalarFullTransactionReceipt.l1GasPriceFullTransactionReceipt.l1GasUsedFullTransactionReceipt.l1InboxBatchInfoFullTransactionReceipt.logsFullTransactionReceipt.logsBloomFullTransactionReceipt.statusFullTransactionReceipt.transactionHashFullTransactionReceipt.transactionIndexFullTransactionReceipt.type
LogTransaction1559Transaction1559.get()Transaction1559.items()Transaction1559.keys()Transaction1559.values()Transaction1559.accessListTransaction1559.blockTransaction1559.blockHashTransaction1559.blockNumberTransaction1559.chainIdTransaction1559.gasTransaction1559.gasPriceTransaction1559.hashTransaction1559.inputTransaction1559.maxFeePerGasTransaction1559.maxPriorityFeePerGasTransaction1559.nonceTransaction1559.rTransaction1559.sTransaction1559.senderTransaction1559.toTransaction1559.transactionIndexTransaction1559.typeTransaction1559.vTransaction1559.valueTransaction1559.yParity
Transaction2930Transaction2930.get()Transaction2930.items()Transaction2930.keys()Transaction2930.values()Transaction2930.accessListTransaction2930.blockTransaction2930.blockHashTransaction2930.blockNumberTransaction2930.chainIdTransaction2930.gasTransaction2930.gasPriceTransaction2930.hashTransaction2930.inputTransaction2930.nonceTransaction2930.rTransaction2930.sTransaction2930.senderTransaction2930.toTransaction2930.transactionIndexTransaction2930.typeTransaction2930.vTransaction2930.valueTransaction2930.yParity
Transaction4844Transaction4844.get()Transaction4844.items()Transaction4844.keys()Transaction4844.values()Transaction4844.accessListTransaction4844.blobVersionedHashesTransaction4844.blockTransaction4844.blockHashTransaction4844.blockNumberTransaction4844.chainIdTransaction4844.gasTransaction4844.gasPriceTransaction4844.hashTransaction4844.inputTransaction4844.maxFeePerBlobGasTransaction4844.maxFeePerGasTransaction4844.maxPriorityFeePerGasTransaction4844.nonceTransaction4844.rTransaction4844.sTransaction4844.senderTransaction4844.toTransaction4844.transactionIndexTransaction4844.typeTransaction4844.vTransaction4844.valueTransaction4844.yParity
Transaction7702Transaction7702.get()Transaction7702.items()Transaction7702.keys()Transaction7702.values()Transaction7702.accessListTransaction7702.authorizationListTransaction7702.blockTransaction7702.blockHashTransaction7702.blockNumberTransaction7702.chainIdTransaction7702.gasTransaction7702.gasPriceTransaction7702.hashTransaction7702.inputTransaction7702.maxFeePerGasTransaction7702.maxPriorityFeePerGasTransaction7702.nonceTransaction7702.rTransaction7702.sTransaction7702.senderTransaction7702.toTransaction7702.transactionIndexTransaction7702.typeTransaction7702.vTransaction7702.valueTransaction7702.yParity
TransactionLegacyTransactionLegacy.get()TransactionLegacy.items()TransactionLegacy.keys()TransactionLegacy.values()TransactionLegacy.accessListTransactionLegacy.blockTransactionLegacy.blockHashTransactionLegacy.blockNumberTransactionLegacy.chainIdTransactionLegacy.gasTransactionLegacy.gasPriceTransactionLegacy.hashTransactionLegacy.inputTransactionLegacy.nonceTransactionLegacy.rTransactionLegacy.sTransactionLegacy.senderTransactionLegacy.toTransactionLegacy.transactionIndexTransactionLegacy.typeTransactionLegacy.vTransactionLegacy.value
TransactionRLPTransactionRLP.get()TransactionRLP.items()TransactionRLP.keys()TransactionRLP.values()TransactionRLP.accessListTransactionRLP.arbSubTypeTransactionRLP.arbTypeTransactionRLP.blockTransactionRLP.blockHashTransactionRLP.blockNumberTransactionRLP.chainIdTransactionRLP.gasTransactionRLP.gasPriceTransactionRLP.hashTransactionRLP.indexInParentTransactionRLP.inputTransactionRLP.l1BlockNumberTransactionRLP.l1TxOriginTransactionRLP.nonceTransactionRLP.rTransactionRLP.sTransactionRLP.senderTransactionRLP.toTransactionRLP.transactionIndexTransactionRLP.vTransactionRLP.value
TransactionReceiptTransactionReceipt.get()TransactionReceipt.items()TransactionReceipt.keys()TransactionReceipt.values()TransactionReceipt.blobGasUsedTransactionReceipt.blockNumberTransactionReceipt.contractAddressTransactionReceipt.cumulativeGasUsedTransactionReceipt.effectiveGasPriceTransactionReceipt.feeStatsTransactionReceipt.gasUsedTransactionReceipt.l1BlockNumberTransactionReceipt.l1FeeTransactionReceipt.l1FeeScalarTransactionReceipt.l1GasPriceTransactionReceipt.l1GasUsedTransactionReceipt.l1InboxBatchInfoTransactionReceipt.logsTransactionReceipt.statusTransactionReceipt.transactionHashTransactionReceipt.transactionIndexTransactionReceipt.type
Module contents
This library provides a collection of msgspec.Struct definitions for use with the Ethereum Virtual Machine.
- Modules:
block: Contains structures related to Ethereum blocks.header: Contains structures related to Ethereum block headers.log: Contains structures related to Ethereum logs.receipt: Contains structures related to Ethereum transaction receipts.trace: Contains structures related to Ethereum transaction traces.transaction: Contains structures related to Ethereum transactions.- Structs:
ErigonBlockHeader: Represents a block header in the Erigon client.FullTransactionReceipt: Represents a full transaction receipt.TransactionReceipt: Represents a transaction receipt.FilterTrace: Represents a union of different trace types.Transaction: Represents a generic transaction.AnyTransaction: Represents any type of transaction.TransactionRLP: Represents an RLP encoded transaction.TransactionLegacy: Represents a legacy transaction.Transaction2930: Represents a transaction with EIP-2930.Transaction1559: Represents a transaction with EIP-1559.
- class evmspec.ErigonBlockHeader[source]
Bases:
LazyDictStructRepresents a block header in the Erigon client.
This class inherits from
LazyDictStruct, which provides features for handling block header data, ensuring immutability and strictness to known fields. It is currently under development, and specific features may not yet be functional. There may be known issues needing resolution.See also
LazyDictStructfor more details on the underlying structure and its features.
- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- coinbase: Address
The address of the miner who mined the block.
Examples
>>> header = ErigonBlockHeader( ... timestamp=UnixTimestamp(1638316800), ... parentHash=HexBytes("0xabc"), ... uncleHash=HexBytes("0xdef"), ... coinbase=Address("0x123"), ... root=HexBytes("0x456"), ... difficulty=uint(1000) ... ) >>> header.coinbase Address('0x123')
- difficulty: uint
The difficulty level of the block.
Examples
>>> header = ErigonBlockHeader( ... timestamp=UnixTimestamp(1638316800), ... parentHash=HexBytes("0xabc"), ... uncleHash=HexBytes("0xdef"), ... coinbase=Address("0x123"), ... root=HexBytes("0x456"), ... difficulty=uint(1000) ... ) >>> header.difficulty uint(1000)
- parentHash: HexBytes
The hash of the parent block.
Examples
>>> header = ErigonBlockHeader( ... timestamp=UnixTimestamp(1638316800), ... parentHash=HexBytes("0xabc"), ... uncleHash=HexBytes("0xdef"), ... coinbase=Address("0x123"), ... root=HexBytes("0x456"), ... difficulty=uint(1000) ... ) >>> header.parentHash HexBytes('0xabc')
- root: HexBytes
The root hash of the state trie.
Examples
>>> header = ErigonBlockHeader( ... timestamp=UnixTimestamp(1638316800), ... parentHash=HexBytes("0xabc"), ... uncleHash=HexBytes("0xdef"), ... coinbase=Address("0x123"), ... root=HexBytes("0x456"), ... difficulty=uint(1000) ... ) >>> header.root HexBytes('0x456')
- timestamp: UnixTimestamp
The Unix timestamp for when the block was collated.
Examples
>>> header = ErigonBlockHeader( ... timestamp=UnixTimestamp(1638316800), ... parentHash=HexBytes("0xabc"), ... uncleHash=HexBytes("0xdef"), ... coinbase=Address("0x123"), ... root=HexBytes("0x456"), ... difficulty=uint(1000) ... ) >>> header.timestamp UnixTimestamp(1638316800)
- uncleHash: HexBytes
The hash of the list of uncle headers.
Examples
>>> header = ErigonBlockHeader( ... timestamp=UnixTimestamp(1638316800), ... parentHash=HexBytes("0xabc"), ... uncleHash=HexBytes("0xdef"), ... coinbase=Address("0x123"), ... root=HexBytes("0x456"), ... difficulty=uint(1000) ... ) >>> header.uncleHash HexBytes('0xdef')
- class evmspec.FullTransactionReceipt[source]
Bases:
TransactionReceiptExtends
TransactionReceiptto include full details.- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- blobGasUsed: Wei
This field is sometimes present, only on Mainnet.
Examples
>>> receipt.blobGasUsed Wei(0)
- blockHash: HexBytes
The hash of the block that contains the transaction.
Examples
>>> full_receipt.blockHash HexBytes('0x...')
- blockNumber: BlockNumber
The block number that contains the transaction.
Examples
>>> receipt.blockNumber BlockNumber(1234567)
- contractAddress: Address | None
The contract address created, if the transaction was a contract creation, otherwise None.
Examples
>>> receipt.contractAddress Address('0x...')
- cumulativeGasUsed: Wei
The total amount of gas used in the block up to and including this transaction.
Examples
>>> receipt.cumulativeGasUsed Wei(100000)
- effectiveGasPrice: Wei
The actual value per gas deducted from the sender’s account.
This field is only present on Mainnet.
Examples
>>> receipt.effectiveGasPrice Wei(1000000000)
- property feeStats: ArbitrumFeeStats
This field is only present on Arbitrum.
Examples
>>> receipt.feeStats ArbitrumFeeStats(...)
- gasUsed: Wei
The amount of gas used by this transaction, not counting internal transactions, calls or delegate calls.
Examples
>>> receipt.gasUsed Wei(21000)
- l1BlockNumber: BlockNumber
This field is only present on Arbitrum.
Examples
>>> receipt.l1BlockNumber BlockNumber(1234567)
- l1FeeScalar: Decimal
This field is only present on Optimism.
Examples
>>> receipt.l1FeeScalar Decimal('1.0')
- l1GasPrice: Wei
This field is only present on Optimism.
Examples
>>> receipt.l1GasPrice Wei(1000000000)
- l1InboxBatchInfo: HexBytes | None
This field is only present on Arbitrum.
Examples
>>> receipt.l1InboxBatchInfo HexBytes('0x...')
- property logs: Tuple[Log, ...]
The logs that were generated during this transaction.
Examples
>>> receipt.logs (Log(...), Log(...))
- logsBloom: HexBytes
The bloom filter for all logs in this block.
Examples
>>> full_receipt.logsBloom HexBytes('0x...')
- status: Status
The status of the transaction, represented by the
Statusenum:Status.success(1) if the transaction succeeded,Status.failure(0) if it failed.Examples
>>> receipt.status <Status.success: 1>
- transactionHash: TransactionHash
The unique hash of this transaction.
Examples
>>> receipt.transactionHash TransactionHash('0x...')
- transactionIndex: TransactionIndex
The position of this transaction within the block.
Examples
>>> receipt.transactionIndex TransactionIndex(0)
- class evmspec.Log[source]
Bases:
SmallLogRepresents a comprehensive log structure with additional transaction details.
See also
SmallLogfor the log structure with address and data.- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- property block: BlockNumber | None
A shorthand getter for ‘blockNumber’.
- blockNumber: BlockNumber | None
The block where the transaction was included where the log originated from. None for pending transactions.
- removed: bool | None
True when the log was removed, due to a chain reorganization. False if it’s a valid log.
- topics: Tuple[Topic, ...]
An array of 0 to 4 32-byte topics. The first topic is the event signature and the others are indexed filters on the event return data.
- transactionHash: TransactionHash
The hash of the transaction that generated the log.
- transactionIndex: TransactionIndex
The index of the transaction in the block, where the log originated from.
- class evmspec.Transaction1559[source]
Bases:
_TransactionBaseRepresents a type-1559 (EIP-1559) Ethereum transaction with dynamic fee.
- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- property accessList: List[AccessListEntry]
Decodes the access list from raw format to a list of AccessListEntry.
Example
>>> transaction = _TransactionBase(...) >>> access_list = transaction.accessList >>> isinstance(access_list, list) True >>> isinstance(access_list[0], AccessListEntry) True
See also
AccessListEntry
- property block: BlockNumber
A shorthand getter for blockNumber.
Example
>>> transaction = _TransactionBase(...) >>> transaction.block == transaction.blockNumber True
- blockNumber: BlockNumber
The number of the block including this transaction.
- chainId: ChainId | None
The chain id of the transaction, if any.
None for v in {27, 28}, otherwise derived from eip-155.
This field is not included in the transactions field of a eth_getBlock response.
- hash: TransactionHash
The hash of the transaction.
- input: HexBytes
The data sent along with the transaction.
- r: HexBytes
The R field of the signature.
- s: HexBytes
The S field of the signature.
- sender: Address
The address of the sender.
Note
This attribute is mapped to the
field()name ‘from’ during serialization and deserialization.
- transactionIndex: TransactionIndex
The index position of the transaction in the block.
- class evmspec.Transaction2930[source]
Bases:
_TransactionBaseRepresents a type-2930 (EIP-2930) Ethereum transaction with an access list.
- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- property accessList: List[AccessListEntry]
Decodes the access list from raw format to a list of AccessListEntry.
Example
>>> transaction = _TransactionBase(...) >>> access_list = transaction.accessList >>> isinstance(access_list, list) True >>> isinstance(access_list[0], AccessListEntry) True
See also
AccessListEntry
- property block: BlockNumber
A shorthand getter for blockNumber.
Example
>>> transaction = _TransactionBase(...) >>> transaction.block == transaction.blockNumber True
- blockNumber: BlockNumber
The number of the block including this transaction.
- chainId: ChainId | None
The chain id of the transaction, if any.
None for v in {27, 28}, otherwise derived from eip-155.
This field is not included in the transactions field of a eth_getBlock response.
- hash: TransactionHash
The hash of the transaction.
- input: HexBytes
The data sent along with the transaction.
- r: HexBytes
The R field of the signature.
- s: HexBytes
The S field of the signature.
- sender: Address
The address of the sender.
Note
This attribute is mapped to the
field()name ‘from’ during serialization and deserialization.
- transactionIndex: TransactionIndex
The index position of the transaction in the block.
- class evmspec.Transaction4844[source]
Bases:
Transaction1559Represents a type-1559 (EIP-1559) Ethereum transaction with dynamic fee.
- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- property accessList: List[AccessListEntry]
Decodes the access list from raw format to a list of AccessListEntry.
Example
>>> transaction = _TransactionBase(...) >>> access_list = transaction.accessList >>> isinstance(access_list, list) True >>> isinstance(access_list[0], AccessListEntry) True
See also
AccessListEntry
- blobVersionedHashes: Tuple[HexBytes32, ...]
- property block: BlockNumber
A shorthand getter for blockNumber.
Example
>>> transaction = _TransactionBase(...) >>> transaction.block == transaction.blockNumber True
- blockNumber: BlockNumber
The number of the block including this transaction.
- chainId: ChainId | None
The chain id of the transaction, if any.
None for v in {27, 28}, otherwise derived from eip-155.
This field is not included in the transactions field of a eth_getBlock response.
- hash: TransactionHash
The hash of the transaction.
- input: HexBytes
The data sent along with the transaction.
- r: HexBytes
The R field of the signature.
- s: HexBytes
The S field of the signature.
- sender: Address
The address of the sender.
Note
This attribute is mapped to the
field()name ‘from’ during serialization and deserialization.
- transactionIndex: TransactionIndex
The index position of the transaction in the block.
- class evmspec.Transaction7702[source]
Bases:
Transaction1559Represents a type-7702 (EIP-7702) Ethereum transaction to set an EOA’s bytecode.
- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- property accessList: List[AccessListEntry]
Decodes the access list from raw format to a list of AccessListEntry.
Example
>>> transaction = _TransactionBase(...) >>> access_list = transaction.accessList >>> isinstance(access_list, list) True >>> isinstance(access_list[0], AccessListEntry) True
See also
AccessListEntry
- property authorizationList: List[AuthorizationListEntry]
Decodes the authorization list from raw format to a list of AuthorizationListEntry.
Example
>>> transaction = _TransactionBase(...) >>> access_list = transaction.accessList >>> isinstance(access_list, list) True >>> isinstance(access_list[0], AccessListEntry) True
See also
AccessListEntry
- property block: BlockNumber
A shorthand getter for blockNumber.
Example
>>> transaction = _TransactionBase(...) >>> transaction.block == transaction.blockNumber True
- blockNumber: BlockNumber
The number of the block including this transaction.
- chainId: ChainId | None
The chain id of the transaction, if any.
None for v in {27, 28}, otherwise derived from eip-155.
This field is not included in the transactions field of a eth_getBlock response.
- hash: TransactionHash
The hash of the transaction.
- input: HexBytes
The data sent along with the transaction.
- r: HexBytes
The R field of the signature.
- s: HexBytes
The S field of the signature.
- sender: Address
The address of the sender.
Note
This attribute is mapped to the
field()name ‘from’ during serialization and deserialization.
- transactionIndex: TransactionIndex
The index position of the transaction in the block.
- class evmspec.TransactionLegacy[source]
Bases:
_TransactionBaseRepresents a Legacy Ethereum transaction (pre-EIP-2718).
- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- property accessList: List[AccessListEntry]
Decodes the access list from raw format to a list of AccessListEntry.
Example
>>> transaction = _TransactionBase(...) >>> access_list = transaction.accessList >>> isinstance(access_list, list) True >>> isinstance(access_list[0], AccessListEntry) True
See also
AccessListEntry
- property block: BlockNumber
A shorthand getter for blockNumber.
Example
>>> transaction = _TransactionBase(...) >>> transaction.block == transaction.blockNumber True
- blockNumber: BlockNumber
The number of the block including this transaction.
- chainId: ChainId | None
The chain id of the transaction, if any.
None for v in {27, 28}, otherwise derived from eip-155.
This field is not included in the transactions field of a eth_getBlock response.
- hash: TransactionHash
The hash of the transaction.
- input: HexBytes
The data sent along with the transaction.
- r: HexBytes
The R field of the signature.
- s: HexBytes
The S field of the signature.
- sender: Address
The address of the sender.
Note
This attribute is mapped to the
field()name ‘from’ during serialization and deserialization.
- transactionIndex: TransactionIndex
The index position of the transaction in the block.
- class evmspec.TransactionRLP[source]
Bases:
_TransactionBaseRepresents a RLP encoded transaction that might have network-specific fields.
- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- property accessList: List[AccessListEntry]
Decodes the access list from raw format to a list of AccessListEntry.
Example
>>> transaction = _TransactionBase(...) >>> access_list = transaction.accessList >>> isinstance(access_list, list) True >>> isinstance(access_list[0], AccessListEntry) True
See also
AccessListEntry
- property block: BlockNumber
A shorthand getter for blockNumber.
Example
>>> transaction = _TransactionBase(...) >>> transaction.block == transaction.blockNumber True
- blockNumber: BlockNumber
The number of the block including this transaction.
- chainId: ChainId | None
The chain id of the transaction, if any.
None for v in {27, 28}, otherwise derived from eip-155.
This field is not included in the transactions field of a eth_getBlock response.
- hash: TransactionHash
The hash of the transaction.
- input: HexBytes
The data sent along with the transaction.
- l1BlockNumber: BlockNumber
- r: HexBytes
The R field of the signature.
- s: HexBytes
The S field of the signature.
- sender: Address
The address of the sender.
Note
This attribute is mapped to the
field()name ‘from’ during serialization and deserialization.
- transactionIndex: TransactionIndex
The index position of the transaction in the block.
- class evmspec.TransactionReceipt[source]
Bases:
LazyDictStructRepresents the receipt of a transaction within a block.
See also
- get(key, default=None)
Get the value associated with a key, or a default value if the key is not present.
- Parameters:
key (str) – The key to look up.
default (optional) – The value to return if the key is not present.
- Return type:
Example
>>> class MyStruct(DictStruct): ... field1: str >>> s = MyStruct(field1="value") >>> s.get('field1') 'value' >>> s.get('field2', 'default') 'default'
- items()
Returns an iterator over the struct’s field name and value pairs.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.items()) [('field1', 'value'), ('field2', 42)]
- keys()
Returns an iterator over the field names of the struct.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.keys()) ['field1', 'field2']
- values()
Returns an iterator over the struct’s field values.
Example
>>> class MyStruct(DictStruct): ... field1: str ... field2: int >>> s = MyStruct(field1="value", field2=42) >>> list(s.values()) ['value', 42]
- blobGasUsed: Wei
This field is sometimes present, only on Mainnet.
Examples
>>> receipt.blobGasUsed Wei(0)
- blockNumber: BlockNumber
The block number that contains the transaction.
Examples
>>> receipt.blockNumber BlockNumber(1234567)
- contractAddress: Address | None
The contract address created, if the transaction was a contract creation, otherwise None.
Examples
>>> receipt.contractAddress Address('0x...')
- cumulativeGasUsed: Wei
The total amount of gas used in the block up to and including this transaction.
Examples
>>> receipt.cumulativeGasUsed Wei(100000)
- effectiveGasPrice: Wei
The actual value per gas deducted from the sender’s account.
This field is only present on Mainnet.
Examples
>>> receipt.effectiveGasPrice Wei(1000000000)
- property feeStats: ArbitrumFeeStats
This field is only present on Arbitrum.
Examples
>>> receipt.feeStats ArbitrumFeeStats(...)
- gasUsed: Wei
The amount of gas used by this transaction, not counting internal transactions, calls or delegate calls.
Examples
>>> receipt.gasUsed Wei(21000)
- l1BlockNumber: BlockNumber
This field is only present on Arbitrum.
Examples
>>> receipt.l1BlockNumber BlockNumber(1234567)
- l1FeeScalar: Decimal
This field is only present on Optimism.
Examples
>>> receipt.l1FeeScalar Decimal('1.0')
- l1GasPrice: Wei
This field is only present on Optimism.
Examples
>>> receipt.l1GasPrice Wei(1000000000)
- l1InboxBatchInfo: HexBytes | None
This field is only present on Arbitrum.
Examples
>>> receipt.l1InboxBatchInfo HexBytes('0x...')
- property logs: Tuple[Log, ...]
The logs that were generated during this transaction.
Examples
>>> receipt.logs (Log(...), Log(...))
- status: Status
The status of the transaction, represented by the
Statusenum:Status.success(1) if the transaction succeeded,Status.failure(0) if it failed.Examples
>>> receipt.status <Status.success: 1>
- transactionHash: TransactionHash
The unique hash of this transaction.
Examples
>>> receipt.transactionHash TransactionHash('0x...')
- transactionIndex: TransactionIndex
The position of this transaction within the block.
Examples
>>> receipt.transactionIndex TransactionIndex(0)