Content pfp
Content
@
0 reply
0 recast
2 reactions

Steve pfp
Steve
@stevedylandev.eth
How hard is it to get a sponsored gas flow working with Coinbase Smart Wallets?
5 replies
1 recast
18 reactions

greg pfp
greg
@gregfromstl
You’re just trying to do basic transaction sponsorship? One line of code if you do it with thirdweb (still supports CBSW)
1 reply
0 recast
1 reaction

Steve pfp
Steve
@stevedylandev.eth
👀 link? I still need to look at some flows to see what would be most optimal. e.g. if I have to install a large package for ThirdWeb vs a smaller one with CB I would want to weigh those options
3 replies
0 recast
1 reaction

Harris pfp
Harris
@harris-
Wagmi has support for most of them if you're using that already, it's a pretty simple setup
0 reply
0 recast
1 reaction

greg pfp
greg
@gregfromstl
The simplest way is to create a coinbase wallet instance with createWallet("coinbase") then convert it to a smart wallet like below -- you can force CBSW to be used with a smartWalletOnly flag, see: https://portal.thirdweb.com/typescript/v5/createWallet#connecting-with-coinbase-wallet The "one line" way would be through the ConnectButton (just set the accountAbstraction flag) If you wanna get really fancy you can use EIP5792 sendCalls. This is my favorite approach but most wallets don't support it, luckily CBSW does so if that's you're only wallet it's great: https://portal.thirdweb.com/references/typescript/v5/eip5792/sendCalls
0 reply
0 recast
1 reaction

greg pfp
greg
@gregfromstl
Yep understandable, we tree shake well so the final build would only contain what you use but yeah you’re definitely adding a large library to your node_modules. In transit rn but can send docs in a couple hours
0 reply
0 recast
1 reaction