Airstack 🛠Integrate everything web3 into your apps!
ETHGlobal·Wed, Oct 9, 2024, 12:00 AM
Join Airstack for a workshop titled, "Integrate everything web3 into your apps!". Embark on a journey with ETHIndia, where innovation thrives, collaboration knows no bounds, and hierarchies fade into self-sovereign ownership. The most skilled web3 developers, designers and product builders from all around the globe came together for a weekend-long adventure to advance the Ethereum ecosystem at ETHIndia in December of 2023! ----------------- Follow us: https://x.com/ethglobal Check us out: https://ethglobal.co​m Email us at: hello@ethglobal.com
Transcript
[Music] we have with us a number of members of the air stack team here uh today uh depes our CTO we actually have a number of our team also hacking uh here as well so if you have any questions there lots of folks who can help you uh ysep here uh leads our devell um so we're going to go in and show you a little bit about uh air stack now so um first of all the way to think about air stack is we enable you to build composability into your applications so we enable you to very easily uh integrate all sorts of onchain and related offchain data into your applications uh and unique to airstack is that you can query uh both onchain offchain cross-chain cross dap data into your applications a single query and response all at once um we're especially strong in areas like uh social and identity um but we also enable you to get everything from token balances token holders um nft s images Etc uh the the blockchains that we um actually cover can we show the diagram for SEC yeah yep yeah so this is a diagram of our apis um the blockchains that we cover uh first ethereum polygon and base uh we index every transaction on those blockchains within seconds of them finalizing um so if you are thinking about whether you want to use test net or not um we don't support test Nets right now we're we're quering uh the live uh data on the blockchain so we encourage you to use uh Bas or polygon as your test net or just as your your net um and if you need a base the base team can provide you with uh the base token on base uh they have a faucet here um and we can help you with madic on polygon so can the polygon team as well so you shouldn't have to worry about uh needing any tokens in order to uh run your transactions um we provide indexing of all erc20 721s 11 55s as I said you can get all token balances token holders nfts we also are the only indexer of uh 6551 token bound accounts um so you can get if you're familiar with token bound accounts it's nfts that own other nfts that own other nfts and so you can use airstack to query both up and down that chain of ownership of 6551 accounts it's a really exciting Hot Topic if you want to work on 6551 reach out to our team ysep is an expert on it himself so we're happy to help you with that um we also have a new feature that we're rolling out today uh with Bas uh in particular it's called snapshots you can actually get not just the current balances or current holders of a token but you can get on any date or block stamp uh in in the past as well um and so we can show you how to do that uh and then as I said we're especially strong in domains ens socials identity forecaster lens we can get you everything about someone's forecaster and lens their profiles their bios their followers and you can actually build common friends list across the two of them as well so we have number of apps for instance who we building we call the onchain address book which is just building out everyone that we know that you know across both parcast or lens people You' sent tokens to and you can build like a friends list um without even having to even integrate anything yourselves directly with parcast or lens um poops we index every poop that's ever been issued so you can build all sorts of insights into the events people have been to and then we enable you to bring all this together uh across the across like integrated it all all together once um lastly uh so airstack has a $10,000 Bounty prize uh here at eth India we've also teamed up with X SMTP who's kicked in another 5K so if you build something with airstack and you include x SMTP the three airstack uh projects that that integrate xmt in the best way are going to share that 5K so there's a real opportunity here if you want to build with airstack and X TP to build to earn some serious prize money here uh at eth India just by working with the two the two of us um yosef's going to show you how it works he's going to show you how to run queries obviously we can't show you everything in 20 minutes I'm going to I get the fun part I'm going to show you the cheat codes I'm going to show you how we uh use AI to enable you to write queries very quickly and to um uh learn our apis uh very quickly as well so just take me to not there to the studio just take me to the studio just take me studio yeah so um when you go to the airstack API studio um you'll see on the left hand side these are all of our apis um you can expand these and within this you can run all sorts of nested queries what that means is you can start in One Direction and head down this tree to another direction another Direction what I'm going to show you really quick is the uh the AI um so I'm just going to zoom in here for a second I'm going to say um show all holders of let's say ecc6 so this was a conference in Paris um and so they 1295 holders and they lens forecaster ens and xmt and I'm going to have the AI build this query for me um and so what's great is it helps you actually see how the uh the apis are constructed so here you see it's actually a really complicated query it's going to look at poops which are a nosis chain um lens which is on um polygon forecasters and optimism and also offchain and forecaster hubs uh ens is a Dap on ethereum uh and then um uh XMP is actually offchain data as to who has x&p or not and so here you can see these responses are including answers from all of them so here is uh one attende ecc6 that's his ens that is his lens I'm saying his could be hers um forecaster and X SMTP and then you can also very easily add more data to this as well so let's say I want to see blockchain dep slug uh name slug I want to have when it's registered whether the enss is primary just going to add a bunch of stuff here what they actually paid for that uh ens name and I'm just going to run this again and you see now we've enriched this with even more data that's all integrated in the same quer and response all right Yos just gonna show you how to build some queries let's go all right thanks Mr Jason so let's get started uh with really simple use cases we just released like snapshots and Bas so let's do that so in here if you see our API we have a bunch of them uh and definitely like AI is usually like the easiest way to get started but in case like you need to build one from scratch then for example like uh go to the API right here and it has uh certain formats in here so for example our API is going to have inputs and limits and orders for sorting but it doesn't exist in here but like for example in here we want to fetch the balance snapshot of italic uh like right now so then I just put owner in here and with airack essentially like you can't even use like ens lens or foraster so you don't even need to know like the zerox address because we have an internal identity API that resolve it and for example I want to also just get like for example the nft so in here I can specify that I wanted to be like either ERC 721 or ERC 720 uh 1155 so from there balance snapshot essentially like fetching uh the token balances of vitalic during uh a certain period of time during that certain snapshots but since I didn't Define anything it's going to fetch me the latest one so for example like this uh so start block number start block time time stem and block number and block time stem and then I'm going to show the token address and the token ID of the nft and then from here I'm going to show the token nft metadata and also the images so images right there so metadata is also right here so so just run it really quickly and it's essentially going to fetch me the snapshot balances uh for vital. eat so it's a Wi-Fi I think so anyway uh like I'm not sure what's wrong could be the Wi-Fi so in this case I can also like specify for example the time so there uh like uh we have three different inputs for time so there's dates time stamp and also block number depending on which one do you want to specify so in this case for example I want to check vital. e nft Holdings uh last week so that is like 2023 uh 1201 so 1 December H oh so essentially like that and yeah essentially this will return all the data all the nfts that uh vitalic called during that time including like the uh resize images so we have resized images right here uh extra small large medium and Etc the metad data and many other details as well for the nft right there so on the other hand other than balance snapshot you can also get the reverse for example you want to get the uh holder snapshot so in this case we can get the nft right here and we want to fetch like the token holders uh during uh 1 December for this particular nft for example so I'm going to delete the holder in here uh the owner and I'm going to add the token address run it right there and it's going to return me all the list of holders of this nft uh during 1 December so yeah uh that's about it so we uh provide a lot of this data but of course like we provide like other data as well such as like social followings from lens and forecaster PS as well and uh essentially it all culminates into what we called like onchain graph in here so we have a documentation about it in here on how to do that and as essentially it fetches all the users common pip holders common NF holders on ethereum polygon and base uh social followers followings on L and forecaster and we have a demo in here for example on uh FAL on explore so I'm going to show you the onchain graph of that I just mentioned so yeah that's about it yeah so um in terms of getting started uh you just need to go to airstack XYZ and you can get an API key when you go to airstack It'll ask you to uh connect a wallet um and with that wallet uh you if you have a ens a lens or forecaster we provision a API key with you for you with 5 million free API credits um if you do not have a eens lens or forecaster come to see us we have the ability to give you a lens account uh here uh on the spot with no waiting time or anything so you'll come to us you'll get a lens account uh you'll then go to the website for lens that's kind of claim lens at XYZ we'll walk you through it and then when you go to airstack your 5 million credits will be there um and if you have any problems at all with the API key you need help just let us know know um beyond that our team is here we'd love to see you build amazing things um we've been to seven eth Global hackathons this year and what we've seen at each one is that the apps keep getting better and better and better and one of the things that we love that you can do with airstack is you can build an entire application in a weekend um so it's not about just building a POC you can actually build a full-fledged application uh in a weekend and we'd love to help you do so so I'll take any questions uh if anyone has um we're happy to answer them we have uh 7 minutes left uh so any questions anyone has where also can show anyone any additional queries or anything You' like to learn about airstack just let us know
Automatic transcript — names and jargon may be misspelled.