nagohiro / 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

Resources

The documentation site is your main stop for resources.

Install

npm install fuels --save

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.

$ npm add fuels
$ npx fuels --help
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

The Fuel Ecosystem

Learn more about the Fuel Ecosystem.

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 93.4%Language:Sway 3.8%Language:JavaScript 1.0%Language:CSS 0.8%Language:Handlebars 0.5%Language:Shell 0.2%Language:HTML 0.2%Language:Vue 0.1%