Fury Docs
GithubAnnouncements
  • Introduction
  • Raze.bot
    • Solana UI
  • FURY API
    • Getting Started
  • Overview & Protocols
  • Token Management
  • Wallet Operations
  • Bundler e Cleaner
  • PnL calculator
  • Generate public key mint
  • FURY SDK
    • SDK for Python
    • SDK for Rust
    • SDK for TypeScript
Powered by GitBook
LogoLogo

Untitled

  • Website
On this page
  • Features
  • Installation
  • Quick Start
  • Usage Examples
  • Error Handling
  • Contributing
  • License
  1. FURY SDK

SDK for Rust

The FURY SDK for Rust is a client library designed to interact seamlessly with the FURY API service, offering a comprehensive toolkit for Solana token operations.​


Features

  • Complete API Coverage: Access all FURY API endpoints.

  • Type Safety: Leverage Rust's strong type system.

  • Asynchronous Support: Built on Tokio for efficient async operations.

  • Robust Error Handling: Utilizes the anyhow crate for comprehensive error management.

  • Built-in Validation: Ensures parameter correctness.

  • Solana Integration: Native support for Solana transactions and signatures.

Installation

Prerequisites

  • Rust 1.70 or higher

  • Cargo package manager

Adding to Your Project

Include the following in your Cargo.toml:

[dependencies]
fury-sdk = "0.1.0"

Quick Start

Here's a basic example to get you started:

use anyhow::Result;
use fury_sdk::sdk::FurySDK;

#[tokio::main]
async fn main() -> Result<()> {
    let http_client = reqwest::Client::new();
    let client = FurySDK::new(http_client);

    // Generate a new mint key
    let mint_key = client.generate_mint().await?;
    println!("Generated mint key: {}", mint_key);

    Ok(())
}

Usage Examples

The SDK provides various methods to interact with the FURY API. Here are some examples:

Generate a New Mint

let mint_key = client.generate_mint().await?;

Create a Token

let token = client.create_token("TokenName", "TKN", 9).await?;

Transfer Tokens

let result = client.transfer_tokens(&from_keypair, &to_pubkey, amount).await?;

Error Handling

All SDK methods return a Result<T, anyhow::Error>, allowing you to handle errors gracefully using Rust's ? operator or custom error handling logic.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the MIT License.


PreviousSDK for PythonNextSDK for TypeScript

Last updated 1 month ago

For more detailed information and advanced usage, please refer to the .

GitHub repository