JSPM

@chainsafe/lodestar-api

0.29.4-dev.42+a53a304b1fe
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 144
  • Score
    100M100P100Q105887F
  • License Apache-2.0

A Typescript implementation of the eth2 light client

Package Exports

  • @chainsafe/lodestar-api
  • @chainsafe/lodestar-api/server

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chainsafe/lodestar-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Lodestar ETH2.0 API

Discord ETH2.0_Spec_Version 1.0.0 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/default";

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

api.beacon.getStateValidator(
  "head",
  "0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f7329267a8811c397529dac52ae1342ba58c95"
).then((res) => console.log("Your balance is:", res.data.balance));

Prerequisites

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