explaingit

fuellabs/fuels-ts

43,182TypeScriptAudience · developerComplexity · 3/5MaintainedLicenseSetup · easy

TLDR

Official TypeScript SDK for Fuel Network blockchain. Build web and Node.js apps that interact with Fuel smart contracts using type-safe bindings and wallet management.

Mindmap

mindmap
  root((fuels-ts))
    What it does
      Wallet management
      Deploy contracts
      Call smart contracts
      Query chain state
    Key features
      Type-safe bindings
      ABI code generation
      Scripts and predicates
      Asset handling
    Use cases
      DeFi frontends
      NFT marketplaces
      Wallet integrations
      Deployment automation
    Tech stack
      TypeScript
      Node.js
      Browser compatible
    Who uses it
      Web developers
      Full-stack teams
      JavaScript shops

Things people build with this

USE CASE 1

Build DeFi frontends that read and write to Fuel smart contracts with type-safe function calls.

USE CASE 2

Create NFT marketplaces with wallet integration and transaction signing on the Fuel blockchain.

USE CASE 3

Deploy Sway smart contracts from your TypeScript codebase and automatically generate type bindings.

USE CASE 4

Write Node.js backend services that query Fuel chain state, read logs, and manage assets programmatically.

Tech stack

TypeScriptNode.jsJavaScriptFuel Network

Getting it running

Difficulty · easy Time to first run · 5min
Use freely for any purpose including commercial. Keep the notice and disclose changes to the patent grant.

In plain English

fuels-ts is the official TypeScript SDK for the Fuel Network, a high-throughput blockchain platform. It is the JavaScript and TypeScript counterpart to the Rust SDK, and it gives web developers and Node.js developers the tools they need to build applications that interact with Fuel smart contracts without needing to drop into lower-level protocol code. The SDK covers the complete development lifecycle for Fuel applications. You can manage wallets and accounts, construct and sign transactions, deploy Sway smart contracts from your TypeScript codebase, and call contract functions using type-safe bindings generated automatically from the contract ABI. A command-line tool bundled with the SDK handles ABI-to-TypeScript code generation, so the types your application uses at compile time mirror exactly what the on-chain contract expects. The SDK also includes support for Fuel scripts and predicates, and provides utilities for querying chain state, reading logs and receipts, and handling assets. You would use fuels-ts when you are building a web frontend, a Node.js back-end service, or a full-stack application that needs to read from or write to the Fuel blockchain. It is the natural choice for teams already working in JavaScript or TypeScript who want to avoid introducing a separate Rust toolchain. Typical use cases include DeFi frontends, NFT marketplaces, wallet integrations, and automated deployment scripts. The entire codebase is written in TypeScript and maintained by Fuel Labs. It is designed to work in both browser and server environments and is the primary SDK for TypeScript-based Fuel development.

Copy-paste prompts

Prompt 1
Show me how to set up a wallet and sign a transaction using fuels-ts for the Fuel Network.
Prompt 2
How do I generate TypeScript types from a Sway smart contract ABI using fuels-ts?
Prompt 3
Walk me through deploying a Sway contract from TypeScript code using fuels-ts.
Prompt 4
How do I call a Fuel smart contract function with type-safe bindings in fuels-ts?
Prompt 5
Show me how to query Fuel blockchain state and read transaction receipts using fuels-ts.
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.