⌘K

Icon SunFilledIcon MoonStars
Sway

Icon LinkThe Sway Programming Language

Sway is a domain-specific language (DSL) for the Fuel Virtual Machine (FuelVM) , a blockchain-optimized VM designed for the Fuel blockchain. Sway is based on Rust Icon Link, and includes syntax to leverage a blockchain VM without needlessly verbose boilerplate.

This book documents how to write smart contracts in Sway, along with how to install and use the Sway toolchain.

Before starting developing smart contracts in Sway, please keep in mind the known issues and workarounds of the language and toolchain.