Skip to content

ethstorage/beacon-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

beacon-api-wrapper

A Beacon API wrapper for archiver tests that mocks a short blob retention window.

Start

 go run cmd/main.go 

Options

  -b string
        beacon endpoint (default "http://88.99.30.186:3500")
  -p int
        listening port (default 3600)
  -r uint
        blob retention period in epochs (default 3)

How it works

The following requests will be redirected to the beacon API:

/eth/v1/config/spec
/eth/v1/node/version
/eth/v1/beacon/genesis

The blob_sidecars request will be redirected to the beacon API if the blobs are within the retention period, otherwise return an empty list: {"data":[]}

/eth/v1/beacon/blob_sidecars/{block_id}

About

A beacon API wrapper for archiver tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages