SDK for Python

The FURY SDK for Python 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 Hints: Full Python type annotations for better IDE support.

  • Helper Models: Data classes for simpler request construction.

  • Error Handling: Custom exceptions with detailed error information.

  • Validation: Built-in parameter validation.​

Installation

Requirements

  • Python 3.7+

  • requests library for HTTP requests

  • solana and base58 for transaction signing (optional, only needed if signing transactions)​

Install Dependencies

bashCopiaModificapip install requests
pip install solana base58  # Only needed for transaction signing

Install FURY SDK

bashCopiaModifica# From PyPI (when published)
pip install fury-sdk

# From source
git clone https://github.com/furydotbot/python-sdk.git
cd python-sdk
pip install -e .

Quick Start

pythonCopiaModificafrom fury import FurySDK

# Initialize the SDK
fury = FurySDK("https://solana.fury.bot")

# Generate a new mint key
mint_key = fury.generate_mint()
print(f"Generated mint key: {mint_key}")

Usage Examples

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

Generate a New Mint

pythonCopiaModificamint_key = fury.generate_mint()

Create a Token

pythonCopiaModificatoken = fury.create_token("TokenName", "TKN", 9)

Transfer Tokens

pythonCopiaModificaresult = fury.transfer_tokens(from_keypair, to_pubkey, amount)

Error Handling

All SDK methods raise custom exceptions with detailed error information, allowing you to handle errors gracefully using try-except blocks.​

Contributing

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

License

This project is licensed under the MIT License.

Last updated