Fuels TS provides TypeScript APIs to deploy, test, and interact with Sway contracts on Fuel. It includes CLI helpers to scaffold dApps, build workspaces, and run a local node.
Overview
The Fuel TypeScript SDK supplies methods and utilities for building on or connecting to the Fuel network. Developers use it to work with Sway smart contracts, wallets, and transactions from TypeScript or JavaScript application code.
Typical workflows include deploying and testing contracts, bootstrapping a dApp and local dev environment via the create-fuels CLI, importing wallets from private keys or mnemones, crafting and signing transactions, and generating typed bindings for Sway programs with typegen for end-to-end type safety.
The companion fuels CLI can initialize a fuels.config.ts file, build a Forc workspace and emit TypeScript types, deploy contracts and record their IDs, and start a Fuel node with hot reload for development. Documentation covers installation, connecting to mainnet, testnet, or a local node, and links to related Fuel toolchain components.
The SDK sits alongside other Fuel ecosystem pieces such as the wallet SDK, Rust SDK, Forc, Sway, and block explorer tooling. It is intended for dApp authors who want programmatic control over contract interaction and client-side wallet handling on Fuel.
Key features
- Deploy and interact with Sway contracts
- Wallet import and client-side storage
- Custom transactions with policies and signers
- Typegen for Sway program types
- fuels CLI for build, deploy, and dev node
- dApp scaffolding via create-fuels
- Published API reference documentation
- Works with mainnet, testnet, and localhost
Use cases
- Fuel dApp frontends in TypeScript
- Contract deployment and testing workflows
- Local Fuel development with hot reload
- Typed client bindings for Sway contracts
- Wallet and transaction tooling on Fuel