Back to Projects
AdvancedFREE

Stylus dApp

Build your first dApp on Arbitrum Stylus using Rust. Stylus allows you to write smart contracts in Rust, C, and C++ that run on the Arbitrum blockchain with significant gas savings.

15 hours
+140 points

What You'll Learn

  • Set up Rust development environment for Stylus
  • Understand Stylus SDK and ABI encoding
  • Write and test Rust smart contracts
  • Deploy to Arbitrum Sepolia testnet
  • Interact with Stylus contracts from JavaScript

Step-by-Step Guide

Step 1: Set up your environment

Install Rust and the Stylus tools.

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Add wasm32 target
rustup target add wasm32-unknown-unknown

# Install cargo-stylus
cargo install cargo-stylus

# Verify installation
cargo stylus --version

Prerequisites

  • Basic knowledge of Rust programming
  • Understanding of blockchain concepts
  • Familiarity with smart contracts
  • Arbitrum Sepolia testnet ETH

Tech Stack

RustStylus SDKcargo-stylusethers.jsReact

Resources

Track Your Progress

Sign up to save your progress and earn 140 points upon completion.