Skip to content

intkane/fuels-ts

This branch is 120 commits behind FuelLabs/fuels-ts:master.

Folders and files

NameName
Last commit message
Last commit date
Dec 12, 2024
Dec 11, 2024
Dec 12, 2024
May 10, 2024
Dec 11, 2024
Dec 12, 2024
Dec 12, 2024
Sep 27, 2024
Dec 12, 2024
Nov 15, 2024
Aug 15, 2024
Nov 28, 2024
Oct 1, 2024
Oct 30, 2024
Dec 2, 2024
Oct 17, 2023
Jun 25, 2024
Jan 26, 2024
Dec 2, 2024
Nov 23, 2024
Aug 8, 2024
May 2, 2023
Jul 11, 2024
Nov 22, 2024
Dec 10, 2021
May 24, 2024
Aug 21, 2024
Feb 10, 2024
Dec 2, 2024
Dec 2, 2024
Dec 12, 2024
Aug 22, 2024
Dec 10, 2024
Dec 21, 2023
Nov 18, 2024
Nov 30, 2021
May 4, 2022
Dec 2, 2024
Apr 16, 2024
Nov 20, 2024
Jul 25, 2023
Sep 13, 2024
Jun 28, 2024
Aug 16, 2024
May 15, 2024
Dec 10, 2024
Dec 10, 2024
May 15, 2024

Repository files navigation

Fuels-ts SDK logo

fuels-ts is a library for interacting with Fuel v2.

test npm docs discord

Resources

The documentation site is your main stop for resources.

Install

npm install fuels --save

If you are a Windows user, you will need to be running Windows Subsystem for Linux (WSL) to install and use the Fuel toolchain, including the TypeScript SDK. We don't support Windows natively at this time.

Import

Simple example usages.

import { Wallet } from "fuels";

// Random Wallet
console.log(Wallet.generate());

// Using privateKey Wallet
console.log(new Wallet("0x0000...0000"));

CLI

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
  node [options]     Start a Fuel node
  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
  help [command]     Display help for command

The Fuel Ecosystem

Learn more about the Fuel Ecosystem.

License

The primary license for this repo is Apache 2.0, see LICENSE.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.0%
  • Sway 0.9%
  • JavaScript 0.7%
  • CSS 0.7%
  • Handlebars 0.3%
  • Shell 0.3%
  • Other 0.1%