Search packages, repositories and app categories

Package detailsv1.39.0

fuels

Dart FFI bridge to Fuel Rust SDK

AndroidiOSmacOSWindowsLinux
30-day downloads
161
Likes
2
Pub points
120

Install package

flutter pub add fuels

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Fuels is a Dart FFI bridge that enables Flutter applications to interact with the Fuel Rust SDK, facilitating seamless integration with the Fuel blockchain. It allows developers to build decentralized applications (dApps) on Fuel by leveraging Dart's capabilities within cross-platform environments. The package supports major platforms including Android, iOS, macOS, Windows, and Linux, making it ideal for full-stack blockchain development. With direct access to Fuel’s low-level functionalities, Fuels empowers developers to execute transactions, manage assets, and deploy smart contracts efficiently.

Use cases

  • Building cross-platform dApps on Fuel
  • Integrating Fuel blockchain features into Flutter apps
  • Executing smart contract interactions
  • Managing digital assets in Flutter apps
  • Developing blockchain-powered mobile applications

Key features

  • Dart FFI integration with Fuel Rust SDK
  • Cross-platform support (Android, iOS, macOS, Windows, Linux)
  • Direct access to Fuel blockchain operations
  • Efficient performance via native bindings
  • Seamless Flutter compatibility

Suitable for

  • Flutter developers targeting Fuel blockchain
  • Web3 application creators
  • Blockchain engineers building mobile dApps
  • Teams requiring high-performance blockchain integration
  • Projects needing multi-platform blockchain support

Considerations

  • Requires familiarity with Fuel blockchain concepts
  • May need additional setup for native dependencies
  • Limited to Fuel ecosystem functionality
  • Potential complexity in debugging FFI calls
  • Dependent on stable Fuel SDK releases

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

fuels-dart

Dart & Flutter SDK for Fuel Blockchain. Essentially, it's a wrapper over the official Rust SDK for mobile and official TypeScript SDK for web. It's implemented with the help of flutter_rust_bridge library.

For more information about SDK functionality and abilities, please check out fuels-rs SDK documentation.

The project tries to stick to the same interfaces as used in the Rust SDK wherever possible.

The project structure explanation can be found in the FRB documentation.

Documentation

Work on documentation for Dart/Flutter SDK is in progress.

Implemented features

  • [x] Create wallet
  • [x] Get account balances
  • [x] Transfer tokens
  • [ ] Sign transactions

Contributing

packages/fuels/native folder contains Rust files. api.rs is the main entrypoint of the Rust methods accessed from Dart.

After changing any of the Rust files, you need to regenerate the wrapper. Just call:

melos run frb-gen

All commits in the main branch must follow the Conventional Commits format.

Releasing

To upgrade the library version before releasing, do:

melos version

Then push the generated commit with tags:

git push --follow-tags

Ths will start Github actions tasks for creating and publishing a release on Github.

In order to publish a package to https://pub.dev/, you need to wait for the CI/CD tasks from the previous step to complete. Then call the following command from the corresponding package:

cd packages/[needed package]
flutter pub publish

Categories

Dependencies

Dependency list 6 items

Source repository

Projects using this package

No data available yet.