Skip to content

Commit

Permalink
Merge pull request #42 from Blobscan/lh-endpoint
Browse files Browse the repository at this point in the history
chore: use LH blobs beacon API endpoint
  • Loading branch information
0xGabi authored Jul 21, 2023
2 parents 2fd5aa2 + 2b98a8c commit 1e2619c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ SECRET_KEY=supersecret

BLOBSCAN_API_ENDPOINT=http://localhost:3001
EXECUTION_NODE_ENDPOINT=http://localhost:8545
BEACON_NODE_ENDPOINT=http://localhost:9596
BEACON_NODE_ENDPOINT=http://localhost:5052
SENTRY_DSN=
RUST_LOG=blob_indexer=INFO
2 changes: 1 addition & 1 deletion src/clients/beacon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl BeaconClient {
}

pub async fn get_blobs(&self, slot: u32) -> ClientResult<Option<Vec<Blob>>> {
let path = format!("v1/beacon/blob_sidecars/{slot}");
let path = format!("v1/beacon/blobs/{slot}");
let url = self.base_url.join(path.as_str())?;

json_get!(&self.client, url, BlobsResponse).map(|res| match res {
Expand Down

0 comments on commit 1e2619c

Please sign in to comment.