ERC20 Paymaster Support, Connect UI Transactions, and readContract msg.sender
![](https://blog.thirdweb.com/content/images/2024/05/skeleton-1-1.jpeg)
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.
![](https://blog.thirdweb.com/content/images/2024/07/Configure-an-ERC20-Paymaster.png)
Quick demo of the ERC20 Paymasters support in the @thirdweb connect SDK!
— Joaquim (@joenrv) July 16, 2024
What if @circle $USDC was all you ever needed to use onchain apps? pic.twitter.com/Yj2nai2fkk
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.
![](https://blog.thirdweb.com/content/images/2024/07/Screenshot-2024-07-18-at-1.44.13-PM.png)
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
.
![](https://blog.thirdweb.com/content/images/2024/07/Specify-msg.sender-in-contract-read.png)
Bug Fixes
- Connect UI components now respect custom RPC passed via the
chain
prop - Improved gas buffer when gas estimation fails on Pay transactions