
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@lodestar/api
Advanced tools
This package is part of ChainSafe's Lodestar project
Typescript REST client for the Ethereum Consensus API
The REST client extends the native Fetch API, it behaves very similar in terms of error and response handling. It returns the same Response object with additional methods to simplify usage and it allows to override all Request options if needed.
import {getClient} from "@lodestar/api";
import {config} from "@lodestar/config/default";
const api = getClient({baseUrl: "http://localhost:9596"}, {config});
const res = await api.beacon.getStateValidator({stateId: "head", validatorId: 0});
const validator = res.value();
console.log("The validator balance is: ", validator.balance);
You will need to go over the specification.
Read our contributors document, submit an issue or talk to us on our discord!
Apache-2.0 ChainSafe Systems
FAQs
A Typescript REST client for the Ethereum Consensus API
The npm package @lodestar/api receives a total of 0 weekly downloads. As such, @lodestar/api popularity was classified as not popular.
We found that @lodestar/api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.