Skip to content

Commit

Permalink
Add Cancun fields to BlockData and TxParam types
Browse files Browse the repository at this point in the history
  • Loading branch information
fselmo committed Apr 10, 2024
1 parent 035cac7 commit cae0458
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web3/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,15 @@ class RPCError(TypedDict):
"TxParams",
{
"accessList": AccessList,
"blobVersionedHashes": Sequence[Union[str, HexStr, bytes, HexBytes]],
"chainId": int,
"data": Union[bytes, HexStr],
# addr or ens
"from": Union[Address, ChecksumAddress, str],
"gas": int,
# legacy pricing
"gasPrice": Wei,
"maxFeePerBlobGas": Union[str, Wei],
# dynamic fee pricing
"maxFeePerGas": Union[str, Wei],
"maxPriorityFeePerGas": Union[str, Wei],
Expand Down Expand Up @@ -221,6 +223,9 @@ class BlockData(TypedDict, total=False):
uncles: Sequence[HexBytes]
withdrawals: Sequence[WithdrawalData]
withdrawalsRoot: HexBytes
parentBeaconBlockRoot: HexBytes
blobGasUsed: int
excessBlobGas: int

# ExtraDataToPOAMiddleware replaces extraData w/ proofOfAuthorityData
proofOfAuthorityData: HexBytes
Expand Down

0 comments on commit cae0458

Please sign in to comment.