New Ethereum talks, every Monday. The week's conference uploads by event, in your inbox.

Loading player…

What's New with Chainlink A Serverless Compute Runtime for Web3 - Allen Day Steve Ellis Bryan Jowers

Ethereum DenverMon, Oct 9, 2023, 12:00 AM

Introducing the latest innovation in Chainlink oracle services: A next-gen serverless developer solution that enables devs of all skill levels to easily connect the world's APIs with smart contracts and run custom computations in just a few lines of code. We will introduce the new product, discuss its use cases, and invite some guests to show a live demo. Bryan Jowers Product Chainlink Bryan is a Product Lead at Chainlink Labs https://twitter.com/bryanjowers Steve Ellis Cofounder Chainlink https://www.linkedin.com/in/steveellis0606/

Transcript

[Music] foreign thank you thank you [Music] foreign [Music] thank you I'm gonna dive in in a little bit but as a special guest I'd love to bring up the co-founder CTO of Steve Steve Ellis to give you a little bit of perspective over the journey that's got us to where we're at today hey thank you Brian thanks everybody for having me uh so excited to be here I love hackathons I love everything about him just the energy in the air uh the creativity the you can just you can just smell it in the air here uh so I um yeah I also super psyched to be Denver and for us to launch chain link functions here uh it's been a long time coming and we we thought what better place to launch it than at the best hackathon so yeah um I uh a background on chain link functions I started in the working on Smart contracts in about 2014. uh and it was very obvious then at that point that to build any useful smart contracts you would need um you'd need oracles and so we went through a long iterative process of trying first in Oracle service then an open source Oracle and eventually landed on a uh incentivized decentralized Oracle Network so that's where we got to chain link and in 2017 we launched the project chain link uh we built uh in the job in the chain link no there was a single job type was called the direct request and the direct request was a way for a contract to talk to a single chain link node and uh the idea was at the time you could transparently on chain do aggregation uh to give you a picture this was back in like 2017 or at this time um it was you could there was no gas market there was people were just giving paying 20 guay for the sake of you know we wanted miners to make a little money we weren't really sure what was going to happen so to to have aggregation on chain was perfectly acceptable thing to do and if anything more transparent and so you could send off a request have a have a a chain link node run through a series of Docker containers to to process work and then report the the the result back on chain so for us uh we when we went to 2019 we went to mainnet we had the launch and at the time we said how do we show this off what do we what is the way to do it we launched uh we built an application we built a price feed off of it and we launched ethusd at the time three three different chain link nodes validating and uh fast fast forward to to um 2020 like summer 2020 D5 summer you know black Thursday has has happened gas prices are through the roof consistently at 200 gray at least and we are we're now struggling to to with on-chain validation uh so at that point we decided we need to build off-chain reporting we move this stuff off chain we recognized that users did not want to uh actually have to um yeah have to do their their building the contract validation the aggregation on chain or pay for those gas costs so this is a big a big win for us to move that forward um but at the same time as we we built it for me personally it was always frustrating everyone's using um well not frustrating but I love that uh the the aggregators took off and they became super valuable for um for defy they powered defy we loved seeing that happen um but for me I was always it became our uh our Flagship product but I was always a little frustrated because as a developer it was not as as flexible as something like the director Quest I wanted to be able to reach out to all kinds of apis pull anything on chain not have to worry about aggregating back on chain so uh we go to hackathons we'd see everybody be built with this direct request model and yet nobody took that to production the thing that was powering D5 were these feeds so fast forward again to 2022 uh we had an internal hackathon uh Morgan shout out to Morgan somewhere here actually built won the internal hackathon with the universal adapter which kind of reimagined the the pain point that most people at the hackathon have been facing which is to ship that code to the actual node operators and once you get past the OCR point you get to you get to giving them the uh the the JavaScript or giving them the code to execute so we were really excited to get that uh that that was a catalyst that kicked off us reimagining uh we could just sense the hunger for this better request model developers are really excited to have it in their hands so we are excited to to take it and get it out here and in um in true hackathon style we're trying to ship it early uh it's not it's not perfect it's it's beta so we we want you to get try it out uh give us your feedback all that um but with that I'm going to hand it back to Brian to show you what this thing actually does uh I am having Steve here tell you that story is really special because this is a big milestone milestone for web three milestone for chain link and there's only a Founder that can tell you that impassion story so it's it's awesome thank you Steve so in a little bit I'm also going to invite a friend Alan day with Google to show what you can do with uh you know chain link functions and web 2 Data I ask right now for you guys we're going to have you try this demo real quick while we're speaking and what we're going to do is show you the power of web 2 Data chain link functions and blockchain working together within real life uh Behavior so I think you'll see this is one of the first times this kind of thing has ever been done before it's going to go to charity it's going to be awesome so stay tuned so web3 is a promise that we've all been talking about and we all are here but please we believe this is a big opportunity uh you know a couple years ago price data came to the blockchain and defy emerged Defy is undeniable Defy is huge Defy is Unstoppable so we at chain link are thinking if you can do that with just price data what can you unlock what can developers unlock when you have any data in all the data the internet's data come to the blockchain that's going to happen through Builders like you you guys are going to be the revolutionaries that create the new use cases that power the next versions of web 3. we're here launching this at East Denver for a reason Builders like yourselves are the ones that are reforging the path forward but you guys have been telling us over and over there's a big limitation to web3 still we can get price data we can get other data but we still have this Blocker we can't deliver on some of these awesome use cases that we've been imagining because the rest of the data that we have is still Untouchable data I'm talking about you know public Cloud private Cloud public apis private apis cloud services you know Spotify data twilio data you name it your backend Services Public backend Services these are things that the internet takes for granted but we still have this limitation of no access this is what we're changing what gets me very excited is there are thirty thousand passionate developers building on web3 today but you guys still have this blocker but you're still here there are 30 million developers on the sideline in the web 2 space that have no idea how they can leverage their stack in the blockchain today this together is how we're going to grow the ecosystem this is how we massively expand the web 3 developer ecosystem now I'm preaching to the choir you guys have heard this 80 of all of our hackathon developers worldwide try to use web 2 data using any API exactly what Steve was talking about we've seen this we know the signal is undeniable so it's time we do something about it any API has lots of pain points lots of failures but a lot of potential and so what we are doing is we're building a new developer first platform that removes all of those pain points for you so what you have to do is just focus on what you're building on the code take out everything else all the layers of you know infrastructure coordination decentralization and embed that straight into the chain link Network you've been asking for it obviously we've been listening it's all about getting us to this point so as you know we launched chain link functions this week in beta we're very excited it is a serverless platform for web3 this is web 3 serverless moment and if you look back at what happened in the internet when such a thing happened Innovation took off and that's wildly exciting for us chain link functions as I said is any data any device in any system unchanged so that's wildly extensible connectivity customizable compute in your hands done in a trust minimized way I run time that you can leverage and it's self-service you can code deploy and start using in minutes this is the most important piece it runs on chain links existing time trusted Network so the same infrastructure that runs price feeds vrf Keepers the rest of what you take for granted this is the same infrastructure that's powering functions battle tested decentralized and blockchain agnostic is the vision that's where we're headed so it's still early but the three things that you should take away is it's how it's powerfully simple is you can fetch any data you can run any compute and then you can return your value your customers value your smart contractors value whatever you need onto chain this is what we have today you can imagine what we're excited about coming out with in the next one or two years so we've been building with Alpha users we are building for startups we're building for early stage uh hackathon users big Brands you name it this is a platform for everyone so we looked at some of the biggest players in web 2 we looked at the most hungry developers in web 3 and we've been building around you guys in Alpha this week taking that to Beta I'm excited to bring on Alan day uh from Google he's one of the alpha Partners that's been building I'll hand it over to you thanks Brian hey everybody wow it's really really exciting to be here this is this is very cool to see more hybrid web 2 web 3 applications so I'm going to show you something today I'm a developer relations engineer from Google Cloud on the web 3 team and I'm going to show you today a demo that we built in hackathon style you saw the URL earlier so if you haven't been there already you should go visit it's doggercat.xyz some Google marketing platform product that's going to be showcased today is Google analytics so for those of you who aren't aware that that figure that Brian referenced earlier about the 30 million devs many of them are using this as a go-to um uh logging service it's a software as a service that runs on Google servers and it's used for generating General statistics and also tracking what users are doing on a website that you own for SEO purposes and optimization purposes for e-commerce so figuring out like who visited a particular web page where did they come from how many things were in the shopping cart did it get abandoned Etc I'm also going to be showcasing a Google Cloud platform product called bigquery this is one of our our most amazing products uh and it's essentially an Enterprise data warehouse very scalable you query with ANSI SQL and uh we we will uh it's it's connected to Google analytics so Google analytics exports data there and I'll come back to that in a moment okay so this is kind of the general flow I'll get into a more detailed architecture diagram in a moment but we basically have Google analytics uh on that dog or cat website it's being streamed into bigquery so there's about a second of latency there and then chain link is pulling data out of bigquery and writing it onto the blockchain now as another note this is out of scope for today but we are also indexing ethereum data back into bigquery so this is something we've been doing this project I started about five years ago it's running in near real time and this means we could actually have some feedback loops of interaction between the the web application and the blockchain if you search for Google cloud ethereum data you would you would find what I'm talking about go to town okay here's the reference architecture for what we're showing today website has two buttons some of you saw it already there's some tagging on the landing pages one's a dog and one's a cat so we keep track of where the user went goes to Google Analytics which streams out to bigquery and then there's a chain link automation it's basically a Cron job that tells this contract hey get the votes and that calls the chain link function to pull the data from bigquery Over the Oracle Network to bring the data back in and then we're receiving the vote so they're being injected into the contract and updating the state and then once this is all over we will declare a winner of the con the contest between who won dogs or cats and then we're going to give some money to charity a dog care uh if it's more dogs or more cats they'll receive I understand it's two thousand dollars and if it's uh the other one gets the the Lesser doesn't get zero they get a thousand dollars so please please vote for your favorite okay here it is again if you want to vote please okay good got a couple more scans thank you uh I did this earlier I wasn't sure how the Wi-Fi would be on a live demo so it looked like this you click one and of course I vote for cats I'm a cat fan talk to me about cats later I can I can do a cat q a um okay so now let's take a look we're gonna jump out of here and go to live data hopefully let's see reports real time and reports let me real time okay so yeah I see some of you are coming in and you can see there's basically uh you know I guess roaming or I don't know exactly what that is but a bunch of us are in Colorado on the Wi-Fi obviously and these are the dog votes and then there's some cat votes in this in this tab over here so yeah it's all working right and then let me get back okay so that was that and then where am I yeah okay and then we can then take a look at the contract inspector so this was linked on the page if you want to look at the data yourself but here it is on polygon scan this is the Smart contract that we're engaging with and if I reload we can see with some latency okay so 37 cat votes have come in as of about a minute ago and 52 dog votes foreign and the charity winner is not yet populated because the declare winner function hasn't been called so cats there's still time we're still in the game all right so that's that and here is a blog post that we published a couple of days ago so it describes the use case there's some gists of the code they're really fantastic thing about this I was just blown away by how streamlined this was it's about 50 lines of code 48 of which are boilerplate one line is the bearer token so you can log into Google analytics because not anybody can look at that page right it's a permission page for the owner of the website so there's a bearer token the other one is a SQL query everything else is just like Plumbing logic so if you wanted to build something like this you changed the query you change your auth go to town um so yeah pretty pretty awesome how easy it was and I'm gonna head back to Brian now thanks so much thank you all right guys you get the idea a lighthearted demo like that using powerful technology inside of chain Link's decentralized network is going to unleash the developer Community it's up to you guys to show us what's possible we have some ideas uh but we're looking for you guys to inspire the rest of the community Inspire us and really spark the next wave of web3 thank you so much [Music]

Automatic transcript — names and jargon may be misspelled.