Skip to content

Commit 48aa14e

Browse files
committed
add shell command
1 parent 9eaa8b2 commit 48aa14e

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

Diff for: .env.default

+8-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ VERBOSE=3
88
# LOG_ROTATION=DAILY
99

1010
# beacon chain endpoint url
11+
# easily apply for a Beacon Chain endpoint on the quicknode.com platform.
1112
BEACON_ENDPOINT=http://localhost:3500
1213

1314
# beacon client request timeout
@@ -17,6 +18,7 @@ BEACON_ENDPOINT=http://localhost:3500
1718
#POLL_INTERVAL=6
1819

1920
# blob archiver api server listening address
21+
# blob sidecars data is obtained from this endpoint.
2022
LISTEN_ADDR=0.0.0.0:8000
2123

2224
# blob archiver origin block number
@@ -34,14 +36,17 @@ AWS_SECRET_ACCESS_KEY=password
3436
# s3 storage region just use default value: us-east-1
3537
AWS_REGION=us-east-1
3638

39+
#S3_CLIENT
40+
S3_CLIENT=minio
41+
3742
# s3 storage endpoint
38-
S3_ENDPOINT=http://localhost:9000
43+
S3_ENDPOINT=http://${S3_CLIENT}:9000
3944

4045
# s3 storage bucket
41-
S3_BUCKET=
46+
S3_BUCKET=blobs
4247

4348
# s3 storage path
44-
S3_PATH=
49+
S3_PATH=/
4550

4651
# s3 storage compress
4752
S3_COMPRESS=true

Diff for: README.md

+14
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ to your beacon client and storage backend of choice. Then you can run the projec
4141
docker compose up
4242
```
4343

44+
#### Get blobs
45+
After successfully starting the service, you can use the following command to obtain the blob:
46+
47+
- get blob by block id from api service:
48+
```shell
49+
# also there is support other type of block id, like: finalized,justified.
50+
curl -X 'GET' 'http://localhost:8000/eth/v1/beacon/blob_sidecars/head' -H 'accept: application/json'
51+
```
52+
53+
- get blob by slot number from api service:
54+
```shell
55+
curl -X 'GET' 'http://localhost:8000/eth/v1/beacon/blob_sidecars/7111008' -H 'accept: application/json'
56+
```
57+
4458
## Options
4559

4660
### `verbose`

0 commit comments

Comments
 (0)