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

@chainsafe/lodestar-api

Package Overview
Dependencies
Maintainers
2
Versions
819
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/lodestar-api

A Typescript implementation of the eth2 light client

  • 0.23.1-next.70635e27247e208e062127754fcd87d7ea813693.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

Lodestar ETH2.0 API

Discord ETH2.0_Spec_Version 0.12.1 ES Version Node Version

This package is part of ChainSafe's Lodestar project

Typescript REST client for the Eth2.0 API spec

Usage

import {getClient} from "@chainsafe/lodestar-api";
import {config} from "@chainsafe/lodestar-config/mainnet";

const api = getClient(config, {
  baseUrl: "http://localhost:9596",
});

const res = await api.state.getStateValidator(
  "head",
  "0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f7329267a8811c397529dac52ae1342ba58c95"
);

console.log("Your balance is:", res.data.balance);

Prerequisites

  • Lerna
  • Yarn

What you need

You will need to go over the specification. You will also need to have a basic understanding of sharding.

Getting started

Contributors

Read our contributors document, submit an issue or talk to us on our discord!

License

Apache-2.0 ChainSafe Systems

Keywords

FAQs

Package last updated on 08 Jun 2021

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