Overview of Coinbase Smart Wallet
BuidlGuidl Talks · 4 Jun 2024 · 17:59
Will, a member of the Base team, explains why onboarding to onchain apps is still too hard and how Coinbase Smart Wallet addresses it. The session covers passkey sign-up with no extension or app install, self-custody, sponsored gas, and future ideas such as multiple signers and social recovery. A live demo creates a smart wallet and mints an NFT, then scaffolds a local app with the Build Onchain Apps toolkit.
Topics
From BuidlGuidl Talks, hosted by BuidlGuidl.
Transcript
my name is Will BS and I'm on the base team I've been on the base team since the beginning when we launched uh testet in February of 2023 smart wallet is in my opinion uh one of the next great big unlocks across the entire web 3 ecosystem um how many people here have uh tried to get their friend to use crypto like just raise a hands family member okay good I'm glad everybody's in the right place um so in that was you know pretty much a little bit awkward like hey you need to go over here go install this uh mobile app go over put this in your
browser um it's almost like trying to teach somebody how to turn on a computer for the first time um so we're going to talk about smart wallet because uh that removes that whole situation from the equation um so before we do that though there's a few people that are here that were with me yesterday we did a hackathon and happy hour and um so they already have this but for base we have a a huge Discord Community we have a really big um uh channel on farcaster that a lot of people are in but we have a very small um telegram group for Builders and you all uh if you'd like to
take a snap of this QR code um people that are watching this video Anon uh this is how to get into the uh private Builders telegram group um essentially like uh base teams hanging out in there our job in there is just really to try to enable you all to help you all in any way Building on Base so um definitely come hang out in that Community uh don't be a stranger like everybody's welcome in there to um ask questions and also Network and get help so all right what are we going to talk about with smart wallet we feel like it's the future of wallets um we're going to talk about kind of a little bit high level how it
works under the hood um and then also how you can build with it so um diving right in so You' probably heard this uh many of you have seen Jesse speak online um essentially like we want it to be as easy and as fast fast as possible to do things on chain we're building an open system for everyone in the world you may have heard we say basis for everyone in order for that to be possible we need a system that's just as easy as possible to enter for everyone we want to enable a billion users to come on chain and so when you uh when I was asking like how many of you had a friend that you've tried to help you know get some crypto
do something on chain like that falls all across the Spectrum like in my family family if I had a family member these are people that don't understand any terms like that we take you know totally um for granted that we deal with every day that we've internalized um anytime when somebody has to ask those questions it really creates kind of doubt like in uncertainty which um makes it harder for them to really activate and leverage all the benefits that open and permissionless systems specifically base can enable people to do so um in that theme like it's just way too hard to do things on chain uh you have to go somewhere else to install some I could I
could hear about like you know Meme coins like on fire recently like people want to go interact with them essentially like new people to the ecosystem first you got to go over there then when you go over there you're installing this app that's got its own ux it's just awkward now you can come back over here um I'm not going to read all these but you all know how it is like um even just going over to the far right side of the slide here even when you have the wallet oh actually you can't do anything with your wallet you're going to need to have a little bit of eth so now you need to go back over here and it just takes like by this time if we have a group of a hundred people they're going through all these steps people inevitably are going to
fall off so smart wallet what we're enable people to do is to be able to on board without installing anything we use a pass key if you used a pass key on your device installing like log into Google on your iPhone making it simple to just be able to do things on chain in addition to that we have this really cool thing called Magic spin so like if you have a coinbase account you install Smart wallet which by the way is self- custody only you're the one that can use it with your pass key you can use your coinbase balance to then be able to also interact on chain and then in the future we envision being able to add multiple
signers add things like social recovery so if you've ever used something like privy before where you might go to a website and using your email address you can create a wallet just for that one website with smart wallet using your email across the entire ecosystem so um I think this pretty much speaks for itself but essentially making it easy for people to move balances not only on base but to any network that's evm compatible um enabling multiple owners that's especially important running a business having multiple signers additional security activating that for smart wallet as well um and so um we go
from where we are today which is essentially a there's this really cool dap I want to use it I was kind of talking through it okay go install this yeah now you need got your wallet now you need to go add funds to your wallet okay now you can come back to the dab to I found this awesome dap I want to use it okay go for it so um let's dive in we can do a little bit of a uh I think kind of Hands-On demo what I feel like would be a really cool extension of this which is already possible is we've been looking at like scaffold e and scaffold base you can already plug in smart wallet to that so that would be a really cool thing that Builders like yourselves could essentially do is just make it to
where and all the stuff you've seen so far you don't even have to go install a wallet you connect directly from the local app that you've built and I'm going to do an example of that using a similar framework that you all can do as well um that'll allow you with your phone your computer to be able to uh set up a smart wallet and connect to it so um first off I'm just going to kind of demo how it would work uh if you wanted to just check it out for yourself um right now if you went to smartwall doxyz on your phone on your computer make sure you're in a private Tab and the reason uh why I'm in a private tab is because uh smart smart wallet's not
available like on mainnet yet so I'm still using like coinbase wallet or maybe using metamask or another wallet so you don't want that to uh trigger when you connect uh hit the connect button but um essentially I'm going to go ahead and I'm in my incognito tab so if you if you have one um make sure that your extensions are disabled but you can also do this on your phone if you go to uh smart Das wallet doxyz I'm going to go ahead and hit connect this is going to prompt me uh so if I already had one I could certainly take that option but um really want I what I want to illustrate right now is just how quick and easy this is um if I wasn't talking at already be done by now but I'm going to go ahead and just hit
the uh create a smart wallet button I'm going to use my Chrome profile uh it's going to ask me to create the key which I do right now I'm going to use my fingerprint it could also use a password and it's done so I can close this window you can already see up in the top right of the screen I now have an onchain address and I can go ahead and mint this nft so I'm doing this on my laptop if any of you are using a mobile device you could also be doing this on your phone you haven't installed anything you're just using the built-in Hardware when I click this I'm going to be prompted another thing that's unique
here is you're not even paying a transaction fee this is sponsored by Bas um also just uh if been building on sapoia lately the uh sapoia fees are ridiculous so the the compon the main component to that Network fee is actually coming from uh L1 just because of a lot of activity but um if this was on mainnet we saw earlier today in one of the demos I think it was like 0o cents um you as a builder with your own app can sponsor the gas so that when you acquire users you can immediately onboard them pay for their gas so that within seconds they're able to interact with your app and so my transactions
complete I'm going to go ahead and view it in my wallet and over here we can see it on on Bas scan so there it is I Meed an nft I set up my smart wallet um it took me longer to talk about smart wallet and how to do it than it actually did to do it and so that I feel like is the most important takeaway of what we just saw which is how easy it should be to do things on chain if you want to use this QR code you could also um just type this in your computer this is smart wallet.
this is our doc site s and what we're going to do right now is on that site I'm going to go over into another tab we can easily create our own Local app that enables people to connect with smart wallet so I'm going to use the uh build onchain template so if you're following along just go over here on the left under create a new app click using build on chain template um you'll want to is is everybody anybody need a second to get into the terminal all good cool all right so I'm gonna go ahead now and go into a terminal
session um you can see where actually I was already uh doing this before so I'm going to go ahead and just start with a um clean directory I'm coming back now and uh we're just going to do quick Copy pasta because I want you all just to see how easy it is is to just create this locally so that you can edit it how you'd like for your own application um for people that are really comfortable already doing this this doc site is essentially going to have everything that you need to just integrate this into your existing application so definitely check that out um but let's go back into our terminal so I'm just going to grab this right here I'm going
to create the uh project so we make this a little bit bigger so that's it's easier to see on the projector um can everybody see that okay let me zoom in maybe yeah how about that is that better cool you got it all right so I'm GNA paste that in I'm going to be prompted um let's go ahead and call this uh lfg and I'm going to uh we have a couple of like templates this um CLI tool will enable you to do this is also be this is also being being extended into other templates um we call it build onchain apps toolkit uh shorten we call it boat um so I'm just going to choose buy me a
coffee I'm going to just leave the default here I'm just I can also skip this over but you can see where this is already customizable you would also be able to customize this post creation so no stress there um but essentially we're going to take a few moments to set this up in the back end we're setting in the background we're setting up essentially a full stack app here that once we install the packages I'm going to pull it up in Chrome and similarly to how uh you saw how I went to smartwall doxyz we're going to have a similar site where you can connect a wallet and it's going to allow you to create a smart wallet so
and like I said you can um enable your uh own applications to do this as well but this will kind of give you a uh get on base environment to see how you can make this more portable to your own uh use case so just bless you waiting on this uh download to happen here and the sub module go get another coffee any questions while I'm uh waiting on this yeah hey what's up uh yeah one question is does it create a SE for each step no so that's that's a great question it's actually across the
entire uh Network and it's multi Network in the sense that you have you know your address and um you'll be able to use it to interact with any application without having to ever install it again you can also uh if you notice when I was setting up that wallet there was an option to restore the uh wallet as well so you get a new device computer you can um also set it up there as well so all right no definitely no because it's embedded in well in the sense that you could restore the uh wallet to another device um using that but uh you wouldn't be able to use
two different wallets together uh if you you like it's going to have the same address when you start i iPhone and I want use the same on for example yeah you can restore the wallet using yeah exactly so you got it okay so we're done next everybody else uh we all able to build locally cool awesome um next up we're going to go and set up our environment variables in this web folder does everybody see that right there where we're setting up the project so I'm just going to copy that I'm going to go drop back into my terminal we can see where I have the lfg folder I'm going to step in to
web and here's where I'm going to want to create that inv I'm going to just simply paste it right here so everybody following along and able to do that all good super easy cool once I save that I'm going to come back in and you're just going to again you already it's pretty straightforward but um you're just going to install and then run it so going to make one more shot of espresso while we're waiting on that um and then you're going to see here in a moment we're going to get a local host address um if I am doing en
manually am I am I creating a new en or I just one of local no you'll just create a new one in that web folder cool and then you can go ahead and run that followup command to install and then start and so here we have local hosts um one thing to note is when you open this in your browser if you're not in an incognito window it's going to look for metamask coinbase wallet any other wallet that you might be using so uh when I open this I'm going to oops uh move that into I'm already in in an incognito window great no I'm not
let's see here we go great and here we see that connect wallet button like we saw in the other example on smartwall let. XYZ when I hit this connect wallet button immediately it's going to prompt me again to create a smart wallet so when I do that I'm going to choose my Chrome profile and continue and that's going to give me an address up here so that's uh again like simply using the build on chain apps
toolkit you can actually create your own instance where you can start to build an app around allowing people to just connect seamlessly to your site um at a recommend checking out the uh GitHub for build on chain apps uh it is it's like U coinbase build- onchain apps and you can just see where like all kinds of features that uh will be super helpful to you specifically Building on Base right out of the box there's you know being able to create your account uh using smart wallet for their users
Related talks
- Building Onchain with Based UX
- Building Seamless Onchain Apps with Privy I Siddesh 0x
- Universal Ethereum Logins
- Bye bye browser wallet: How new signers can make your dapp mainstream ready?
- Product announcement: Safe
- Based Smart Wallets Workshop - ETHGlobal Brussels 2024
- The End Game Wallet: When Does Abstraction Go Too Far? by GregTheGreek | Devcon SEA
- The Wallet and UX Stack to Build Web3 Applications for the Masses
- Unlocking Mainstream Adoption through Hybrid Custody | ETHDenver 2023
