Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zondax/beryx

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zondax/beryx

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.

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-96.24%
Maintainers
3
Weekly downloads
 
Created
Source

Beryx Client

License npm version GithubActions

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
npm add --save @zondax/beryx

Instantiate new client

The only requirement the client needs is the token.

import Beryx from '@zondax/beryx'

const jwt = process.env.JWT_TOKEN

const client = new Beryx.Filecoin({ jwt })

Notes

  • To access the API, FilecoinAPI was deprecated and replaced by just Filecoin. It will be removed in future releases.

Support to multiple networks

It is possible to choose between multiple networks to interact with. In order to do it, you just need to pass the desired one on te client configuration.

import Beryx from '@zondax/beryx'

const jwt = process.env.JWT_TOKEN

const client = new Beryx.Filecoin({ jwt, network: 'wallaby' })

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 response1 = await client.data.getTipset(1)
const response2 = await client.tools.convertHash('bafy2bzacecktivolqszdw4m6p2l4xd46bypkaqfcuw354vo5emoplwupvhsl6', 'fil')

Documentation

Visit our documentation website to know more about other exciting projects. :link: Let's go to the website

Keywords

FAQs

Package last updated on 06 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc