Encode Club x ETHSafari Hackathon: Filecoin & IPFS: Technical Q&A

Encode Club x ETHSafari Hackathon 2022 · 13 Sept 2022 · 57:56

Jenks Guo, developer advocate at Filecoin Foundation, gives Encode Club x ETHSafari hackers an update on Filecoin network statistics, then takes questions on building with IPFS and Filecoin. Topics include storage provider growth, hackathon track requirements and what counts as using the technology, how web2 centralisation creates silos, and pinning services. A demo app shows uploads to IPFS, a payment contract using ethers.js, and file retrieval by CID.

Speakers

Topics

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

Transcript

there's lots of you today welcome to the ipfs file coin technical q a with jinx this is jinx um he's gonna talk for 10 minutes going through a couple of his slides then there'll be some time for you to ask questions and have to give answers to and then after that if there's still time he will show some of the software that he has developed um jenks i will hand over to you thank you alex hi everyone got to see so many so many names on the zoom 142 participants this is great um so i today i'm i'm jenks i'm developer advocate at falcon foundation we work closely

with protocol labs um to advance the agenda of web3 so for today i'd like to give you a little bit of update on the network statistics talk a little bit about web2's challenge and white web sorry and ipfs system specifically it's a little bit different than the talk that i've given before introductory introduction to ipfs and falcoin and then i'll just open up the floor to for hackers to ask me questions it could be anything and please please do feel free to ask questions you don't have to wait for it as well you can put it in the chat and we'll go through that after one by one i can even show you a little bit of the coding that i have done for

demo softwares to demonstrate how you can use filecoin ipfs in your project and how easy it is to use it and be eligible for for far coin um hacker track um i can also demonstrate how to use uh nft storage and web3.storage and s3.tech a few technology that i mentioned earlier um in this in this ama so i hope you're um you're going to get lots of value out of this so share my screen now it is just my browser tab i brought up a public meeting slide out many of our in our ecosystem many of our public meetings actually

as as the name suggested is public so we actually get lots of teams together and ecosystem partners or collaborators together and say hey come come to this youtube session and we will we'll present our work together as if one organization and this is for this public meeting is for storage providers and they focus on the infrastructure side of things so how many storage providers are providing things how what kind of initiatives are going on uh what are storage uh results basically the of network uh they discussed here and this is the latest network stack that i got from them it's a little bit old already um we actually have a lot a lot better stats

than than these ones and it's growing upwards but i but i still wanted to use this one because it's uh it's one of the most official ones so um for the falcon network uh on the storage side there is 16 exa pi of network total the latest figure is actually 18 exa buy so since this was given in march the storage capacity actually increased quite a bit um so except one exabyte is is about one mil uh i think one million terabyte um yeah so so so that's that's a lot of storage to give you an example uh the total amount of cloud storage in the

word is 2000 xfi right now that's uh some research that i saw today about it so this represents almost one percent off of the cloud storage so we're true true and we're truly a enterprise grade so we're the network that from a storage capacity aspect we can kind of close enough to start to compete with cloud storage out there we also have increasing amount of search providers we used to call them miners but because them because the name doesn't really suggest what they do we've renamed them to storage providers because they are indeed providing infrastructure services there is a four thousand more than four thousand of them

since march and it is growing in a growing speed um we have a couple of products i mentioned earlier nfc dot storage and also web series storage so an ft dot store is actually a free storage for any nft project to store their nfc on it and it has received usually like in two weeks time they can grow about 5 million so in march they had exceeded 50 million nfts or files stored on it that's amazing that the number is a lot bigger now because of the gross rate uh and overall overall on the falcon network there is uh more than two million uh more than two million deals being made so people are actually

trading the the storage space over there and earlier i used the analogy of airbnb for hard drives and this figure shows that indeed the market has been formed um and we're not only measuring the capacity of the network we also care about the data being used so the utilization is also a key key result i want to see for the network and right now there's 50 so in march there was a 55 petabyte of network data utilized i think this number is more than 100 petabytes now by now where are they located the storage providers continues to grow these are the number of storage providers

and these are the distribution of of where they are in in the world so china takes a big chunk of it um and then i think there's a little bit better graph than this but this is a little bit older yes but what we're seeing is the trend is that the the chinese stock providers are reducing so their starter power is reducing and it is moving to rest of the asia and also the north america storage is increasing as well so the overall as a network it is a good thing to observe because uh that means the storage is being more evenly distributed around the globe so that's what we would like to see um because this is a hackathon i'd like

to mention a few other hackathons that is that's going to happen later so this one is right here happening right now is safari by encode and we also have east pagoda i think that's coming in in a month time and there is a few other hackathons that we're sponsoring we always sponsor a lot of them if you would like to find out the uh the rest of the hackathon activity you can go to hackathon.filecoin.io and uh if we decide to sponsor a hackathon or participate in one of the hackathons we need to get this image fixed this uh it's not showing but we'll do after

um and then you'll find the latest updates here we'll always keep our hackathon activities uh here we have an amazing hackathon operations team um in the organization and we are uh we're our hosts we're doing a lot of activities there so i want to highlight this section so if you would like to build and face some problems or in the future after the hackathon you're building your own project you can actually reach out to us by joining community our slack community message us directly or you can you can feel free to join our office hours it's at thursday 2 p.m utc every week

one of the developer advocate will be stationed there to answer your questions it's uh it's really fun to do that because we do it on a on a video platform called gather gathentown and it is like playing an rpg game but instead when you get close to someone you start to video conference with that person it's very casual and it's very easy to uh it's a very casual environment for you to chat to one another you can also show you a formal call with one of the developer evangelists or advocates um there with this link so so that calendar link calendar link so so there you go and if you want to be reminded of the hackathon judging

criteria there is also a link and also a bunch of material to help you to get started with ipfs and falcoin i'm going to just open this link to show you a little bit of what they what they have so this this is just like explosion of ipfs and falcoin sort of getting started guys here um there are information about storage helpers if you want to go deep into ipfs you can go that area and if you would like to interact with the far coin blockchain tools you can go here and then a few other sort of libraries that you can use there are also tutorials demos examples videos and

ama sections sessions that are a lot better than this one recorded somewhere on this link so feel free to check it out and then of course the judgment criteria uh which is relevant to you all hackathon participants um so we we look at projects with uh novelty creativity aspect potential impact technical accomplishment and also because it's a fall coin and ipfs sponsored um track we care about the falcon ipfs implementation we have uh we have a list of requirements to uh to any project if you're not using the filecoin ipfs implementation we couldn't qualify you

for for the track so pay attention to these and on the right hand side um i think yeah so on the [Music] showcase uh so over here what qualifies as using ipfs and um falcon technology is specified here so we explain like whether using morales ip ipfs api is um is eligible um then we uh we actually explain yeah we pretty much explain everything if you if you have a project that uses pvp that's also fine that qualifies as using ipfs and filecoin technology we use ipfs and falcoin as a kind of general word for the collection of technology for the

lack of better word describe the the collection of technology that we have there you can also just use painting services like using pinata infuria temporal that's also fine light pier also has integration with ipfs if you use those things in your project that will also work um and then one thing i want to highlight is flick is wonderful it's a really good tool it's like netfly of web3 is great but if you are only using fleeq to deploy your website that doesn't qualify as as a sort of ipfs far coin eligible project however if you use a fleeq js library or

sdk to interact with ipfs and write data to it from your application then you're eligible but just deploying site on or spherule it's it's not enough to justify a adequate usage of the technology yeah so this page has it all it's a it's a very important page for you to go through if you intend to go for prices that we that we want to give out i'll talk a little bit about uh web 2 challenges so we're we're in a movement of um building web3 um and the reason is that the web 2 is not perfect the internet that we're using right now is not perfect we're seeing uh what we we're seeing these days are the rise of

the platform businesses so all of these logos that we interact with every day there are platform businesses that that are centralized services to provide um provide content but where did the content come from where did the usage come from it actually came from every one of us so they have made internet extremely easy to use so you can download an app or visit a website log in register as a user and start to write things and create things on them but there are they're actually using the the centralized model to host everything so that causes one problem if some of them goes down your content is not available if let's say aws

their data center goes down or a cdn that goes down because the centralized design a lot of things could be unavailable to you um and it also creates it also creates a lot of silos the reason why it is it's it's in intrinsically using a location-based addressing schema to visiting the website so when you're typing a url domain name it translates to ip addresses we all know that and it tries to find a file located in a server much like our computer our computer uses paths to find the file and the internet works similarly but this is this was a design decision that people have made a long time ago because it's most

intuitive and easiest to implement so it was down uh this way so it means that there's actually a lot of contents available and being duplicated all around the internet but you can't access it because the kind of portal or the platform that you use to access it is down and then you're you're you're being locked away from that content forever so what we are trying to do um so imagine like the the content is actually being downloaded and it's sitting in your housemates computer but you can never access it because they they're they're using a different platform or you just can't access it then that's a shame because those

resources actually available locally in your area if you're cut off from maybe the external internet or from a certain platform you should be able to actually get the other files on top of not being not making things available and centralization failure the other thing is the internet is incredibly inefficient right now because same content actually gets downloaded multiple times to different people let's imagine a youtube video being watched it is actually being downloaded from your nearest cdn over and over again to different computers but if we if we have a peer-to-peer system where each peers can share files with each

other then we're leaving we're actually using the internet in a smarter way because each one of them will actually share it and you get the content from the closest station instead of always going to a centralized server to download it leaving lots of like bandwidth being consumed for the same content so the current um internet has has a few problems if if something gets disconnected like a server or a central hub then you're cut off from all the services or the content that you wanted it is not bandwidth efficient it is not made for offline a lot of applications don't work offline and uh it permanence is a problem like there is

there's research done that the normal website the average website a lifespan is two and two and a half years or 2.7 years and that's incredibly short because there's um compared to the the information like if you write a book then the book can last quite a long time but uh the content on the internet doesn't doesn't last for more than 2.5 years in on average so a lot of pages that you're seeing right now it could be gone in two years time or sooner um there is it's so easy to be controlled because the centralized nature of it the government just needs to control a few central points to be able to control the internet and

and yeah so these are all the problems with current internet and the web 3 so and white ipfs what it intends to build is a file system that is offline first and that is smarter so multiplication of data and saying bandwidth it is fully distributed meaning that you can't ban it no single authority can ban it um it should support permanence it should help with permanence and it should be safer so secure to use and then faster on and faster in theory should be should be faster than the centralized model so the ipfs actually uh changes the location based

addressing for the internet we intend to build a new internet so ipfs would like to change it to a content-based addressing so instead of asking where the con where the content is where the website is we're asking like i need this website this specific contents directly and it's the system should retrieve the content no matter where it is so if it's near you then that's great so get it from your housemates computer if it is far then we need to go through a few hoops to actually get the content and serve it so that's the intention of of ipfs so changing from

from location-based addressing to uh to content-based addressing ipfs gets used by a lot of applications uh these are just a few uh this is not exhaustive a list of uh ecosystem of application that uses ipfs a lot of people in nft space also knows about ipfs and everyone knows about writing ipfs url or cids into the nft meta metadata and the contract so it it it can be immediately stored the reference is uh is not easily changed ipfs is integrated

in browser if you download brave or opera and type in ipfs column slash slash and the cid you'll be able to you'll be you'll be able to visit it the hope is that in the future all web browsers should be should be able to talk to ipfs natively and treat it as the same as hdp but this is still a work in progress with major browsers like chrome and firefox and there are people working on this in protocol labs right now there is also standard being done for based on ipfs or related technology for decentralized

ids you can you can check out this project called ceramic and they have a integration with ipfs as well and they're trying to start their own standard for the ids that could have a huge implication on how we build the app in the future there is a lot of uh it is open source project so there is a lot of contributors in ipfs every month so so if you think if you think certain parts can be improved if you like to dedicate some time to fix certain things in in the tooling on ipfs feel free to do so and contribute across the bio hackathon project

so i think i won't say more about web3 i think um that's enough me talking i don't wanna bore everyone uh does anyone have uh questions for me yeah sure what is the difference between falcon and rv so far coin so i can use this to explain i actually didn't didn't look into rv too deeply so i don't exactly understand it's uh it's mechanisms uh but i can talk about file coins quite quite quite in quite a bit of details so you can see this graph so far coin works by clients making storage deals with

storage providers which are miners in another word um so the when the storage is offered it goes on to a marketplace open marketplace and then the storage provider actually uh compete to offer the storage to to the client so it is a dynamic marketplace and then when they make the deal the deal actually expires in six to 18 months time so it's by design so it's time bounded deals and then it expires so you need to renegotiate deal to to keep going so this provides a mechanism for market to adjust itself based on current situation it keeps uh it's a it's a it's a sustainable

ecosystem so so this is this is probably a little bit more complicated uh than the offering out there but we're trying to make tools that allows allows developers to not worry about all these deal making and abstract that i'll talk about that in a little bit but this is it is essentially how far coin deals works um and then for our weave my understanding is it's a it's idea of permaweb so you pay once and then a miner or a storage provider will store your file forever so so so it's a simpler proposition than than far coin the way i think

um i think this is um so both our weave and file coin are based on ipfs ipfs is the technology that bose uses and that's the same that doesn't change so i hope it explains uh difference between falcoir and reeve uh there is actually a really good article on massari that did a comparison between falcoin and our way with someone search for that you'll be able to find that how does uh there's another question oneish asks how does far coin token tie into the model uh so far coin is being used for making storage deals uh simple simply put so it is a utility

coin uh made for uh the start market that we we're trying to we're trying to grow so right now the star the use usage of the uh the coin is is basically for the storage um but we're we're working on something uh really exciting that's a falcon virtual machine now falcon which virtual machine will uh hurry iris uses my own pa um database so that's the next question but i'll go through this first so far coin virtual machine is actually a virtual machine built on top of fall coins protocol and so it will allow the developers to customize the actor

on the notes to be able to execute their smart contract so this will allow falcoin to be used in other the non-storage related um purposes so this will bring more utility more type of utility to the to the far coin token itself so hopefully like layer two and you know all these d5 projects maybe nft and all these are possible with the help of falcon virtual machine and if we use if we invite the l2 solutions to build on top of file coin then that will be able to provide even more uh performance for certain industries and utilization

so spqr asked for a different question can i use virtual machines from aws instead of my own pc uh so i'm not sure uh what the virtual machine is what you're referring to i think it's the node implementation uh so let me bring out one slides for you that i made earlier uh yes it is possible to have your node running on aws instead of your own pc and the the primary node implementation actually is um [Music] uh is lotus a lotus actually has amazon machine images available for you to load

you can fire it up within a couple of clicks and start to interact with far coin blockchain uh from aws so that's a totally possible and the good news is uh infuria so consensus by consensus they actually have they actually have solutions to have a hosted um have a hosted solution for that so if we go to let's go to infuria and take a look so if you are the i o if we want to products uh ipf so there's ipfs api yeah so over here um you can actually spin up like instead of an insertion node you can spin up a

falcon node and have your private falcon node running on the inferior network i don't know what they use under the bonnet um but this this is a way to actually have a hosted solution rather than running on your laptop which could be resource intensive and if you want a full node you might need to wait for a very long time to be able to be in sync with the blockchain this is a talk i've written for developing on falcoin lotus which is the most popular implementation for falcon network so just to give you an idea there are three implementations for far coin each has different capabilities lotters and venus are quite similar um and then forest is maintained by

chain safe and so with lotus you can yeah it doesn't matter where you run it it's based on gold and rust two languages you can install it on your local machine to run it i actually have a have one running on test net on my machine or you can have it hosted online so this is a feature comparison between all of the implementation lotus has most of the features and venus has most of the features as well but some of the build it refers to the lotus implementation and forest has only is only a node so it participates in a blockchain network and

rest of the functions are still in progress yeah so it has has a cli access so you can interact with it with coi yeah you can also [Music] you can also use their api to interact with it we also have libraries so after you have spin up your uh your lotus note you can connect to its json http json rpc endpoint and use some libraries to interact with it so can we use this already i don't know helios can you clarify on what this means

fvm fem is programmable should be programmable soon so from september october uh it will they're planning a launch right now so in october they can launch and then you can look into the documentation of it actually haven't haven't been following that project myself but um it will be uh it will be an exciting launch very soon so stay tuned yeah but unfortunately i don't think you can use it in this project because it's not programmable yet the um question by scoop scoop s sc00b is nft starch built by falcoin yes so that was so nfc storage is

i should say closely affiliated with us and sponsored by us um it's made by protocol apps which is the research uh and engineering company that created ipfs and they also helped the launch of uh falcoin so far coin foundation is an independent organization but we have really a lot of things to do with um with pro collabs and good friends with protocol apps so it is made by pro collabs you can say it's made by falcoin as well because of our affiliation yeah so yeah so nft storage is quite interesting i really like how simple it is so you can log in with your github

account and you can almost use it as like a dropbox for nft uh there is a actually a software if you need to upload business thing like a lot of people likes to do a lot of nfts at once like 10 000 images at once you can actually download a desktop software called nft app and and drag and drop your files there with metadata like a json file related to it and upload the metadata at the same time to ipfs so your your metadata is there but also the also the asset there as well so these are like the files that i have done probably for testing before and if i would like to so these are

actually this far coin start provider that is storing my file that's being uploaded well there's a lot more for this file it's it's really redundant than for this one i don't know why so if i would like to visit this file actually let me not uh do this file i don't know what it is there might be something rude and that can't show on this streaming but [Music] but if you look at here the nft app uh let me see if i can find it uh i can't find it uh yeah upload this energy app so this is the like i think it only works for mac for now yeah so if you drag and drop you

can upload files in batch and it's quite cool to to to upload that many files at once so yep uh so i've got a few questions now thank you thank you for asking questions it is an ama so by participating you are making this real how is this different than falcoid i think it offers the same thing um maybe uh html html h can you explain elaborate a little bit more um what is different than file coin so i'll go on to answer next question is nft start free so nft storage is free and should stay free for

for a very long time uh so where does it explain the cost so so basically what we see is like file client foundation our our mission is to uh is the steward of the falcon community right and also we aspire to put the power of humanity's most important information back to the hands of everyone and filecoin network is is intended to store humanity's most important information so what farcoin decided to do a while ago and together with protocol labs is to form a working group and a program called falcon plus uh so over here so falcon plus is a is a

program that they look at different kind of storage uh data that's been stored around the world and and the need for storage what they do is they decide on what start what what files are actually valuable to human beings humanity and and then they will make sure that these files are tagged as verifiable data so verify data verified data are done by a group of notaries it's a notary system so those notaries there's more than 100 of them now they will give out data caps which are essentially free storage for clients to use so these clients can be can be solar foundation could be like

internet archives so these these people over here they could be they could be our clients but also nft storage is one of the clients for falcon plus program and so they're receiving receiving funds from falcon plus program so that they can stay free because we see nft as one of the most important humanity data to be stored so therefore it is free um so it should stay free for for for a very long time as long as falcon plus program is uh sponsoring it still all right so free for 30 gigabyte uh okay current limit is 31 gigabyte per individual per individual upload i don't think it is a

there's a limit um but i can i can look into this and confirm this so the next question are there other projects like nft stories that's done by you guys yes yes carnage there's another project called web3.storage and i just learned from the um on the falcon green project that co2.storage is the thing so co2 storage is uh okay that's not the one but there is a co2.start from the latest ecosystem update let me see to the storage okay here we go so it's a free decentralized search for environmental assets on ipfs and falcoin

so co2.starch will help you to figure out um what you actually bought so there are related to related to sustainability and uh and and making blockchain green so that's what they the falcon green team is trying to do and then for anything that's not nft we have a webseries storage as a service to to developers many developers because it's developer focus tool so the way it works is it's very similar to um to nft storage so provides api interface for developers to upload files to ipfs and falcoin and then it has sdks for people to embed into their application

um the pricing so the interface works a little bit differently but on uh it's it's pretty much similar features as in of detail storage so the it is free for first terabyte but you will right now you need to request so if you need to tell us the reason for using more than one terabyte it is still free for now but the team is working on a pricing strategy so we don't know the pricing yet but when this release will know that exactly how much webseries.storage costs beyond one terabyte yeah so that's another project good project by us

also there is ashrae.tech so that's also built by us z3.tech is actually so there is a cloud version of it like hosted version of it but it's actually made for developers to download install on their own server and and start their own kind of s3 node so you can interact with uh with ipfs and filecoin easily and those like deal making becomes one single api call et cetera those things will be will be quite easy for for s3.cloud um i think this is this login will still work so yeah so over here s3 cloud version you need to request for api it's a bit manual

because it's not intended to be a cloud storage or centralized service for everyone to use so over here i can like easily upload a really easy file and then so here upload all and then it will pin it on the s-ray node that's being hosted by protocol labs and it will pin it on ipfs so i can so i can so actually i can see my pin the file from from the portal uh gateway ipfs gateway a little bit slow always for new files

um and then behind the hood uh uh so behind the scenes it actually goes out and make a storage deal uh with starter providers although this file is way too small so i don't think anyone is going to take this deal um so that's that's an easy way to actually interact with far coin rather than uh go on to you know establish your own node have lotters running and then um and then use a lot of cri to make a deal or api to make a deal with with a storage provider so that's another project so in short nft storage web 3.0 storage and s3.tech and if your project is environmentally related soon

i think in the future you can use co2.starch i have another question from jonathan what is the difference between nft storage and web series starch also i find webster storage more easy to use than nft storage i agree web3 storage is the one that i did my demo application on i really like the experience i i don't actually know the nft storage challenge in in this usage i haven't done i haven't written a lot of programs that talks to nft stories yet um nfc that storage and web series storage uh are both services like i i call them storage like

gateway softwares or um it should be called storage helpers so what they do is they help you to put files pin files on ipfs and then behind the scenes make deals on far coins so it persists um but once it's once it's off like once it's uploaded on ipfs and it kind of your file is kind of uh is stored on d web um and on the ipfs network itself so it helps you to get there fast um so those those are things so as from a function like for the application they they're about the same thing but technically

there must be differences between them but i don't i haven't looked into exactly what the differences are um so for like for from a business use case perspective nft should be used for nft and ft only and then it's designed for nfts and then the webseries start should be used for general generalized application storage it's worth to mention that nft starts to make retrieving really fast because a lot of people need to see their nfts need to display their nfts everywhere and nft storage also made a something called as super hot so it is a very fast retrieval gateway um

to for ipfs so if you upload it through nft.start you can get you can use nftstorage.link this ipf has gave you to retrieve it and it should be very performant for your project so i have a think of using this uh for your own project and you can read more about it so i will uh show you a little bit of code that i have already written i'm not gonna write live code i'm i'm not good at writing code on the on the uh on the ama or on the live streaming uh but here's one i prepared earlier this is a this is the application that i wrote for a chinese education series but it's in english so anyone can go to

this link and and take a look and copy it so it's called ipfs filecoin dap demo and actually before i made this i made another simple um simple application called ipfs storage demo so they're actually a very simple program it's they just allow you to upload file to web3.storage and yes both of them are using web3d storage because it's easy and i keep going back to it to it and the the other software um one of the software only uploads to web3.storage

and then the other one the dab one actually has a solidity contract on it so before you upload it you will upload a file you will need to pay a certain amount of money is in your ethereum to be able to upload it and then for the um for the for the for the non-using room and for downloading it you also need to pay certain user and to be able to download it it's like a very simple business logic behind it to to to demonstrate um to demonstrate the sh the uh the the ability of using webster storage together with uh with the smart contract

i'm not sure what happened to github now i it seems my seems like my personal dashboard is loading very slowly but you can see here so this is the adapt version of it i made a little gif here um so you click on upload file select the file and then it will prompt for metamask confirmation for transferring one is that's the expensive file to upload but don't worry when your friend wants to deliver wants to download it they will also need to pay like one east and then you'll get a share back

the the software is gating the ipfs uh cid uh before so before that before the downloader is able to download there is no is no cid display so so that's all it does so we'll display the cid of it and the smart contract will actually store the file in the smart contract in an array or i should say a mapping and then each each file will have a a id on it so when the smart contract gets executed when the download file contract gets executed it will look up

the file id retrieve the cid and serve it so when when the uploader is uploading the file they will they will actually store the cid right in the smart contract so it's retrieved through the smart contract becomes the database for for different files that's being uploaded and the only way to retrieve that cid that uploader knows is to pay the money to get it on pay the money to be as a downloader pay the money and then get get it all so that's how it works for the for the non-smart contract version uh so storage api in general so for the other one it's uh

this is simply a interface to select a few files and then upload and then upload to web3.storage and after uploading it it will create a single cid link for you to visit and you can use the web.link gateway to download those files so on the right hand side what you're seeing is what this ipfs demo application does um so it is a simple uh react application with different modules in there it's just one page and then it shows and hides the different components by using very simple logics on the front

end so if if the cid is there and then it shows file uploader if if cid is not there and then show the uploader component and if it is not uh then that means some and has already successfully uploaded so we show the success page and if the sending is being flagged then we're in the sending status so you show the spinning stuff and and if you have arrow show the ipfs arrow page so the meat of the project is actually here um you can see that i've included webs3 storage uh api at the sdk here to interact with web3 storage api like like so

and then on the submission of the web form that selects the files i spin up a client so a i instantiated a client with the token that i stored in my environment variable so over here and then that token is retrieved so now i can talk to my account on web3 storage via api and then i will use this client.put files method to put the file in there what it creates is a route cid for me to visit so hopefully it was still wrong let me see it's been a while since i

since i write write this let's all transfer should still run so yeah here we go uh so if i fall if i select some files i probably have done this a million times these two files and then can show you behind the scenes i'll send there are some oh there's some complaint on my syntax so some of my front-end code is not it's not written very well

so there you go so the two image files that i have uploaded should now be in my web3.storage account so if i go to my account and let it let it retrieve all of the files that i that is under my account it's uh yeah so over here this should be should be the file that i have uploaded so let's see the cid is let me make this bigger cid is k7dm and then over here k7dm so this this is actually the same file and if i click on this link it should take me to d web gateway ipfs gateway which i find like

perform a bit better than ipfs.io gateway sometimes hopefully this time as well and it looks like it's not okay that's fine that's fine so um so this this completes the kind of the cycle so everything's uploaded yeah webster start web stream helps us to push to ipfs create the cid and then it now pins the file to the uh to to ipfs on web3 storage server and now uh what it does is we're by using the dweb.link we're trying to retrieve it through a gateway and the gateway talks ipfs and then makes requests in the peer-to-peer network and try to find that

find that content from from website sarg so that's that's what uh what is doing behind the thing so while it's spinning trying to find it oh we got a gateway timeout so i'll just try a little bit more uh i find the perform i have i find that you have to wait for a few minutes after uploading for for this uh to work work well so meanwhile i'd like to show you like the software that i have written here um which is considered a front-end-only application so over here uh over here

front-end only application you can test locally but for your for your actual project you can deploy through flick quite easily so in my readme documentation you can see that i included one section about flick the flick is extremely easy to use this is my flick account i can log in with my github account as well i think i'm already logged in so you can see that this these are actually the websites that i have hosted here um and uh it connects to my github repository very easily so through some github authentication i was able to find this

repo and say hey here's my repo here's my code please retrieve it and also um also build it for me and run it and put it on ipfs for me so it it does exactly that and it gives you a web 2 a domain address for you to visit so the application that i've written file coin storage demo it is now live over here so and it is linked to my website.storage account so there you go so i encourage you to to actually use this fleet for your project so let's uh let's give this another try

what if i upload another one so this has been uploaded before to website storage and the gateway is able to find it i hope this returns a better result now we seem to have some problem here so if you are unsure about which one which gateway to use you can go to our ipfs gateway and

you can find a whole list of ipfs gateway there do some tests or refer to this table it'll give you the kind of the latency test uh and the performance of this gateway it's actually doing a test right here and you can pick one to to use to get away the ipfs io cf ipfs etc there i'm not sure what's wrong here and and here seems like the the d web dot link ipfs gateway is not performing well right now so what i'll do is i'll put this

demo link to you all as well feel free to copy from it if you like so the file uploader the important part is here for [Music] uh for the d web one so the one with metamask integration um it is a view application so i try to use a different front-end framework to run it and then there's the the contract here for everyone to to look at

uh please this contract is not perfect please let me know what i can improve on this and how i can make this more secure if you're a d-app specialist and then for the actual data storage uh using the components file uploader so over here so here are some some of the stuff that i use to deal with uh metamask and the ethereum development environment but the actual the part that is in charge of uploading the file is here and there's a downloading

section as well so i will put this here and to go to the downloader section so for downloading i'm actually using ethereum ethers.js to interact with i'll make this a little bigger so i'm using ether.js to interact with the contract and then nominate a figure to pay and upon successful payment i'll trigger the download file contract and that will return the cid and then i'll use the cid to

actually retrieve the file sorry about that so i'll copy this and put it in the chat as well for you yeah it's uh it's been a pleasure um as you can tell i don't know everything there's a few things that i couldn't answer which is great because i now know where i can learn on my job and i hope you have learned something as well from this session so you can better understand and use the the ipfs and falcon technology lastly i want to show you this i just finally got the vendor image working so from my application

over here upload a vendor sent to there i think it's already like made the root and um it's all working so the gateway is able to retrieve it just it took took a long while though it took a long while so the ipfs technology works quite differently than the client server model client server model you can always expect a certain performance but depending on where files are located and how many nodes they need to retrieve ipfs will offer varying performance so if the file is on the local wi-fi network the same as your uh like in your home then it's ultra

fast um but if the file is actually quite far away from you and needs to go through like 200 computers to get to you then the performance is a lot worse because it's doing something different than than just talking to one server so so there you go if it's on ipfsnow it loads faster yes it is it will load faster because you're basically uh uploading to your local machine and then retrieving from your local machine because it knows that on your hard drive you actually have that content um so it will be a lot faster yeah also if you host a ipfs note on

jira or you can do it on aws as well so if you host your own ipfs node then you can you know that it's always there um and the end of probably the distance of you and that no then it will offer a consistent performance awesome thank you so much janks and thank you everyone for coming i hope the majority of your questions were answered and if any other questions pop up just pop it in the technical questions section on the discord um and yeah thank you so much for coming jinx thank you for taking time off your day to answer these questions we really do appreciate it um good luck to everyone for the last week of the hackathon keep hacking we're almost

there i'm just sure we're going to see some awesome projects and i've spoken to a lot of you and there's a lot of cool um projects coming up lots to do with falcoin and ipfs so jenks is your man if you've got any questions um hope you have a lovely rest of your day awesome bye everyone [Music] you