❗ Store Data in the Blockchain with a Solidity Smart Contract

preview_player
Показать описание
Part 2 of Web3 User Profiles. In this video, we'll be learning how to store data in the blockchain using a Solidity smart contract.

If you're interested in learning how to store data in a blockchain smart contract, then this video is for you! We'll be using Solidity to create a smart contract, and we'll also be learning about Web3 User Profiles and save on gas fees. This video is a great way to understand how blockchain works and how to store data in a smart contract!

That's not all, We will discuss how IPFS can save us gas fees by storing user information in the IPFS file blockchain but use a smart contract to save a reference to the IPFS path for the user wallet.

Smart Contract Repo:

#solidity #blockchain #web3

⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⡟⠁⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⢹⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⢠⣴⣾⣵⣶⣶⣾⣿⣦⡄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⢀⣾⣿⣿⢿⣿⣿⣿⣿⣿⣿⡄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⢸⣿⣿⣧⣀⣼⣿⣄⣠⣿⣿⣿⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠘⠻⢷⡯⠛⠛⠛⠛⢫⣿⠟⠛⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⣧⡀⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢡⣀⠄⠄⢸⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣆⣸⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
Join Net2Dev Official Discord!

▬▬▬▬▬
SECTIONS 💬 (Watch to the end!)
00:00 - Start
01:15 - Storing Data with Solidity Structs
02:40 - How Does Structs Work?
04:00 - How To Do Struct Mapping?
08:11 - Nested Mapping.
11:40 - Deploy the NFT smart contract.
13:55 - Using IPFS storage to save on gas fees.
16:40 - ERC Lotto Game Struct Logic
18:40 - Build The User Database Smart Contract.
20:00 - Build The Function To Store User Struct Data.
25:00 - Build The Function To Update User Struct Data.
28:50 - Build The Function To Delete User Struct Data.
31:00 - Add a Nested Mapping to the Smart Contract Struct.
37:00 - Ending.
▬▬▬▬▬

** THIS TUTORIAL IS FOR EDUCATIONAL PURPOSES ONLY**
** NOT FINANCIAL ADVISE **
** USE IT AT YOUR OWN RISK, I'M NOT RESPONSIBLE FOR ANY USE **

Please support my channel!

Net2Dev Official Website:

#twitter

#instagram
Рекомендации по теме
Комментарии
Автор

Hey i'm doing a project where we have to share the patients infowmation form one user to another in a blockchain. I was thinking of off chain storage to store the info and with that store the hash value at the onchain. So what should i do. So i follow the same with this video? plez

akaxhh
Автор

Like solidity basics video on modifiers functions and so on pls

josephomotade
Автор

Loved your video man ! Thanks, keep sharing knowledge

MPVIRDI
Автор

sir, how to extract nested mapping on JS

mohdxnizamv
Автор

hi could you do a tutorial on how to incorporate IPFS !

dannweezj
Автор

This was the best explanation you’ve ever done!

cmc
Автор

Great video!
It is not safe to store data like this, anyone can get your email, name

VELIXYZ