Base Documentation home pagelight logodark logo
  • Blog
  • GitHub
  • Support
  • Base.org
  • Base.org
Get Started
Base Chain
Smart Wallet
OnchainKit
Wallet App
Cookbook
Showcase
Learn
Building Onchain
  • Welcome
Onchain Concepts
  • Core Concepts
  • Understanding Onchain in Your Tech Stack
  • Web2 vs Building Onchain
  • The Development Flow
Introduction to Ethereum
  • Introduction
  • Ethereum Dev Overview
  • Ethereum Applications
  • Gas Use in Ethereum Transactions
  • EVM Diagram
  • Guide to Base
Onchain App Development
  • Frontend Setup
  • Writing to Contracts
  • Reading and Displaying Data
  • Account Abstraction
  • Cross-Chain Development
  • Finance
  • Deploy with Fleek
Smart Contract Development
  • Introduction to Solidity
  • Contracts and Basic Functions
  • Deploying to a Testnet
  • Control Structures
  • Storage in Solidity
    • Simple Storage
    • Step by Step Guide
    • How Storage Works
    • Storage Overview
    • Exercise
  • Arrays in Solidity
  • The Mapping Type
  • Advanced Functions
  • Structs
  • Inheritance
  • Imports
  • Errors
  • The new Keyword
  • Contract to Contract Interactions
  • Events
  • Address and Payable
Development with Foundry
  • Deploying a smart contract using Foundry
  • Foundry: Setting up Foundry with Base
  • Foundry: Testing smart contracts
  • Verify a Smart Contract using Basescan API
  • Generating random numbers contracts using Supra dVRF
Development with Hardhat
  • Hardhat Setup and Overview
  • Testing with Typescript
  • Etherscan
  • Deploying Smart Contracts
  • Verifying Smart Contracts
  • Mainnet Forking
  • Hardhat Tools and Testing
Token Development
  • Introduction to Tokens
  • Minimal Tokens
  • ERC-20 Tokens
  • ERC-721 Tokens
  • NFT Guides
Exercise Contracts
  • Exercise Contracts
Storage in Solidity

Simple Storage

Store data on the blockchain.

Was this page helpful?

Suggest editsRaise issue
ExerciseStep by Step Guide
Base Documentation home pagelight logodark logo
xgithublinkedin
Base.orgPrivacy PolicyTerms of ServiceCookie Policy
xgithublinkedin
Assistant
Responses are generated using AI and may contain mistakes.