MyGit

FuelLabs/fuels-ts

Fork: 1360 Star: 44036 (更新于 2024-12-14 02:36:56)

license: Apache-2.0

Language: TypeScript .

Fuel Network Typescript SDK

最后发布版本: v0.94.8 ( 2024-09-27 23:46:29)

官方网址 GitHub网址

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.

最近版本更新:(数据更新于 2024-10-05 10:21:52)

2024-09-27 23:46:29 v0.94.8

2024-09-27 17:23:25 v0.94.7

2024-09-13 23:18:49 v0.94.6

2024-09-07 06:41:48 v0.94.5

2024-09-05 01:30:18 v0.94.4

2024-08-31 03:21:39 v0.94.3

2024-08-29 03:25:02 v0.94.2

2024-08-22 22:03:31 v0.94.1

2024-08-20 08:38:13 v0.94.0

2024-07-30 22:20:38 v0.93.0

主题(topics):

fuel, typescript

FuelLabs/fuels-ts同语言 TypeScript最近更新仓库

2024-12-21 21:40:12 lobehub/lobe-chat

2024-12-21 12:01:51 siyuan-note/siyuan

2024-12-21 10:57:01 ai16z/eliza

2024-12-21 09:15:35 MetaCubeX/metacubexd

2024-12-20 19:36:48 vitejs/vite

2024-12-20 15:46:43 x-extends/vxe-table