File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff 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.
1112BEACON_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.
2022LISTEN_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
3537AWS_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
4752S3_COMPRESS=true
Original file line number Diff line number Diff line change @@ -41,6 +41,20 @@ to your beacon client and storage backend of choice. Then you can run the projec
4141docker 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 `
You can’t perform that action at this time.
0 commit comments