Fuel blockchain developer tool

ABI JSON to TypeScript.
Zero hand-typing.

Fuelchain generates complete, type-safe TypeScript interfaces from Fuel smart contract ABI files. One command. Every method, every type, fully typed.

npm install fuelchain typechain-target-fuels --save-dev Works with Sway contracts compiled by forc
fuelchain --target=fuels
$ npx fuelchain --target=fuels --out-dir=./src/contracts ../counter_contract/out/debug/*-abi.json
Successfully generated 4 typings!
src/contracts/Token.sol.ts
src/contracts/TokenAbi.hex.ts
src/contracts/factories/Token__factory.ts
src/contracts/index.ts
$
Type-safe contract bindings, generated from your ABI. Every method, every event, every error type.

Pure TypeScript

Generates .d.ts typings compatible with the Fuel SDK — no runtime dependency, no extra bundle weight.

One command

Point it at any ABI JSON file and get full type coverage. Works with scripts, predicates, and multi-contract projects.

Fuel-native ABI spec

Built specifically for the Fuel ABI JSON format — handles Sway-specific types, enums, structs, and nested generics correctly.

Watch mode

Rebuild types on every ABI change. Integrate with your build pipeline or CI to catch breaking contract changes before they reach production.

From contract to code in three steps

01

Compile your Sway contract

forc build

Forc outputs ABI JSON alongside your binary. That's your input.

02

Run fuelchain

npx fuelchain --target=fuels --out-dir=./src/contracts *.json

Point it at one file or a glob pattern. One output directory.

03

Import and build

import { Token } from './src/contracts';

Full type safety on every contract call. Compile-time errors on signature mismatches.

Building on Fuel should not mean hand-typing your contract bindings from ABI documentation that doesn't match the code. Every method call, every event, every struct — fully typed, always in sync, generated automatically.

Fuelchain exists because the gap between a compiled Sway contract and a working TypeScript dApp should be zero.