GitHub 火線榜

GitHub 火線榜 · 倉庫檔案

FuelLabs/fuels-ts

Fuel Network Typescript SDK (簡介來自倉庫自身文件。)

資料截至 October 27FuelLabs

最好成績

#113

總榜 · TypeScript 语言

43K

累計 Star

1.4K

Fork 總數

0

近 30 天在榜天數

專案狀態授權條款: Apache-2.0最近 push: October 20Open Issues(含 PR): 80

自 2026-10-25 起採集;未知 = 尚未採集到

把上榜徽章放進你的 README · FuelLabs/fuels-ts[![把上榜徽章放進你的 README](https://git.vaiox.xyz/api/badge/FuelLabs/fuels-ts.svg)](https://git.vaiox.xyz/zh-TW/repo/FuelLabs/fuels-ts)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/zh-TW/repo/FuelLabs/fuels-ts"><img src="https://git.vaiox.xyz/api/badge/FuelLabs/fuels-ts.svg" alt="把上榜徽章放進你的 README" height="20"></a>

專案文件

fuels-ts

Typescript SDK for Fuel.

test docs npm discord

Install (docs)

npm install fuels --save

Connect (docs)

Network URL
Mainnet https://mainnet.fuel.network/v1/graphql
Testnet https://testnet.fuel.network/v1/graphql
Localhost Running a local Fuel node
import { Provider } from 'fuels';

const NETWORK_URL = 'https://mainnet.fuel.network/v1/graphql';

const provider = new Provider(NETWORK_URL);

const chainId = await provider.getChainId();
const gasConfig = await provider.getGasConfig();
const baseAssetId = await provider.getBaseAssetId();

console.log({ chainId, gasConfig, baseAssetId });

Create a new dApp (docs)

$ npm create fuels

◇ What is the name of your project? #
│ my-fuel-project
└

⚡️ Success! Created a fullstack Fuel dapp at: my-fuel-project.

Enjoy the fuels CLI (docs)

$ npm install fuels --save
$ npm fuels --help

Commands:
  init [options]      Create a sample `fuel.config.ts` file
  build [options]     Build Sway programs and generate Typescript for them
  deploy [options]    Deploy contracts to the Fuel network
  dev [options]       Start a Fuel node with hot-reload capabilities
  node [options]      Start a Fuel node using project configs
  typegen [options]   Generate Typescript from Sway ABI JSON files
  versions [options]  Check for version incompatibilities
  help [command]      Display help for command

In-depth docs:

  • fuels init — Creates a new fuels.config.ts file
  • fuels build — Build forc workspace and generate Typescript types for everything
  • fuels deploy — Deploy workspace contracts and save their IDs to JSON file
  • fuels dev — Start a Fuel node with hot-reload capabilities

Official Docs



Apps & Ecosystem

Get in Touch

Contribute

License

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

當前上榜

近 30 天勢頭

近 30 天沒有上榜紀錄。

同一作者的其它上榜專案

同類專案 · 共享主題

← 回到榜單

GitHub 火線榜往日榜Discover