Skip to content

Feature/web3 v7 support #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kais92
Copy link

@kais92 kais92 commented May 6, 2025

Breaking Changes

  • Renamed all .rawTransaction properties to .raw_transaction (Web3.py v7 naming).
  • Completely refactored middleware for Web3.py v7: now a class-based middleware using wrap_make_request.
  • Overhauled FlashbotProvider:
    • Replaced internal Web3 HTTP utils with requests.post.
    • Removed deprecated imports from eth_account._utils.

Added

  • Official compatibility with Web3.py v7 (7.x series).
  • New helper get_transaction_type() to detect legacy, access list, and EIP-1559 tx types.
  • Expanded tests covering _parse_signed_tx for legacy, EIP-2930 (type=1), and EIP-1559 (type=2) transactions.

Fixed

  • Ensured numeric RLP fields (bytes) are converted to int.
  • Added recovery of chainId for legacy transactions signed under EIP-155.
  • Updated examples (examples/simple.py) to use .raw_transaction and new middleware/provider APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant