use explorer to query blocks

This commit is contained in:
Al Liu 2024-02-11 21:11:07 +08:00
parent e87967ccdc
commit 4bb88d7b97
No known key found for this signature in database
GPG Key ID: C8AE9A6E0166923E
1 changed files with 2 additions and 2 deletions

View File

@ -4,12 +4,12 @@ use nomos_core::da::blob;
use reqwest::Url;
pub async fn get_blobs(
explorer: &Url,
node: &Url,
ids: Vec<<Blob as blob::Blob>::Hash>,
) -> Result<Vec<Blob>, reqwest::Error> {
const BLOBS_PATH: &str = "da/blobs";
CLIENT
.post(explorer.join(BLOBS_PATH).unwrap())
.post(node.join(BLOBS_PATH).unwrap())
.json(&ids)
.send()
.await?