Encode x Gnosis Chain Hack: Gnosis Chain dApp with Golang: Establishing Connection Using GetBlock

Encode x Gnosis Chain Hackathon 2023 · 5 May 2023 · 33:09

James Oliver, tech product manager at GetBlock, shows how a Golang application can connect to Gnosis Chain through an RPC node provider. The session introduces GetBlock and the Go language, demonstrates a small web tool that reads the network ID, a recent block number and a transaction, then repeats the call by hand in Postman with a JSON-RPC request and checks the result in a block explorer. The Q&A covers free request limits, dedicated nodes, wallet and trading use cases, and how the service compares with larger providers.

Speakers

Topics

From Encode x Gnosis Chain Hackathon 2023, hosted by Encode.

Transcript

hello sorry I realized I was muted this whole time yeah classic amazing I'll just quickly go through that all again hello everyone welcome back um I was just saying that we had two workshops today um the first is with get blocks so we have uh the wonderful James with us here today to talk about um gnosis chain daps with golang and establishing uh connection using get Block um yeah you can follow James on Twitter here uh put it in the chat by the way um and I've also put in put in a link to the hacker pack in case any of you guys

have forgotten where the resources are or have any you know uh FAQs and stuff so it's all there um I'm gonna stop talking now put myself on mute properly um James are you ready to go with your screen and everything yeah I guess I need to share my screen that would be awesome whereabouts you based at the moment um James I'm in Germany amazing awesome which part of Germany ah oh cool I've always wanted to go okay awesome so

uh do you see my screen do you hear me you know I think yes everything is good so uh my name is James I'm a tech product manager at getblock team we will have a small presentation about who we are and what do we do on this Market uh and I guess I'll ready to start so ebook is a provider of RPC notes and points uh where cryptocurrency application gets connected to various blockchain networks in other words we connect

um we connect software to blockchains in a resource deficient no code manner uh everyone decided that centralized application like NXT Marketplace daily protocols place to learn or even centralized services like Custom Body and centralized wallets and so on and so on uh needs blockchain nodes to interact with the blockchain is like quite obviously but yeah it is simply put a crypto apps with the information from blockchains and write it on behalf of their users

that's why I have a reliable fast and reasonable price connection to the blockchain is an issue of permanent importance for every modern cryptocurrency service in getlock you feel our clients read blockchain notes at the highest possibility uptime and all free and paid packages so yeah um we can be utilized by to create faster and scalable backhands that can be easily integrated with the browsers Network for instance uh with the help of get locks Advanced

Global infrastructure you can significantly change the speed a reliability accessibility of your backend making it more efficient more effective and then before whatever you are an experienced developer or you to go this function will provide you some knowledge and tools necessary to construct a high quote background that delicious placement will results um today we will talk a little bit about goal but very a few I guess most of you know how to how to work with it but

some introduction that gold is an open source programming language each was launched by Google in 2009 it was particularly derived from C and open and syntax and features but with memory safety garbage collections structural typing and concurrency yeah so uh what is then go key features is a speed of course Very uh like optimized and very efficient and quite fast thing in this like development World

cross-platforming support but you know this um concurrency support which I like the most minimalistic design rather standard Library Google has a strong standard Library which includes a lot of supply and buy numbers add-ons providing developments with the necessary tools you need and pointers and parameters like the references so um I guess you know how to install Google but if needed we can provide you any links but I guess you can Google any

of them and find them in the internet how to install be honest one of the best and the digital ocean website yeah so uh that's our small introduction now let's move to them I think we have prepared to you today um one of my depths creates uh quite smart and interesting tool which we will share with you as you can see this GitHub page with the uh all materials you need you just need to download this and make

run as a from terminal on your PC or virtual machine or anywhere you want to start this this you can see this is what he did and this is a small website which allows you to make some requests to uh notes to for example get block nodes using API connection uh I already like I made file with the terminal notification time this year today and it looks like this I know it's quite uh

minimalistic like go you know and uh very very um simple we have three buttons on the right side which can show us network ID uh random block number and transaction so to connect we need to go to our website and login into account I have already did it and here in the uh your personal account on get blog you need to search for a protocol I will delete this and show you how we can do it

right you know this and get them may need in points yeah it's free and it's really easy just copy and go to our website and put it into the top box right and left let's check it and it doesn't work amazing that's yeah just need to reload this network ID block number and transactions also doesn't work amazing let's do it again

okay transaction doesn't work but I guess we will fix it so [Music] um you can see this very simple and to understand what's going on let's do it like manual on them via Postman yeah I guess a lot of you have Postman and we will just put our URL our endpoint in the URL and check how to get to the uh any of the blocks of them on the last block of them Technologies let's go to the our website and find you

know this in a list of the server notes right here okay another string also you can take the inpoint right here and add your APK from them in your personal account but yeah also possible uh I clicked here on Json RPC RP interface to move to the documentation it can be equal to the documentation with the docs and if your tools let's see uh RPC providers any of them and this one RPC API references okay

let's go and oh what what what what type of the transaction okay let's get let's get the most easiest one it is block number now we need to copy this part and get back to the atmos mode also don't forget to put raw and put here Json yeah then send and here we go you got luck that is in HEX so we need to convert it from hex to depth

yeah nice no and this is the block number we found okay let's go to them know this Explorer right and we got our block here and let's find it in the blockchain yeah we got it 39 seconds ago really fast so I think that's it that's all I wanted to show you and tell if you have any questions and if

you want to do something else just don't hesitate to do it not alone here no no well good very good I'll be finished cool okay so um oh yeah sorry go I just trying to find them window with my presentation

we can stop sharing the screen yeah here cool awesome nice so uh this is the time to open up the floors for everyone right um okay so uh I think um so Nas did have a question um about get Block in general but I think um Ellen is asking in the chat right now um okay so manek in the chat asks uh please summarize in simple English what get Block does the book is uh not provider we provide connection between uh

you and the blockchain you can come to us by uh okay you can use it for free you can do it for free we have a free uh 40 000 requests per day which you can use to connect for all our um share it blockchain notes and get access to the blockchain very easy and for free of course if you like it if you need something more for your production for your applications for anything you want to make any or the app or something like this you can have a debate packages or dedicated mode which

will be your own node with your own configuration which any who you want anyone you want and yeah that's it so we'll make a connection between you and blockchain in an easy way to using API connection yeah awesome um so we've got some questions in the chat I'm not sure if you can see them as well but um I don't see anything actually there is my face and just this window disappeared from my screen and just trying to find out on the bottom right there should be

there's a tab that says chat um we've got a couple of questions about um uh oh I think Joan has uh responded in the chat anyhow um about sort of the pricing of um of get block and requests and stuff um yeah cool uh so I have a couple of questions for you as art audience uh like takes the time to come up with theirs um so what do you think is a really cool use case for get Block uh that you'd like to see in this hackathon maybe me quite tough question it would be great to create and uh like um

small uh and like personal uh bullets yeah using our nose for another note and create your own wallet with them like real maybe not real on the test net or something like this um fans but yeah I guess creation of the volatility great and easy way to show or also we can use uh trading mode for example why not it also could be realized by our notes and during your

hackathon yeah maybe um these two cases could be not very tough but interesting um Nas in the chat asks now um how does that node request work oh how does the node request work so you need to use uh documentation which provided by every protocol and understand what do you want to get from the note then you choose the method you need and use it to connect

via API to the node and find out any information you need for example like we did today we just checked block then you can for example you can use a method block by number and get exact block with all information inside of this like hash or who made this blog or when and so on so on so you use letters to get the information from the blockchain for every block or transaction something

like this also you can use methods to sign transactions or do yeah I I I think anything yeah you can see in the documentation provided by the Chronicles yeah great um I actually think so I misspoke that I think Nas was asking Ellen actually uh regarding uh um the previous answer to uh his question um okay so um everyone in oh his question sorry okay this is popped up

let me I just really want to see the questions honestly I still can't find this you should be able to um I don't know I've seen nothing honestly I don't know how to even share my screen again or like oh gosh um yeah maybe this window just disappeared or moved to someone and somewhere else I don't know okay uh what is the question uh so the question is uh from Katya uh what are your Pros compared with infuria and Alchemy oh that's my favorite

question I love answering it with them our support our support team one of the greatest team you could ever met we have the most fast uh response time you can get it like in a few minutes and your case will be solved and you will be always like on the same page with us and you will be fully informative about everything happen with your case with your issue and of course the never leave you with like not satisfied with our service we are trying to make

very friendly and very uh transparent service and I think this is one of the our adventures advantages because like for sure that's obviously much smaller than uh some of our um other companies and this is how we can do better and make more like great service than others and of course we have a great uptime and availability and we can help any user with any request and we can do any custom story you need like any

consideration for your note for your servers for everything and they can also help with your requests with your methods your users always came to us and ask how to do this and why this doesn't work and we help every time and I think this is our the most strong thing awesome great so I don't know why my camera went off just that um yeah no I think it's really important to have all of those features especially and like the speed and the good user experience and stuff being able to have a team that a good support team to

answer questions for all of your users um so we've got a question here what is the difference between shared and dedicated nodes the most different is Checkmate is a not a beach um you can use you can use and every user in the internet can use them at the same time it is open node like everyone who has internet good came to our website get connected to any of our uh sure ignorance dedicated note is your own solution only you have access to this and only you can use it and you use it

anytime you want you have all information about this workload [Music] um like CPU memory and storage mode everything you need to know you could know and you can adjust your workload to this and you can build your application and be sure that this is you're not and it won't be overloaded someday because you know your workload and you know how to do this and you work with it every day and this is like kind of your property you know not your property you rent a full uh fully your note

so this is the main difference and of course and again node could be customized and certain note is built like it's built so logic notes has a lot of problems but of course it's a bit more expensive comparing to share it Solutions but building when you build your own the app or something on production you better to have a dedicated note either than rather than a share it on top of that so NASA is asking uh what kind of slas do you have on shared nodes

on set notes we get 99 and for dedicated note we have 299.9 cool um I've got a couple more questions uh jelly asks how can a beginner use get Block how yeah you just need to come to our website and create an account using your email or metamask um and so you can start you have um your personal account you have your

first project where you can see your API key and create any amount of the endpoints you need then you can have if you no no you have 40 000 requests per day to have a free connection to every our service protocol if you like it if you need more you can buy a package or an in package or dedicated note and go further also we have a documentation or link to the official documentation protocol for every protocol and also you can use our support to help you start with us

awesome yeah on that note as well I know you guys are offering a pack of requests for the first 30 users so um if you guys uh sorry this is to the hackers if you guys are wanting to sign up for that um please use this link that I'm about to post in the chat to just register your um your user ID and then you can get yourself um your pack of requests um we've got one more question uh jelly also asks uh how customizable is your node um I'm assuming the private one yeah it depends on your needs of course it could

be just one uh they get a note with some specific parameters for instance it could be indexer or increased resources or something like this it could be several dedicated nodes which connected in um load dancing to handle more work mode and yeah I guess that's the most common things we can offer that's uh no balancing or customization by parameterization or something like this

and right now they are planning to um like add some more flexibility with locations and add some more locations for our delicate with no sparkles and it's secret and you're one of the first we know this so yeah I will talk a lot about this well thank you for clearing Us in on that um Alex asks what are your plans moving forward I'm assuming get back forget block as a whole uh in terms of potential new features and functionality uh considering the environment is very competitive um this is up to you James

if you'd like to answer that uh because it is Workshop but I'm not sure like I'm able to tell you all the information but uh Let's see we have one big thing which gonna be announced in following I guess one or two months during our um roadmap yeah and um uh it's gonna be like very huge group which should help us to compete with the very big one with all big players on our

market and also we have a lot of requests for development and improve our one of our products it's a Tracker event tracker of the blockchains events and um this is one of our thing we need to we want to improve and develop so yeah this is what can I say right now that's absolutely fine Alex is saying and innocent innocent question in the chat well thank you for answering uh yeah sure so some of that um yeah okay uh do

we have any Alex says thank you um do we have any other questions um now is the time to pop them in uh otherwise is there anything else you'd like to add James oh just tell me where is there ever been told to find out how to close it no no actually no no it's all good don't worry I think we've gone through all questions okay great cool um Jessica says that there's a nice animation on your website um okay hello um okay awesome so uh I think that's I

mean if if we're all done here uh I guess that is um yeah that's it uh James are you in our Discord or is uh someone from your team in the Discord in case uh hackers have any questions um I think Joan is in um noise if not if you um I don't know actually uh fair enough noise no problem I'll catch up with you later about this um so to everyone else yeah you can if you have any questions about get blocked specifically you can go visit the um specific uh Post in our Channel

um on like forget the get blog zone so each of us wants us to have a Zone and so you can pop over there and ask any questions that you have um and also uh submit a request for the uh pack of requests um uh the the link to the format is there um otherwise I think we can probably take a quick break before our next Workshop um what I will do is so the next Workshop is going to be um an introduction to request Network um and we so that will be starting at

um in about 15 minutes from now so um if you would like to come back in a few minutes I can see that Alex from request network is here and typing away so um yes cool yeah so I guess we can reconvene in about 15 minutes the room will stay open um so James if you want to uh respond to any questions that anyone has in the chat um feel free oh wait no you can't see her I guess to like well you could try to do this I need just to turn on my PC you know yeah oh gosh well hopefully if anyone has any questions in these 15 minutes we

can uh get you connected back up or we'll find another way um otherwise everyone I'll see you in a little bit um I'll be here from about 10 past so about five minutes before the start the next Workshop to just give a few announcements in housekeeping so if you'd like to come back then uh feel free to otherwise I will see you guys in a little bit thank you so much James for speaking thank you for watching me thank you it was great a great little um just introduction to uh using yeah block um and it seems pretty straightforward I think everything was super clear um which is a great thing okay see you guys in a moment then bye-bye

see ya thank you [Music] foreign

Related talks