Python SDK for interacting with the Official Helius APIs - https://docs.helius.xyz/api-reference/.
pip install helius
-
Clone the repository:
git clone https://github.com/vmpyre/helius_sdk.git
-
Change into the project directory:
cd helius_sdk
-
Install the dependencies:
pip install -r requirements.txt
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:
See the Official Helius documentation for additional information: https://docs.helius.xyz/api-reference/
Feel free to open issues, pull requests and submit feedback. We appreciate your help!
This project is licensed under the MIT License - see the LICENSE file for details.
Thanks to the Helius team for providing an amazing product.
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.