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 Walletconsole.log(Wallet.generate());
// Using privateKey Walletconsole.log(newWallet("0x0000...0000"));
CLI
Fuels include some utility commands via built-in CLI tool.
$ 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.
π΄ Sway β The new language, empowering everyone to build reliable and efficient smart contracts
π§° Forc β The Fuel toolbox: Build, deploy and manage your sway projects
βοΈ Fuel Core β The new FuelVM, a blazingly fast blockchain VM
The npm package fuels receives a total of 2,392 weekly downloads. As such, fuels popularity was classified as popular.
We found that fuels demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 0 open source maintainers collaborating on the project.
Package last updated on 14 Oct 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
By Kush Pandya, Philipp Burckhardt, Kirill Boychenko, Orlando BarreraΒ - Β Oct 31, 2024