Beryx Client
![GithubActions](https://github.com/Zondax/beryx-client-ts/actions/workflows/main.yaml/badge.svg)
Abstract
Beryx indexes and exposes via a public API Filecoin historical and real-time data. We provide historical transactions of every account, interactions with multisig accounts, fees details and many more.
How to use it
Get a valid token
Please, go through our auth flow to get a valid token. It will be required to consume the API. :link: Let's go to the auth flow
Add it to your project
Add the package to your project with these commands, depending on the package manager you prefer
yarn add @zondax/beryx-client
npm add --save @zondax/beryx-client
Instantiate new client
The only requirement the client needs is the token.
const jwt = process.env.JWT_TOKEN;
const client = new Beryx.FilecoinAPI({ jwt });
Use the client
These are just some examples on what you can do, and how you can do it. Please, check the typescript interface to find the whole set of methods.
const response = await client.getTipset(1);
Documentation
Visit our documentation website to know more about other exciting projects. :link: Let's go to the website