pulsar_sdk_js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

alt text

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 { 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.

Package Sidebar

Install

npm i pulsar_sdk_js

Weekly Downloads

123

Version

1.0.1

License

none

Unpacked Size

133 kB

Total Files

52

Last publish

Collaborators

  • pulsarfinance