OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Bonfida Utils

Bonfida Utils is a Rust utilities library and command-line toolkit for Solana program development. The repository includes account-checking functions, FP32 and FP64 math helpers, account and Borsh-size traits, plus commands for generating TypeScript or Python bindings, a smart-contract template and documented instruction files.

Independent OpenViST project profile, based on linked sources.

Bonfida Utils — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use the library when developing Rust-based Solana programs that need its documented checks, math helpers or traits. Use the CLI’s generation commands when the target contract follows the repository’s required structure and derives the necessary traits.

Who it is for

  • Rust developers building Solana programs.
  • Teams generating bindings or project artifacts for smart contracts that follow Bonfida’s documented conventions.

Documented uses

  • Check account keys, owners and signer status in program code.
  • Use FP32 or FP64 math helper functions.
  • Describe instruction accounts, including writable, signer and optional account constraints.
  • Calculate Borsh-serialized instruction-data sizes with the BorshSize trait.
  • Generate TypeScript or Python contract bindings, a smart-contract template, or a documented instruction.rs file through the CLI.
Before you choose

Requirements & limits

The repository README says the crate is published on crates.io and documents installation through Cargo. It also provides instructions to install the CLI from the repository.

  • The library is Rust-focused and intended for Solana program projects.
  • Autobindings require a particular project structure and derived traits.
  • Some BorshSize implementations, including certain enums with data-bearing variants, may need to be written manually.
  • The repository names Serum DEX v4 and Serum Core as projects using the utilities.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install the Bonfida CLI and inspect autobindings options

Install the CLI from the repository and display the autobindings command help.

Before you start

  • A Rust Cargo environment.
  • A project directory for the autobindings help command.

Steps

  1. Clone the bonfida-utils repository.

  2. Change into the repository directory and run the command below.

    Documented command
    cargo install --path crates/cli
  3. Change to the target project directory and run bonfida autobindings --help.

Expected outcome

The CLI is installed from the repository and its autobindings help is requested from the target project directory.

Guide limitations

  • The README says instruction binding generation requires a specific project structure and derived traits; the help command alone does not generate bindings.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
17 October 2026
Original website title
Bonfida/bonfida-utils · Official homepage title · retained in its source language