![Fuels-ts SDK logo](https://raw.githubusercontent.com/FuelLabs/fuels-ts/master/apps/docs/src/public/fuels-ts-logo-light.png)
fuels-ts is a library for interacting with Fuel v2.
The documentation site is your main stop for resources.
npm install fuels --save
Simple example usages.
import { Wallet } from "fuels";
// Random Wallet
console.log(Wallet.generate());
// Using privateKey Wallet
console.log(new Wallet("0x0000...0000"));
Fuels include some utility commands via built-in CLI tool.
Check the docs for more info.
$ npm add fuels
$ npx fuels --help
Usage: fuels [options] [command]
Options:
-D, --debug Enables verbose logging (default: false)
-S, --silent Omit output messages (default: false)
-v, --version Output the version number
-h, --help Display help
Commands:
init [options] Create a sample `fuel.config.ts` file
dev [options] Start a Fuel node and run build + deploy on every file change
build [options] Build Sway programs and generate Typescript for them
deploy [options] Deploy contracts to the Fuel network
typegen [options] Generate Typescript from Sway ABI JSON files
versions Check for version incompatibilities
core Wrapper around Fuel Core binary
forc Wrapper around Forc binary
help [command] Display help for command
Learn more about the Fuel Ecosystem.
- ๐ด Sway โ The new language, empowering everyone to build reliable and efficient smart contracts
- ๐งฐ Forc โ The Fuel toolbox: Build, deploy and manage your sway projects
- โ๏ธ Fuel Core โ The new FuelVM, a blazingly fast blockchain VM
- ๐ Fuel Specs โ The Fuel protocol specifications
- ๐ผ Fuels Wallet โ The Official Fuels Wallet
- ๐ฆ Rust SDK โ A robust SDK in rust
- โก Fuel Network โ The project
- ๐ The Fuel Forum โ Ask questions, get updates, and contribute to a modular future
The primary license for this repo is Apache 2.0
, see LICENSE
.