We expect you to install the Fuel Toolchain before using this library. Follow this guide to get this installed.
The next step is to add the fuels
dependency to your project. You can do this using the following command:
pnpm add fuels@0.89.1
Note: Use version 0.89.1
to ensure compatibility with testnet
network—check the docs .
If you are using bun, you'll need to add a trustedDependencies
field to your package.json
:
{
// ...
"trustedDependencies": ["@fuel-ts/fuel-core", "@fuel-ts/forc"]
}
This is to ensure that bun includes the fuel-core
and forc
binaries in your project.
IMPORTANT: We don't officially support
bun
yet; use it at your own risk.