Substreams ESM core utility library
This is a work in progress. Your mileage may vary.
npm install @substreams/core
import()
function. Please don't open issues for questions regarding CommonJS / ESM.
import { createSubstream } from "@substreams/core";
export async function fetchSubstream(url: string) {
const response = await fetch(url);
const blob = await response.blob();
const array = await blob.arrayBuffer();
return createSubstream(array);
}
- @fubhy (fubhy.eth, Twitter)
- @DenisCarriere (Twitter)
MIT License