File tree 3 files changed +42
-3
lines changed
3 files changed +42
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ VERBOSE=3
8
8
# LOG_ROTATION=DAILY
9
9
10
10
# beacon chain endpoint url
11
+ # easily apply for a Beacon Chain endpoint on the quicknode.com platform.
11
12
BEACON_ENDPOINT=http://localhost:3500
12
13
13
14
# beacon client request timeout
@@ -17,6 +18,7 @@ BEACON_ENDPOINT=http://localhost:3500
17
18
#POLL_INTERVAL=6
18
19
19
20
# blob archiver api server listening address
21
+ # blob sidecars data is obtained from this endpoint.
20
22
LISTEN_ADDR=0.0.0.0:8000
21
23
22
24
# blob archiver origin block number
@@ -34,14 +36,17 @@ AWS_SECRET_ACCESS_KEY=password
34
36
# s3 storage region just use default value: us-east-1
35
37
AWS_REGION=us-east-1
36
38
39
+ #S3_CLIENT
40
+ S3_CLIENT=minio
41
+
37
42
# s3 storage endpoint
38
- S3_ENDPOINT=http://localhost :9000
43
+ S3_ENDPOINT=http://${S3_CLIENT} :9000
39
44
40
45
# s3 storage bucket
41
- S3_BUCKET=
46
+ S3_BUCKET=blobs
42
47
43
48
# s3 storage path
44
- S3_PATH=
49
+ S3_PATH=/
45
50
46
51
# s3 storage compress
47
52
S3_COMPRESS=true
Original file line number Diff line number Diff line change @@ -41,6 +41,27 @@ to your beacon client and storage backend of choice. Then you can run the projec
41
41
docker compose up
42
42
```
43
43
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
+
58
+ #### Storage Dashboard
59
+ MinIO has started the dashboard, allowing you to view the status of blob storage.
60
+ By default, you can access it directly at:
61
+ ``` http
62
+ http://localhost:9999
63
+ ```
64
+
44
65
## Options
45
66
46
67
### ` verbose `
Original file line number Diff line number Diff line change @@ -12,15 +12,27 @@ services:
12
12
depends_on :
13
13
- minio
14
14
- create-buckets
15
+ entrypoint : >
16
+ /bin/sh -c "
17
+ sleep 2;
18
+ api;
19
+ "
15
20
archiver :
16
21
build :
17
22
context : .
18
23
dockerfile : archiver.Dockerfile
19
24
env_file :
20
25
- .env
26
+ ports :
27
+ - " 8001:8000"
21
28
depends_on :
22
29
- minio
23
30
- create-buckets
31
+ entrypoint : >
32
+ /bin/sh -c "
33
+ sleep 2;
34
+ archiver;
35
+ "
24
36
minio :
25
37
restart : unless-stopped
26
38
image : minio/minio:latest
@@ -37,6 +49,7 @@ services:
37
49
- minio
38
50
entrypoint : >
39
51
/bin/sh -c "
52
+ sleep 1;
40
53
/usr/bin/mc alias set minio http://minio:9000 admin password;
41
54
/usr/bin/mc mb minio/blobs;
42
55
/usr/bin/mc anonymous set public minio/blobs;
You can’t perform that action at this time.
0 commit comments