No project description provided
Project description
This library serves as a way to interact with Pulsar's Third Party APIs. Provided you have an API Key, getting started is very easy.
E.g. on how to fetch balances from a wallet:
import asyncio
from pulsar_sdk_py import PulsarSDK
from pulsar_sdk_py.enums import ChainKeys
API_KEY = "API_KEY_HERE"
sdk = PulsarSDK(API_KEY)
async def fetch_balances(wallet_address: str, chain: ChainKeys):
responses_list = []
async for wallet_balance in sdk.balances.get_wallet_balances(
wallet_addr=wallet_address,
chain=chain
):
responses_list.append(wallet_balance)
return responses_list
res = asyncio.get_event_loop().run_until_complete(
fetch_balances("0x77984dc88aab3d9c843256d7aabdc82540c94f69", ChainKeys.ETHEREUM)
)
print(res)
Which will fetch you all the wallet balances for your wallet, provided the Chain is active in our environment.
For more information, check out our documentation.
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
pulsar_sdk_py-1.0.5.tar.gz
(17.1 kB
view details)
Built Distribution
File details
Details for the file pulsar_sdk_py-1.0.5.tar.gz
.
File metadata
- Download URL: pulsar_sdk_py-1.0.5.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.13.2 Darwin/24.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f373ca14410aaff80eea27457da68c34c83357d20460efedfc5728757f55628e
|
|
MD5 |
6f0a070cf7b267aace60f5fa6681f2cc
|
|
BLAKE2b-256 |
4f2f7568d814b73d6859b3d0d7ea611437594a0d57a47f74123ca167621549c5
|
File details
Details for the file pulsar_sdk_py-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: pulsar_sdk_py-1.0.5-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.13.2 Darwin/24.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9e532c1cf0950a643fc5f69f56c6dd1647ec31fb5388af892f247d84dfaac6c5
|
|
MD5 |
eeb6c0db1da6eeaa7a375d46a30510e5
|
|
BLAKE2b-256 |
2b01295c5e21f8888594b768efcd3e73dd6788018cb7dc41c6f2ded30a0b8921
|