Skip to content
Compare
Choose a tag to compare
@jnsdls jnsdls released this 05 Dec 21:59
· 185 commits to main since this release
f98365c

Minor Changes

  • #5634 d1aa380 Thanks @joaquim-verges! - ERC20 Token Paymaster support

    You can now use ERC20 Token Paymasters with Smart Wallets.

    import { base } from "thirdweb/chains";
    import { TokenPaymaster, smartWallet } from "thirdweb/wallets";
    
    const wallet = smartWallet({
      chain: base,
      sponsorGas: true, // only sponsor gas for the first ERC20 approval
      overrides: {
        tokenPaymaster: TokenPaymaster.BASE_USDC,
      },
    });

Patch Changes