Python SDK for interacting with the Official Helius APIs - https://docs.helius.xyz/api-reference/
Project description
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
-
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file helius-0.0.3.tar.gz.
File metadata
- Download URL: helius-0.0.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f1f82e28dcc21b5e93d5a137e8e1d11004ebc8cbd2c63169f55e422a9a35640
|
|
| MD5 |
413d501dcf3cd023c4b9b0b0d95b97a6
|
|
| BLAKE2b-256 |
fe5c48ccd7418e4911f0bec86c3f493f30e76fe7a9f58ada1ccc09a12c6ca15f
|
File details
Details for the file helius-0.0.3-py3-none-any.whl.
File metadata
- Download URL: helius-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4335571848091c40cc75f4d0e8487a6ffdf2ba5757a5b3ee254374f7aa0a4eac
|
|
| MD5 |
1516f6540cfd4a32f85c8df3002e0361
|
|
| BLAKE2b-256 |
4a4a6d921b9784a109a1cfefd7a74da3f69c434654abaafe6deb73f211b68468
|