pulsar_sdk_js
Version:
A convenient way for you to interact with Pulsar's Third Party APIs, using typified classes.
26 lines (17 loc) • 818 B
Markdown

<div id="top"></div>
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:
```javascript
import { ChainKeys, PulsarSDK } from 'pulsar_sdk_js'
const API_KEY = 'YOUR_API_KEY'
const ETHEREUM_TEST_WALLET = '0x77984dc88aab3d9c843256d7aabdc82540c94f69'
const sdk = new PulsarSDK(API_KEY)
const responsesList = []
for await (const response of sdk.balances.getWalletBalances(ETHEREUM_TEST_WALLET, ChainKeys.ETHEREUM)) {
responsesList.push(response)
}
```
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](http://pulsar.readme.io/).