TypeScript SDK to interact with the Celestia Node.
I decided to work on this project because it was suggested during the Celestia hackathon brainstorming session. In any case, I found it useful for another project I'm working on which is balance tracker for Celestia. Even though finishing that project on time seems unlikely, at least this library is ready to use.
Another reason is that I wanted to try publishing something on NPM to see how it works.
Use following command to use library in your project:
npm install https://github.com/ashishbhintade/cntsc.git
To use this library, you'll first need to initiate your own Celestia node and generate an authentication token. You need node url and the auth token to instantiate the Client. Here is the guide on how to run the Celestia light node.
import { Client } from "cntsc";
let client: Client = new Client("YOUR_NODE_URL", "AUTH_TOKEN");
await client.Blob.GetAll(42, ["AAAAAAAAAAAAAAAAAAAAAAAAAAECAwQFBgcICRA="]);
- Blob
- DAS
- Fraud
- Header
- Node
- P2P
- Share
- State
Right now, all endpoints are tested manually. However, I want write tests, create more examples for each endpoint along with better explanation and complete the implementation of the remaining types, which are currently substituted with "any".