Skip to content

Commit ce78454

Browse files
changeset
1 parent 5de5442 commit ce78454

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.changeset/tiny-pugs-hunt.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)