tatumio / tatum-js

🚀 Tatum SDK: A 💪 powerful, 🌟 feature-rich TypeScript/JavaScript 📚 library that streamlines the 🛠️ development of 🌐 blockchain applications.
https://docs.tatum.io
MIT License
360 stars 110 forks source link

✨ [Feature] Add RPC Support for Stellar ✨ #1039

Closed Hathoriel closed 8 months ago

Hathoriel commented 8 months ago

:bookmark_tabs: Overview

We're thrilled to announce that the Tatum JS SDK now includes support for additional network: Stellar :tada:. Users can now make RPC calls to this network directly from the SDK.

:wrench: Changes

:computer: How to Use

To make RPC calls to this new network, you'll need to specify the network type when initializing your Tatum SDK instance. Here's an example based on your provided code:

import { TatumSDK, Network, Stellar } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Stellar>({ network: Network.STELLAR })

const result = await tatum.rpc.retrieveFeeStats()
console.log(result)

// Destroy Tatum SDK - needed for stopping background jobs
tatum.destroy()

:loudspeaker: Feedback

Your input is crucial as we continue to develop and refine this feature. If you encounter any issues or have suggestions for improvement, please leave a comment on this issue or open a new one. :speech_balloon: