use explorer to query blocks
This commit is contained in:
parent
e87967ccdc
commit
4bb88d7b97
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue