{"id":13494543,"url":"https://github.com/FuelLabs/fuels-ts","last_synced_at":"2025-03-28T14:31:23.007Z","repository":{"id":37019305,"uuid":"402860175","full_name":"FuelLabs/fuels-ts","owner":"FuelLabs","description":"Fuel Network Typescript SDK","archived":false,"fork":false,"pushed_at":"2024-10-29T09:59:08.000Z","size":46574,"stargazers_count":44092,"open_issues_count":146,"forks_count":1344,"subscribers_count":121,"default_branch":"master","last_synced_at":"2024-10-29T11:37:54.086Z","etag":null,"topics":["fuel","typescript"],"latest_commit_sha":null,"homepage":"https://docs.fuel.network/docs/fuels-ts/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FuelLabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-03T18:11:03.000Z","updated_at":"2024-10-29T06:57:33.000Z","dependencies_parsed_at":"2023-09-23T02:09:44.852Z","dependency_job_id":"5cb50843-0894-4b07-b4c7-d4804013be57","html_url":"https://github.com/FuelLabs/fuels-ts","commit_stats":null,"previous_names":[],"tags_count":188,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuels-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuels-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuels-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuels-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FuelLabs","download_url":"https://codeload.github.com/FuelLabs/fuels-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394751,"owners_count":20608125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fuel","typescript"],"created_at":"2024-07-31T19:01:25.906Z","updated_at":"2025-03-28T14:31:23.001Z","avatar_url":"https://github.com/FuelLabs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Libraries","区块链、智能合约"],"sub_categories":["网络服务_其他"],"readme":"# fuels-ts\n\nTypescript SDK for Fuel.\n\n[![test](https://github.com/FuelLabs/fuels-ts/actions/workflows/test.yaml/badge.svg)](https://github.com/FuelLabs/fuels-ts/actions/workflows/test.yaml)\n[![docs](https://img.shields.io/badge/docs-fuels.ts-brightgreen.svg?style=flat)](https://docs.fuel.network/docs/fuels-ts/)\n[![npm](https://img.shields.io/npm/v/fuels)](https://www.npmjs.com/package/fuels)\n[![discord](https://img.shields.io/badge/chat%20on-discord-orange?\u0026logo=discord\u0026logoColor=ffffff\u0026color=7389D8\u0026labelColor=6A7EC2)](https://discord.gg/xfpK4Pe)\n\n# Install ([docs](https://docs.fuel.network/docs/fuels-ts/getting-started/installation))\n\n```console\nnpm install fuels --save\n```\n\n# Connect ([docs](https://docs.fuel.network/docs/fuels-ts/getting-started/connecting-to-the-network/))\n\n| Network   | URL                                                                                                              |\n| --------- | --------------------------------------------------------------------------------------------------------------- |\n| Mainnet   | `https://mainnet.fuel.network/v1/graphql`                                                                       |\n| Testnet   | `https://testnet.fuel.network/v1/graphql`                                                                       |\n| Localhost | [Running a local Fuel node](https://docs.fuel.network/docs/fuels-ts/getting-started/running-a-local-fuel-node/) |\n\n```ts\nimport { Provider } from 'fuels';\n\nconst NETWORK_URL = 'https://mainnet.fuel.network/v1/graphql';\n\nconst provider = new Provider(NETWORK_URL);\n\nconst chainId = await provider.getChainId();\nconst gasConfig = await provider.getGasConfig();\nconst baseAssetId = await provider.getBaseAssetId();\n\nconsole.log({ chainId, gasConfig, baseAssetId });\n```\n\n# Create a new dApp ([docs](https://docs.fuel.network/docs/fuels-ts/creating-a-fuel-dapp/))\n\n```console\n$ npm create fuels\n\n◇ What is the name of your project? #\n│ my-fuel-project\n└\n\n⚡️ Success! Created a fullstack Fuel dapp at: my-fuel-project.\n```\n\n# Enjoy the `fuels` CLI ([docs](https://docs.fuel.network/docs/fuels-ts/fuels-cli/))\n\n```console\n$ npm install fuels --save\n$ npm fuels --help\n\nCommands:\n  init [options]      Create a sample `fuel.config.ts` file\n  build [options]     Build Sway programs and generate Typescript for them\n  deploy [options]    Deploy contracts to the Fuel network\n  dev [options]       Start a Fuel node with hot-reload capabilities\n  node [options]      Start a Fuel node using project configs\n  typegen [options]   Generate Typescript from Sway ABI JSON files\n  versions [options]  Check for version incompatibilities\n  help [command]      Display help for command\n```\n\nIn-depth docs:\n- [`fuels init`](https://docs.fuel.network/docs/fuels-ts/fuels-cli/commands#fuels-init) — Creates a new `fuels.config.ts` file\n- [`fuels build`](https://docs.fuel.network/docs/fuels-ts/fuels-cli/commands#fuels-build) — Build `forc` workspace and generate Typescript types for everything\n- [`fuels deploy`](https://docs.fuel.network/docs/fuels-ts/fuels-cli/commands#fuels-deploy) — Deploy workspace contracts and save their IDs to JSON file\n- [`fuels dev`](https://docs.fuel.network/docs/fuels-ts/fuels-cli/commands#fuels-dev) — Start a Fuel node with hot-reload capabilities\n\n\n# Official Docs\n\n- Install The Fuel Toolchain — https://docs.fuel.network/guides/installation/\n---\n- Typescript SDK — https://docs.fuel.network/docs/fuels-ts\n- Fuel Wallet SDK — https://docs.fuel.network/docs/wallet\n- Rust SDK — https://docs.fuel.network/docs/fuels-rs\n- GraphQL Playground — https://docs.fuel.network/docs/graphql\n---\n- Forc — https://docs.fuel.network/docs/forc\n- Sway — https://docs.fuel.network/docs/sway\n- Fuel Core — https://github.com/FuelLabs/fuel-core\n- Fuel VM — https://docs.fuel.network/docs/specs/fuel-vm\n- Fuel Specs — https://docs.fuel.network/docs/specs\n\n# Apps \u0026 Ecosystem\n\n- Fuel Bridge — https://app.fuel.network/bridge\n- Block Explorer — https://app.fuel.network\n- Ecosystem Apps — https://app.fuel.network/ecosystem\n\n# Get in Touch\n\n- `Forum` — https://forum.fuel.network\n- `Discord` — https://discord.gg/xfpK4Pe\n\n\n# Contribute\n\n- [./CONTRIBUTING.md](https://github.com/FuelLabs/fuels-ts/blob/master/CONTRIBUTING.md)\n\n\n# License\n\nThe primary license for this repo is `Apache 2.0`, see [`LICENSE`](https://github.com/FuelLabs/fuels-ts/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFuelLabs%2Ffuels-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFuelLabs%2Ffuels-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFuelLabs%2Ffuels-ts/lists"}