ERC20 Paymaster Support, Connect UI Transactions, and readContract msg.sender

thirdweb SDK v5.36.0

ERC20 Paymaster Support, Connect UI Transactions, and readContract msg.sender

ERC20 Paymaster Support

Using Account Abstraction, you can now pay for gas using any ERC20! Just set the erc20Paymaster override to the paymaster of your choice when sending a smart account transaction.

Recent Transactions in the Connect UI

The Connect UI now shows transactions completed during the current session. This is enabled automatically, there's no additional configuration needed! We're working on making this history persistent beyond a single session.

Optional from Parameter for Contract Reads

You can now specify a from field when reading contracts with readContract or useReadContract. This is useful for contract methods that may behave differently based on the msg.sender.


Bug Fixes

  • Connect UI components now respect custom RPC passed via the chain prop
  • Improved gas buffer when gas estimation fails on Pay transactions