Skip to content

FuelLabs/fuels-ts

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4f32fa5 · Mar 6, 2023
Feb 27, 2023
Mar 6, 2023
Feb 20, 2023
Dec 16, 2022
Feb 24, 2023
Mar 6, 2023
Feb 23, 2023
Feb 23, 2023
Dec 16, 2022
Oct 31, 2022
Feb 20, 2023
Dec 7, 2022
Feb 21, 2023
Dec 16, 2022
Sep 27, 2021
Jun 13, 2022
Feb 20, 2023
Dec 10, 2021
Feb 14, 2023
Feb 24, 2023
Feb 14, 2023
Mar 6, 2022
Jan 17, 2023
Mar 6, 2023
Jan 31, 2023
Mar 6, 2023
Mar 6, 2023
Jun 24, 2022
Jan 31, 2023
Dec 20, 2022
Nov 30, 2021
May 4, 2022
Jul 18, 2022
Feb 23, 2023

Repository files navigation

Fuels-ts SDK logo

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

test npm docs discord

Table of contents

Quickstart

We recommend starting with the Quickstart to speed-up and build your first DApp using Fuel.

Documentation

You can find in-depth usage and examples in our Guide, or deep-dive into the internals with our detailed SDK Documentation.

The Fuel Ecosystem

Learn more about the Fuel Ecosystem.

Install

YARN

yarn add fuels

NPM

npm install fuels --save

Import

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.

$ yarn add fuels
$ yarn exec fuels -h
Usage: fuels [options] [command]

Options:
  -V, --version      output the version number
  -h, --help         display help for command

Commands:
  versions           check for version incompatibilities
  typegen [options]  generate typescript from contract abi json files
  help [command]     display help for command

License

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