import { RaijinLabsLucidAiCore } from "raijin-labs-lucid-ai/core.js";
import { epochsCommitRootsBatch } from "raijin-labs-lucid-ai/funcs/epochsCommitRootsBatch.js";
// Use `RaijinLabsLucidAiCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const raijinLabsLucidAi = new RaijinLabsLucidAiCore();
async function run() {
const res = await epochsCommitRootsBatch(raijinLabsLucidAi, {
epochIds: [
"<value 1>",
],
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("epochsCommitRootsBatch failed:", res.error);
}
}
run();