Content
@
0 reply
0 recast
2 reactions
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
@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
@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
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