What is this?
fuels-ts is the official TypeScript SDK for Fuel Network, letting developers build dApps, interact with Sway smart contracts, and connect to Fuel nodes from JavaScript/TypeScript.
Is this a library or does it come with its own CLI?
It is both: a TypeScript library you import into your app, and a bundled 'fuels' CLI for scaffolding, building, and deploying projects.
How do I start a new dApp with it?
Install the SDK, then use the fuels CLI to create a new dApp and generate a fuels.config.ts file for your project.
Do I need the Fuel toolchain installed too?
Yes, you need the Fuel toolchain (which includes Forc, the Sway compiler) installed separately, since the CLI builds Forc workspaces into TypeScript types.
What Node.js version does it require?
It requires Node.js 20, 22, or 24, and pnpm 9.4 or later as the package manager for the monorepo.
Which networks can I connect to?
You can connect to Fuel Mainnet, Testnet, or a Localhost node you run yourself.
Can I run a local Fuel node for development with this CLI?
Yes, the 'fuels dev' command starts a Fuel node with hot-reload capabilities, useful for local development.
How do I deploy my Sway contracts?
Use 'fuels deploy' to deploy your workspace contracts and automatically save their contract IDs to a JSON file for use in your app.
Is there a related wallet SDK for Fuel?
Yes, Fuel maintains a separate Fuel Wallet SDK alongside this Typescript SDK, Rust SDK, and other ecosystem tools like Forc and Fuel Core.
What are similar projects?
Paxeer-X-Network, fuels-rs, cpp-sdk, nuvex, sway, fuel-core, linera-protocol, metamask-extension
Which topics is it in?
wallet, network, smart-contracts, web3, graphql, blockchain, monorepo, sdk, command-line-tool, apache-2.0, typescript, cli