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

Loading player…

Airstack 🛠 Integrate Everything!

ETHGlobalMon, Oct 9, 2023, 12:00 AM

Join Airstack for workshop Integrate everything! - NFT, 6551, XMTP, Lens, Farcaster, POAP. Some of the most skilled web3 developers, designers and product builders from all around the globe came together for a weekend-long hackathon at ETHGlobal New York 2023. ----------------- Follow us: https://twitter.com/ETHGlobal​ Check us out: https://ethglobal.co​m Email us at: hello@ethglobal.com

Transcript

foreign [Music] let's get started uh I'm Jason Goldberg founder and CEO of airstack and we have my co-founder sarvesh here and we're going to walk you through the airstack platform uh in 20 minutes so uh very simple top level on air stack is we enable web 3 composability we're the easiest way to grab any type of on-chain transaction or data from across the ethereum ecosystem and to plug it into your applications and so if you look at this query for instance that I have here you'll see how you can use our AI engine a second to write queries but this is a pretty complex query this is asking give me the wallet address and the ens of holders of this nft collection with a very specific nft collection show the nft image in medium size return the token ID and the name from metadata also show their forecaster and lens if they have one in xmtp so we are going to just plug this into the air stack Ai and so let's go here in into the airstack studio I'm just going to copy paste this and our AI engine actually helps you learn how to write the queries in airstack so the airstack AI is trained on all of our apis and it'll write the graphql 48 query for you and then also deliver the response you can of course add more variables to your query and you know write queries directly with sharvest going to show you but what we did here is in a matter of milliseconds we have the AI has written a very complex query of here's a very specific nft collection give me all the holders that MC collection give me the images for the the assets in that NT collection which we resize at airstack up for you with our CDN give me all the details all the holders including their lens or forecaster ID if they have one and whether they have xmtp or not so really quickly just to show you these are all the apis that we have at airstack or all the data points that you can bring back into your queries and response and you can do all this in a single querying response so you don't have to do let's say ping this API and then this API in this API you can literally just do one API call get back all this data so I'll show you two more queries with the AI and then Sarah bash is going to construct some uh manually and show you the details about the apis work but way to think about it is with air stack you have every erc7 erc20 721 1155 on ethereum and polygon within seconds of the transaction finalizing you have erc6551 if you're familiar with tokenbound accounts 6551 airstack is the only indexer 6551 you can index up and down the tree you can even start off with an nft that says several layers Below in the tree and say who's the owner of it I'll get the EO address of it so we're also very strong in the areas of social and identity so lens forecaster domains ens both on-chin and off chain ens as well as the only way you can find out if someone has xmtp um so a lot of apps uh specifically almost every major lens app is you can use the airstack to resolve uh who what are basically uh people's ens addresses to their far sorry for their lens lens name to their Xerox so that the messages from xmtb get through and you don't need to know someone's Xerox address um also we do a lot with nft Market data as well let me just show you two more queries uh really quick uh in the airstack AI studio and the service and construction from scratch um so I'm gonna say for instance to show you how complex you can do these composability I'm going to do a query that says show all attendees of ECC which was you know a few weeks ago in Paris um and their web3 socials and xmtp um and you know the AI is going to write this query for us it's actually a really complex query the ECC uh Co-op is on the gnosis Chain you have web3 socials lens is on polygon forecasters on optimism and off chain and forecaster hubs xmtp is off-chain data and the AI is able to write the query and airsack is able to give you back that response all in the same response to Json file where you see here's one user their lens name their lens handled they have XMP and Peep enabled this person has a lens and a forecaster and so you can get all this back in your application very easily last one I'll show you is I can also uh say show all followers of beta sharp oop this is me betashop.lens and uh if they have xmtp and airstack will go and grab my followers it could be from lands can be from forecaster can be both so you can build interoperable applications and also see right away whether the user user is messageable through xmdp I'm going to provide one of this ah my name is beta shop nine sorry on lens um so we'll generate that again and so here we have getting all the followers of betashop9.lens um does do they have they have XM to be enabled and here you go so here's all my followers um and you can see this person has XP excellent TB enabled you can also see their profile name Etc last thing I'll show you the mohanda sarvesh is we have very robust documentation um we have everything from how to do combinations so like show me everyone who let's say attended this event and this event or has this nft and and this nft tokens in common so let's say do these two users have both own this token as I mentioned 6551 xmtp lens forecaster uh social follows Co-op resolving identities and you can also build very robust recommendation answers with with their stack as well last thing is we actually launched today with xmtp a number of spam filters this is all about uh kind of proof of personhood it's like knowing let's say you follow this person a forecast or a lens so the message should get through into your prime your inbox or we know this is a real person because they attended it and person event um or the high probability that you know this person you both have attended multiple events together or maybe both have high value nfts together versus the inverse this person looks like a likely spammer so let's avoid them so you can see all this in our docs and I'm gonna head to sarbash who's going to walk you through the details of how to build queries in airstack uh more than I could in the five minutes little Razzle Dazzle I just did go ahead thank you okay let's get into it okay so we'll start with the Explorer uh so as you can see we have many apis here I'll start with a simple word which is token balances uh so in this API you can ask about you will start from a token address so you can start from a wallet like so from the top of the list you will get the holders of a token and from the wallet you will find all the balances right so I'll build a simple query around it so I'll select the amount and token ID token type right and I'll take the address of the wallet right now in the filter I'll start with an ens name put my NS name yeah and I'll run this query I'll get all the balances that I have right now in the same query if I see like uh I have an FTS and I want to know the images of the nfts then I can select the token nfts I can go to content value I can select different sizes of the images I can run the query again when I get all the different sizes of images yeah uh I can also add more details to the same query so I can add like uh the social profiles if I so I can select the DAP name and the profile name and I can run the same query so the one query I'm asking like the socials as well along with the balances now in terms of input like you can start with the ens and you can also start with the lens profile so if you have a lens profile you can put a lens handle here and you still get the same response and you if you have a forecaster name then you can put that to yeah and you get the same response so there's multiple ways to use this API the token balances you can build like use cases like token greeting around it the next thing that I want to showcase is around socials uh if you want to know about the social profile of a wallet yeah so here we have identity as an input so you can start with again any NS name or a lens profile or a cluster name you can select fields that you are interested in I'll select couple of them so I'll select the dab name followers count following count and the profile name all right so this query gives me like how many followers I have how many people I follow now in the same query if I want I can add like the list of the followers so I can select the followers and I can add details about the follower so I'll select the follower address and I want to know let's say profile like so I can select the name and the dab right see so in the one query I'm able to fetch all the followers for this identity so this will give me followers across like the protocols and I'm able to ask like the social profiles they have if I want I can add like uh more details to it so I can select the xmtp if they have xmdb so if I if I have to build an app where I want to reach out to the followers and I want to use xmdb protocol I can use this query okay next I want to show about the Pull-Ups so I want to know what event particular identity attended so I can start again with any NS name and I can select the fields uh so I will select some details about the event so then description of the event the country where it happened I can select the image for the event that was used in the Ops event name yeah so I can run this query yeah so it can it you can see like I attended this events and like able to fetch uh data around it if I have to ask like more details about the people who attended right so you can go again in the addresses and you can ask like about their primary domain so all the data is like connected with the wallet address so you can go deeper and ask like more questions around it the next uh I'll cover like the so we also have the token nfts uh in the token nfts you can go very detail about the metadata and you can query based on the metadata like if you want to find certain nfts with attributes given attributes so you want uh ba YC collection and I want all the images all the nft which has background blue so you can build using this attribute so you'll go here and you can select the trade type as uh the background color and you will select the value as blue so you will be able to run those complex filters similarly you have tokens and the balance is too uh yeah uh if you are interested into nft sales data then you start with an ft sales transaction API uh you can filter based on the token addresses in the token ID and you can query all the sales data it's coming from openc blur look straight and variable so four marketplaces you can get all the data now so all of these are graphql apis and this you can build use AI or you can manually build the query and once you have the query there are multiple ways to use it uh the one way is you can hit or graph graphql endpoint and put the query and you'll get the response we also have like uh sdks so you can if you are building a front-end application you can use react SDK if you're building a backend system then you can use node.js or python SDK we have a detailed uh examples on the GitHub how do we use this SDK for all three languages yeah so uh just to show everyone real quick um we have a airstack Explorer which is a good example of how you can build very robust guis on top of the airstack apis without any back end at all um so this is a front end right on top of the air stack actually I'll use uh David um and this is a live API call um uh did I spell your name right d-a-w-f-i dot lens there we go uh so there's a uh microphones on the way that's just a live API call and you have uh David's erc720 21's 1155s 6551s and pull-offs all in one view you have uh the social Pro profile including all the followers I can click in here for example and see everyone that David is following uh on farcaster including whether they have xntb lens I can also drill down on them and see how many of them also have lens actually if he's following on both farcaster and lens um and again this is just live like uh just Pinger apis in real time um and then can even click out and just get the API for that which opens up the studio where we just were a second ago so it's really just that easy uh to build all sorts of front ends on top of this you can use the sdks or you can use the apis directly as service was saying um any questions I think we were pretty fast and efficient anyone all right uh we have a telegram group uh for Dev chat uh you can get your uh free API key there uh and our team is there 24 7 to ask any if you have any questions uh if you stop by our table you can scan the QR code to get to our telegram group and uh yeah and let us know we um we'd love to help you build some amazing stuff this weekend so uh let us know thank you

Automatic transcript — names and jargon may be misspelled.