Skip to content

vmpyre/helius_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helius APIs Python SDK

Python SDK for interacting with the Official Helius APIs - https://docs.helius.xyz/api-reference/.

Installation

Installing Using PIP (Recommended)

pip install helius

Installing from Source

  1. Clone the repository: git clone https://github.com/vmpyre/helius_sdk.git

  2. Change into the project directory: cd helius_sdk

  3. Install the dependencies: pip install -r requirements.txt

Usage

First, import the SDK's classes for the APIs you'd like to use.

>> from helius import NFTAPI, NameAPI, BalancesAPI, WebhooksAPI, TransactionsAPI

Then, create instances of the classes to interact with the corresponding API endpoints (in this case the BalancesAPI class):

>> balances_api = BalancesAPI("<API_KEY_HERE>")

Generate your API Key from here: https://docs.helius.xyz/introduction/generate-an-api-key

For example, you can use the get_balances() method of the BalancesAPI class to retrieve native Solana balance (in lamports) and all token balances for a given address:

>> balances_api.get_balances("<SOLANA_WALLET_ADDRESS_HERE>")

The SDK provides functionality for interacting with the NFTAPI, NameAPI, BalancesAPI, TransactionsAPI and WebhooksAPI endpoints. You can view the class methods below:

Documentation

WebhooksAPI

NFTAPI

TransactionsAPI

BalancesAPI

NameAPI

See the Official Helius documentation for additional information: https://docs.helius.xyz/api-reference/

Contribution

Feel free to open issues, pull requests and submit feedback. We appreciate your help!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Thanks to the Helius team for providing an amazing product.

Disclaimer

The developer of this SDK is not part of Helius team and this SDK was submitted for the LamportDAO Hackathon. The developer is not responsible for any errors or issues that may occur when using this SDK. Use at your own risk and feel free to report issues.

About

Python SDK for Helius Solana APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages