Coder Social home page Coder Social logo

ariesjia / fuels-ts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fuellabs/fuels-ts

0.0 0.0 0.0 14.25 MB

Fuel Network Typescript SDK

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

License: Apache License 2.0

Shell 0.17% JavaScript 1.10% TypeScript 97.59% CSS 0.53% HTML 0.10% Handlebars 0.41% Vue 0.04% Sway 0.06%

fuels-ts's Introduction

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

The Fuel Ecosystem

Learn more about the Fuel Ecosystem.

License

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

fuels-ts's People

Contributors

arboleya avatar torres-ssf avatar luizstacio avatar github-actions[bot] avatar alicanc avatar danielbate avatar dhaiwat10 avatar quinnlee avatar luizasfight avatar nedsalk avatar pedronauck avatar pixelcircuits avatar fuel-service-user avatar sarahschwartz avatar petertonysmith94 avatar mohammadfawaz avatar adlerjohn avatar camiinthisthang avatar vuittont60 avatar shuoer86 avatar red-haze-dev avatar alphak3y avatar tibi77 avatar sdankel avatar cold-briu avatar richardgreg avatar yirenlu92 avatar protocolwhisper avatar dabit3 avatar matt-user avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.