We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de5442 commit ce78454Copy full SHA for ce78454
.changeset/tiny-pugs-hunt.md
@@ -0,0 +1,20 @@
1
+---
2
+"thirdweb": minor
3
4
+
5
+ERC20 Token Paymaster support
6
7
+You can now use ERC20 Token Paymasters with Smart Wallets.
8
9
+```typescript
10
+import { base } from "thirdweb/chains";
11
+import { TokenPaymaster, smartWallet } from "thirdweb/wallets";
12
13
+const wallet = smartWallet({
14
+ chain: base,
15
+ sponsorGas: true, // only sponsor gas for the first ERC20 approval
16
+ overrides: {
17
+ tokenPaymaster: TokenPaymaster.BASE_USDC,
18
+ },
19
+});
20
+```
0 commit comments