dabit3 / fuels-ts

Fuel v2 TypeScript SDK

Home Page:https://fuellabs.github.io/fuels-ts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Fuel v2 TypeScript SDK

https://fuellabs.github.io/fuels-ts

License:Apache License 2.0


Languages

Language:TypeScript 98.7%Language:JavaScript 0.6%Language:Handlebars 0.3%Language:Shell 0.2%Language:Dockerfile 0.1%Language:Makefile 0.0%