Encode Club x ETH Safari: Building with and Integrating Coinbase Wallet

Encode Club x ETHSafari Hackathon 2022 · 9 Sept 2022 · 40:14

Diego Lizarazo, a developer relations engineer at Coinbase, introduces Coinbase Wallet to hackers at the Encode Club x ETHSafari Hackathon. The workshop covers the wallet's self-custody model, its mobile and browser extension versions, the in-wallet dapp browser, and how to connect an app through the SDK, followed by a hands-on demo and questions. It also outlines the hackathon challenges and prizes for building with Coinbase Wallet.

Speakers

Topics

From Encode Club x ETHSafari Hackathon 2022, hosted by Encode.

Transcript

welcome to the coinbase wallet workshop i hope you're all great um i know some of you were in the previous workshop right now so nice to see you all again um and yeah sorry for opening late um this is diego from coinbase i'll let him introduce himself and then yeah hand it over to you diego yeah thank you very much so well welcome everyone i will try not to take a lot of your time with the intros although i do have a couple of slides where i'm going to introduce myself and i am going to give it at least one minute so more people could join and and see if they can do that if not just remember that we are going to uh share

also the recording of this session so if you miss any part of it uh well just come on like check the recording afterwards so i'm going to share my screen right now and then i will jump to uh my slides and we will go from there so let me put it in the slide show so don't worry not everything is just going to be slides we are also going to uh uh have like a demo part of it so so don't don't worry about that but at least the first part we're going to use this light so you have a common idea of what we're going to be doing so let's get it started so

okay so really quick agenda we're going to be talking about coinbase coinbase and web3 and then we're going to be jumping into uh coinbase wallet and at the very end we're going to do a little bit of like a coinbase workshop that may help you with the hackathon that we're going to have at each safari if i'm not mistaken so if you're interested in using coinbase wallet you're going to have a way to integrate with it and and well like a starting point that you can use um so now who am i like i already talked a lot and i have not told you anything about myself so i am diego lisa and i'm a developer relations engineer

so that means that i have the opportunity to talk with a lot of people all over the world which makes me incredibly excited uh if you guys have at some point a little bit of time and have access to chat i would really like to see where you guys are located where are you based right now i'm in south carolina in the us so i would like to learn more about you quite likely i will check those comments at the end so i don't get distracted by the chat and well since i'm sharing my screen i may not be able to do both things at once but i will check i'm really interested in learning more about that and in general like what i said is i get to talk a lot with developers and with people that want to learn more about our products about what we're doing about

how we can connect with you and how you can build interesting things with us now since we were talking about each safari uh i also would like to give you a reminder that we have some challenges and some prices so in the next few days if you're interested in checking again coinbase wallet as one of the uh ways that you can create your gap or your project in general uh then you have here these challenges and as you can see well you have some nice prices and it's all about like creating dapps with coinbase wallet uh like how you can integrate them and and also giving us some feedback we are really interested

in learning more about what you want to create how you want to create that and and to give you um new features and products that you can use so one of the most interesting things that i think i have been learning with coinbase is how much energy and the teams that are building these these tools have and uh that is not going to be possible if you don't give us feedback so not only try to participate for the challenges also uh take the opportunity to let us hear what you wanted what you need from us uh okay so let's talk about coinbase and web3 and

this slide here it's just pretty much kind of like telling you a little bit about the the company some of the things that we have accomplished and uh some of the things why you would like to uh work with us i always go like look at this one that is the verified users like the corner uh right now it's 103 i think like one or two months ago when i was doing a similar presentation i think it was like 98 million so that means that almost like five more million people are verified users have entered the coinbase ecosystem as a whole so i find that incredibly interesting but uh for developers i think this kind of tells you a little bit about the audience how many people you can reach and how many

well like assets uh are already kind of like included in the platform so that means that you can already um well share what you are creating uh with this many people and and have this kind of backup when you're working with coinbase um now building for web3 this is one of those things that we are quite aware at coinbase yet a lot of the technologies that you may be using in your day-to-day or that you may be using and to create your own dapps are still kind of like growing they may be better versions uh not everything is currently done it's still kind of like a

growing technology which gives you it's a double sword double-edged sword it gives you a lot of opportunities to create things that nobody else has created before for web3 uh but also it lacks a little bit of reliability that you may find in web 2. you know so a big part of what coinbase cloud in general is trying to do is to give you that reliable reliability uh we will see in another slide later that um i'm going to be talking about like the uh coinbase cloud kind of like one of the biggest well players here in the united states and really kind of what that uh is talking about is how solid we are as partners you know like we are not just kind of like here

uh to to work with a small group of people or just with some developers we are here to kind of be the the group the team that is going to be behind everything that you create for web3 and to provide the infrastructure that you are going to to be using um this one i think is just kind of like showing you some of the players that uh that we are kind of like trying to um work with in some of like the verticals that we are kind of working on so um this this in general is something that is going to keep growing so quite likely again like in two months i will have to make a new slide that has like

25 000 more things to include but just to give you an idea of the ecosystem that we're building around ourselves and that we are working with okay so i changed this slide again yesterday and uh it is mostly because we are going to be talking today about coinbase wallet i also included coinbase pay but i would recommend you to keep an eye on some of the announcements that we're going to have in the next couple of weeks we have a few more products and features that we're going to be uh releasing so this is by no means everything that we are uh going to share with developers is that is the things that i feel confident

showing you uh uh for this presentation so today is going to be all about coinbase wallet but you also have like coinbase pay uh and that's pretty much kind of like uh like the secure way to purchase or transfer crypto free for you and welcome this wallet we're going to get in a little bit more detail in a second which well this is where we're going to be talking um i get the chance to work with one of the teams that is building new features for coinbase wallet so a lot of the things that i'm going to share with you today uh directly comes from them and and believe me that they are amazing and they just keep pumping features like every day so uh it's kind of hard to

keep track of everything that they do so um why should you care about convince what so um [Music] pretty much the the big thing is that is the fastest growing wallet extension in the united states so like i mentioned before about audience uh when you're creating your own app you want to reach as many users as many uh people as you can so working with us is going to give you access to a lot of uh people that already trust coinbase and that already have their own accounts their own coinbase wallets working their own they have already downloaded their uh extensions and that you can access right

away so also is the most downloaded custom mobile wallet in the us and i mentioned it before about the plus 100 plus million users uh that are already part of the coinbase ecosystem and we can help on board in the world of web3 uh using our self-custody wallet so and apart from that i also kind of like i think in this one we are still already saying 98 million in the previous slide it was 103. you see that i i have to keep track of these things okay so now um uh i

think i didn't give me one second uh why should he care and i think i eliminated a slide that i wanted to share with you guys that it was about like uh uh did you know and okay but okay the important part about that slide is just to tell you about that the the differentiate coinbase wallet from uh coinbase exchange some people get a little bit mixed up the two of them so if you go to coinbase.com and you create your account there that's going to be the coinbase exchange that's pretty much a different product than coinbase wallet and also coinbase wallet is not a kyc wallet and

and it's also not a custodial wallet so it's a fully self-custody wallet and where you uh kind of like pretty much control your keys and whatever you do with that is your own business so you're kind of responsible for that um okay well it was this one so i guess i mixed up the order so this is the dislike that i was looking for so i have them in different order my apologies for that so the other important thing here is that you also have access uh mobile uh version of the convince wallet so you have it in android and ios and uh for today we're quite likely going to be working with the chrome extension uh for the small demo that i'm going to

show you at the end so that chrome extension you uh it's not just for chrome you pretty much also can use it on brave so and that's one of the two things that we're going to ask you to use when you are creating your own uh dabs especially when you're testing and for the hackathon in particular you can use or chrome or brave it is kind of one of the prerequisites so i recommend to download it and it's going to be one of the steps that we're going to have at the very beginning of calendar so okay so ready for web3 so these are some of like the features that you could be interested as a developer i

and i'm not going to go through all of them just to give a little bit more uh time for the the hands-on part at the end but uh part particularly i really like the browser that you can see at the very end because that helps developers to well that helps users to find the dabs that our developers are creating so uh if at some point you work with us and you have a wallet integration in your dab quite likely is going to be able to be discovered into that browser that already you have in the mobile version of uh the coinbase wallet

uh apart from that well you like something that i took advantage to as a user is that you also get like uh your yes username so like that but the unis and your username and um it was kind of like one of these things that we're giving you for free so if you get if you want to kind of try it that's and you haven't tried the wallet before as a user i recommend you to to do it apart from that if you are into nfts you also can keep track of your portfolio there and well you can check it especially in the documentation that i'm going to share at the end all the features that you can have with the coinbase wallet so apart from that in this slide i think the most important thing

is uh the four ways to connect and i think i already mentioned most of them that is going to be the browser extension the wallet on desktop hardware wallet on desktop and the mobile in-app that browser that you can use two so those are like the main four ones and today i'm just going to focus on the browser extension okay this is something like the new features for developers this is something that was released not long ago and it was kind of like a big win for uh our team and uh pretty much the reason is that we were getting a lot of feedback from our users and from our

developers and we wanted to improve like the ways that developers and users could experience uh wallet and for developers to be able to access test nets and and to be able to kind of like have like a better way to create gaps so that is kind of like the entire thing and if you go and download your um uh browser extension like the little gif uh animated is currently going to show you how to get to uh well the advanced features and i think in this one in particular is showing you how to add like the well to show you like the test nets that are

enabled in with your wallet so and you can see that is something there that you can do in the in the settings so how it was set up and how it works it was changed for the latest version but if you haven't used it before uh right now you can download the latest version and all these advanced settings are going to be included there so now coinbase wallet can only supports a bunch of test nets uh by default and um so like about phantom testnets optimistic and but since we are going to ask you to give us some feedback uh during the next few days uh if you can like uh play a little bit with uh the extension

and if you want uh different things especially in the advanced settings let us know and and quite likely we can put it on the list of features that we can start working on uh for future releases okay well so time to build so okay so i'm going to leave this slide there for a little bit especially for the uh url that i included here so this is going to come and show you uh a little bit the steps that you can use to uh start creating a small dap that integrates with coinbase wallet so in a second i'm going to get out of the

uh slides and we're going to go through some of these steps and um after that i will i will kind of point out where the documentation is uh where you can find other sample applications that you can use and um if you are going to be uh trying to participate with the coinbase challenge uh challenges that we're going like proposing for its safari uh this is kind of like a good way for you to get a little bit familiar with coinbase wallet and how you can integrate that with your own dap so you don't have to go like do a lot to to

participate in the challenges the main thing is just well uh integrate with coinbase wallet so if you follow um like the steps in that you're going to find in the in the link you quite likely are going to have a leg up on on what to do and how to do it okay so give it one more second and then i can jump into a little bit of hands on part of the presentation and like i said all this is going to be recorded so if you can like miss it uh right now you can check it out a bit later okay so i'm jumping here to assume for a second

so far do we have any questions in the chat is the chat uh enabled right now or not yep it is so um you can post whenever okay perfect so i'm going to wait until then to try to answer any questions if anyone has uh if not at least kind of like like i mentioned of the uh the at the start uh let me know where you're from where you are from where you're based right now uh i'm really interested in learning more about all of you and and if that's okay uh let's jump a little bit more into the workshop part so these are steps that you're going to

find in the link that i shared earlier uh a couple of seconds ago uh they're going to show you pretty much all the detail of what you need to do to start working working with coinbase wallet so you can follow them and i would recommend you to do all these steps on your own afterwards but i'm just going to go through most of them just to uh so you have an idea what to do what to expect i'm not expecting you to follow because well there are several things that could take some copy pasting so quite likely you will get lost if you are following me step by step but i will explain uh most of the things so uh what you will need i did mention

before that you're going to need a browser like chrome or brave then you're going to need to download the uh coinbase wallet that you can see that is giving you the link so i'm going to open it there for for a second so that's going to uh take you to the coinbase page and when you hit the download it's going to take you to the uh chrome store and in my case i already have it installed so i can't remove it which wouldn't be great for my demo in your case you should be able to say like hey download and then you should be able to install it without a problem and uh well if you don't know anything about the coinbase wallet you can check the demo and see where it goes from there

when you're done with that uh and you create your account that you pretty much can create for free and it takes you a couple of minutes while you are uh creating the new wall and you you're getting like the the recovery phrase and hopefully you saved the phrase if you haven't done it before uh but when you're done with these steps then you're going to get to the part there is a little bit more code and a little bit more like that so uh this particular uh sample is going to be using code code sandbox so i recommend that you create one of the free accounts so i did check this this morning i did have a free account so i'm going to be using that one

and um that uh a specific sample we're going to use this one that that is already linked here so i'm going to create it and we're going to jump there so this is the template here and what uh you're going to be asked is to fork it so you have it here the option and now i kind of start working on that one thing that i didn't mention before is that my throat is feeling really bad so i apologize if i cough for a couple of times it has been a couple of rough days for me so my apologies for that i'm going to move a little bit here

so we can check uh the code and at the end we're going to see the result in a different page so i'll be jumping back and forward between the instructions that we have here and our code that is going to be here so in the instructions the next part is going to like explain a little bit more about the project itself so that is just going to tell you a little bit about the different um folders that you have the different files and most of the modifications that we're going to do are going to be here in app.js i'm sorry now den is going to tell you a little bit more on the detail

of what you have in this file when we get to the part um better that we're going to copy paste some of the code directly here one of the things or you can select or you can use this little gizmo over here to copy paste so i'll be doing that if you are not familiar with react it's really good that you follow this part of the of the instructions because it's going to give you an idea what you have in the files what every single part of the components um are doing and then when you get to modify them

it's going to be a little bit easier for you to to follow along on that i'm not going to get into the details of that part we're going to jump directly into installing the coinbase wallet so i'm just going to copy paste it here but you could just type it and what you do in your project is here on the left side in dependencies you can search for it in this particular case i already have it it's the first one coinbase wallet sdk and after you select it you should be able to see it in your dependencies that in this particular

case is right here so coinbase want sdk so it just takes a sec after that we're going to be able to um include the code that help us to uh well pretty much finish the the dapp after that we have to kind of create a web3 provider and the coinbase wallet sdk is going to provide you some of the methods that you're going to be able that you're going to need to make requests to the blockchain network so right now we will have to create a new file that is not included in the template which is great because then we can let go

through the the process and that is the provider.js uh file or yeah so i'm going back here and you should create it under this folder because if you read the the part that explains the structure of this project uh all the code is going to be here in source folder and all the static files are going to be here in public so we're not really going to modify these ones we already provide those for you so you can use them but here we can right click and say create a new file and in this case it's a copy paste it it's going to be just provider.js so we have it right here that is going

to be empty okay so now in this one well you could again select or i'm just going to copy paste using this and um the important part that we're going to have in provider.js is the method uh get provider that we're going to invoke uh from app.js so usually i keep pressing ctrl s or comment as in a mac is to be able to keep saving every single file so i already created the file included the code and we can jump now to our app dot js file over here so

the first thing that we need to do here in the app.js is to be able to import the getprovider that we created in the provider.js file so let's copy this and we should be able to include this connect pretty much in the section that we're doing the imports so i'm just going to get it there good now we're going to create another uh constant over here another variable that is going to be here you can see it that is going to be a new state variable uh that we're going to use uh in the following uh pieces of code so let's copy paste it over here so we have right now the state and just because i

am a little bit strict about that let's uh kind of tap it correctly now we have um pretty much an empty connect method right now in the app.js so let's find it so here so it doesn't really have much it's from just a console log so it's not going to do much there but if you copy paste this one is going to start using the get provider uh method that we have in provider.js and then we're going to be able to yeah i should have it so i'm going to

completely replace this method here okay perfect again i think this can get correctly uh i think there okay perfect now um so here in the instructions you're going to have like the the account like all the detail of what this piece of code is going to uh allow you to do but i i just wanted to leave it there just to show you the result so let me make certain saved and i could do it here but i prefer just to open a new window

directly so if you didn't see it i just press the open a new window so this is going to be your uh application right now that if everything works well again i i tried it this morning just to make certain that everything was going well i should work and connect the wallet that uh i already have ins well i have in my browser so let's see if it does that so it does the popup and is going to ask for my confirmation so i'm just going to say connect and now it detects the connection status over there so that's it so pretty much if you finish these steps

you should have a project here that uh already shows you how to um well this one is the same one here how to integrate with coinbase wallet so i i think it's pretty good uh you can see that is not a lot of steps and and you can uh work a little bit more uh well and add more or kind of just copy paste to your own that now uh on the same line i i have a couple more things to show you and then we will be done and we could answer some questions if needed but uh it have to do it has to do with a couple more things so one that we were using before that is integrating with uh web3 model

and this is part of the documentation that we have for uh convince wallet in general so you can see that you go to coin docs.cloud coinbase.com or just developer dot coinbase.com and then if you look for wallet you should be able to get here and then on the left side just look for integrating with a web3 model this one is a small project that is going to show you how to create a dab that is uh going to allow developers to well allow users to connect with the wallet that they want in case that they have more than one wallet in their browser so you can see all the steps are going to

be similar uh steps quite detailed to create your own project but i'm not going to go through all of it i'm just going to show you really quick how it looks and it's also going to be a code sandbox so it works here so it has a similar structure to the project that we just created but so i'm not going to go into the details but you can see your app.js here and your provider options it's not the same provider that we had there but similar and just to show you the dap here uh it's similar ui the important thing is that right now my browser i have two different wallets connected coinbase wallet and metamask

and the demo here is pretty much just saying connect wallet is going to detect the wallets that i have and by default it also gives you a wallet connect and when you say like i want to connect with um a coinbase wallet it's already going to connect it it should have shown me the pop-up but i think it didn't do it because i already connected on the other side on the other uh application so it kind of like almost skipped the part i've seen that doing that i don't know right now but and right now you can even like select the neck the network that you want to use which is great and finally

if you want to kind of like uh dig even a little bit deeper into the different uh sample applications i already have it here so in the documentation if you come like a scroll down a little bit more you're going to find sample applications you have a different ones that are focused obviously on wallet sdk react view third-party libraries but the one that i wanted to point out because uh it's really great and jm the one one of the people that created this did an amazing job you're going to see the this one that is the nft dab starter kit so the very at the very end of this section of sample applications and you are going to be able to get the

github well if repository there you go so you can uh well pretty much fork it and do everything that you want it has a great uh documentation here but also one of the things that i really like is that jm created this video tutorial so i'm going to mute it hey my name is jm there you go that is jm uh and he goes for over almost 40 minutes just giving you the detail on how to make this uh sample app work and if you're interested in maintaining your own nfts uh and how to programmatically create

the the art for these nfts he's going through all the details you can see like let me see the coinbase like uh how to create this art of course you can modify it and and how to welcome like oh let me see something like this he's going through all the details that you may need so if you have like one hour one hour and a half if you're going to kind of follow along uh free it's this is great resource for you to learn more about web3 development in general but specifically uh doing it with coinbase wallet so the if you were not paying attention as much to

like the small demo that i did you have other samples here that are really amazing and i recommend the web3 model and the nft that starter kit but if you have any other needs you can see that we have you cover it right here in case that uh you want something else and this is one of the other sections where i would recommend you to give us uh some feedback if you want any other kind um of sample or like any other technology that you may be using and want to see like a tutorial or something like that it's great that you let us know because this documentation is going to grow depending on your needs so if you tell us like hey i want something else like that is not

nft that is focused on gaming or something like that and we see that there is a need there then quite likely we will work on that and we will keep adding to all the sections here and i think that's pretty much it so i'm going to go back to my presentation over here for a second in case that you didn't catch the the link i'm actually going to try to kind of zoom in here oh come on i want to zoom in 200 so you guys get could you post the link in the chat diego absolutely awesome thank you i think it might be easier for everyone to just click on this okay perfect i'll do that and i think um

one of the other things let me stop sharing i don't see the chat until i stop sharing um the other thing is that uh i think i was also asked to share the slides after the presentation so i'm going to clean them up a little bit and see if i'm i have all the links correct uh there and then quite likely i will send to the organizers uh like the slides and that they would be able to share that plus the video with everyone that was attending so if you had um any other questions well you can obviously do that and since we're already kind of using the chat i'm going to

share my twitter account so that's my twitter right there so if at some point you guys have any questions you just want to connect with me moving away from the camera uh if you want to kind of connect with me that's great also in the documentation at the very end we do have a section that is for the forums so if you have any specific questions if you have any problems with uh technical issues uh you always can go there and uh well we have kind of like a full developer relations team that that is uh really happy to connect with all of you and if you have questions you want to collaborate you have projects that you want to share uh just let us know

and now i finally will get to to check the the okay i'm london dubai nigeria challenges and prices thank you alex for sharing that uh the workshop uh chicago okay well awesome so i see people from many places and yeah uh hello from brazil i'm assuming brazil uh and what's missing there uh how are you awesome well it seems that we had people all over the world so i'm really glad that people joined and um again we i think we have another presentation in safari in a week and a

half or something like that 19 so we will work on giving you something a little bit different back back then but if you didn't have any questions today just remember that you can connect with us and also joining that presentation and ask any other questions and yeah i think that's that's pretty much and yeah that's that's that's everything for me if no one has any questions that's that's hello from canada is there any way to connect with coinbase wallet server side uh not using the front end uh yeah i mean programmatically you should be able to like also uh to to connect that just not you

well i don't know you would have to do it for like uh something node in node.js or something that is running a server right so but but yeah like yeah like uh the all of the sdk is going to provide the api that you need to uh well use that but i i don't i don't think you really need just it's the easiest way because uh the wallet is kind of like made to kind of work with a lot of front end um applications but i don't think that's the only way that you have to have to do it and if you are interested uh also like i think in a couple of weeks we are going to have more uh announcements around that that's it

awesome well taylor he's also one of my um uh co-workers i don't know if taylor if you want to add anything to i feel that i've been talking a lot today so i don't know if you want to share anything with anyone else i am no uh just if anyone has any questions feel free to reach out to us um we have twitter either coinbasewallet on twitter or coinbasecloud and twitter feel free to drop any questions you have in the discord we'll be around all day to answer any questions related to the demo um safari and yeah seriously thank you taylor and thank you diego thank you so much for taking this workshop um for any of you that have any other questions please feel free to post

it in the technical questions channel on discord um we'll be happy to answer any more questions over there um again thank you all for coming i hope you have a lovely lovely day wherever you are you're all from all over the world so morning or night time have a lovely day have a lovely evening um and hope to see you all soon sounds perfect thank you very much and yeah i really hope to to see everyone that was attending today or i don't know invite more people we really like to connect with more people so it would be great to see even more people next time that we get to talk and yeah let's keep it connected awesome thank you bye everyone

you