All Projects → ethereum → beacon-APIs

ethereum / beacon-APIs

Licence: CC0-1.0 license
Collection of RESTful APIs provided by Ethereum Beacon nodes

Programming Languages

HTML
75241 projects

Projects that are alternatives of or similar to beacon-APIs

openapi
OpenAPI 3 Specification for golang
Stars: ✭ 18 (-91.39%)
Mutual labels:  specification, openapi3
Openapi Spec Validator
OpenAPI Spec validator
Stars: ✭ 161 (-22.97%)
Mutual labels:  specification, openapi3
specifications-ITS-REST
openEHR REST API Specifications
Stars: ✭ 20 (-90.43%)
Mutual labels:  specification, openapi3
spring-boot-jwt-auth
🔑 Sample Spring boot application secured using JWT auth in custom header(X-Auth-Token).
Stars: ✭ 57 (-72.73%)
Mutual labels:  openapi3
openapi-viewer
Browse and test a REST API described with the OpenAPI 3.0 Specification
Stars: ✭ 85 (-59.33%)
Mutual labels:  openapi3
openapi-eller
Generate OpenAPI v3 clients and servers from the command line
Stars: ✭ 19 (-90.91%)
Mutual labels:  openapi3
sails-hook-swagger-generator
A tool to help generate Swagger specification documentation based on OAS 3.0 for Sails APIs
Stars: ✭ 71 (-66.03%)
Mutual labels:  openapi3
specifications
Track specification elaboration.
Stars: ✭ 17 (-91.87%)
Mutual labels:  specification
ogen
OpenAPI v3 code generator for go
Stars: ✭ 436 (+108.61%)
Mutual labels:  openapi3
BrAPI
Repository for version control of the BrAPI specifications
Stars: ✭ 50 (-76.08%)
Mutual labels:  specification
amala
Lightweight, Typescript REST library powered by Koa 2+. Use classes and decorators to define your API. Inject arguments from ctx. Supports API versioning. Future support for OpenAPI3. Works with koa-router.
Stars: ✭ 41 (-80.38%)
Mutual labels:  openapi3
pactum
Create API specifications and documentation using Python
Stars: ✭ 24 (-88.52%)
Mutual labels:  specification
spec
[OLD!] RGB Protocol specifications for Bitcoin-based digital assets
Stars: ✭ 149 (-28.71%)
Mutual labels:  specification
Specs-on-Spec
A collection of language specifications which don't belong anywhere else
Stars: ✭ 13 (-93.78%)
Mutual labels:  specification
typeconv
Convert between JSON Schema, TypeScript, GraphQL, Open API and SureType
Stars: ✭ 229 (+9.57%)
Mutual labels:  openapi3
aio-openapi
A python module for building OpenAPI compliant asynchronous Rest Servers. Auto documentation, serialization and validation in the same unified API.
Stars: ✭ 27 (-87.08%)
Mutual labels:  openapi3
ortac
Runtime assertion checking based on Gospel specifications
Stars: ✭ 16 (-92.34%)
Mutual labels:  specification
intellij-openapi-generator
Intellij Plugin for openapi-generator
Stars: ✭ 73 (-65.07%)
Mutual labels:  openapi3
openapi-filter
Filter internal paths, operations, parameters, schemas etc from OpenAPI/Swagger/AsyncAPI definitions
Stars: ✭ 112 (-46.41%)
Mutual labels:  openapi3
openapi4j
OpenAPI 3 parser, JSON schema and request validator.
Stars: ✭ 92 (-55.98%)
Mutual labels:  openapi3

Ethereum Beacon APIs

CI

Collection of RESTful APIs provided by Ethereum Beacon nodes

API browser: https://ethereum.github.io/beacon-APIs/

Outline

This document outlines an application programming interface (API) which is exposed by a beacon node implementation which aims to facilitate Phase 0 of the Etheruem consensus layer.

The API is a REST interface, accessed via HTTP. The API should not, unless protected by additional security layers, be exposed to the public Internet as the API includes multiple endpoints which could open your node to denial-of-service (DoS) attacks through endpoints triggering heavy processing. Currently, the only supported return data type is JSON.

The beacon node (BN) maintains the state of the beacon chain by communicating with other beacon nodes in the Ethereum network. Conceptually, it does not maintain keypairs that participate with the beacon chain.

The validator client (VC) is a conceptually separate entity which utilizes private keys to perform validator related tasks, called "duties", on the beacon chain. These duties include the production of beacon blocks and signing of attestations.

The goal of this specification is to promote interoperability between various beacon node implementations.

Render

To render spec in browser you will need any http server to load index.html file in root of the repo.

Python
python -m http.server 8080

And api spec will render on http://localhost:8080.

NodeJs
npm install simplehttpserver -g

# OR

yarn global add simplehttpserver

simplehttpserver

And api spec will render on http://localhost:8000.

Usage

Local changes will be observable if "dev" is selected in the "Select a definition" drop-down in the web UI.

Users may need to tick the "Disable Cache" box in their browser's developer tools to see changes after modifying the source.

Contributing

Api spec is checked for lint errors before merge.

To run lint locally, install linter with

npm install -g @redocly/cli

# OR

yarn global add @redocly/cli

and run lint with

redocly lint beacon-node-oapi.yaml 

Implementations

https://www.npmjs.com/package/@chainsafe/eth2.0-api-wrapper

Releasing

  1. Create and push tag

    • Make sure info.version in beacon-node-oapi.yaml file is updated before tagging.
    • CD will create github release and upload bundled spec file
  2. Add release entrypoint in index.html

In SwaggerUIBundle configuration (inside index.html file), add another entry in "urls" field (SwaggerUI will load first item as default). Entry should be in following format(replace <tag> with real tag name from step 1.):

         {url: "https://github.com/ethereum/beacon-APIs/releases/download/<tag>/beacon-node-oapi.yaml", name: "<tag>"},
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].