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 TypeScript

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


Features

  • Comprehensive API Coverage: Access all FURY API endpoints.

  • TypeScript Support: Leverage TypeScript's type safety and IntelliSense.

  • Transaction Generation: Create transactions for buying, selling, creating, transferring, burning, and cleaning SPL tokens.

  • Wallet Management: Manage wallets and retrieve analytics.

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

Installation

Prerequisites

  • Node.js 14 or higher

  • npm or yarn package manager

Adding to Your Project

Install the SDK using npm:

npm install fury-sdk

Or using yarn:

yarn add fury-sdk

Quick Start

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

import { FurySDK } from 'fury-sdk';

const fury = new FurySDK('https://solana.fury.bot');

// Generate a new mint key
const mintKey = await fury.generateMint();
console.log(`Generated mint key: ${mintKey}`);

Usage Examples

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

Generate a New Mint

const mintKey = await fury.generateMint();

Create a Token

const token = await fury.createToken('TokenName', 'TKN', 9);

Transfer Tokens

const result = await fury.transferTokens(fromKeypair, toPubkey, amount);

Error Handling

All SDK methods return Promises and may throw errors. Use try-catch blocks to handle exceptions gracefully.

try {
  const mintKey = await fury.generateMint();
} catch (error) {
  console.error('Error generating mint key:', error);
}

Contributing

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

License

This project is licensed under the MIT License.


PreviousSDK for Rust

Last updated 1 month ago

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

GitHub repository