@magicblock-labs/magicsvm
v0.1.1
Published
NodeJS bindings for MagicSVM, the MagicBlock testing VM built on top of LiteSVM. Use this package when tests need both a base ledger and an ephemeral ledger for delegation flows.
Readme
MagicSVM (NodeJS)
NodeJS bindings for MagicSVM, the MagicBlock testing VM built on top of LiteSVM. Use this package when tests need both a base ledger and an ephemeral ledger for delegation flows.
Minimal Example
import { MagicSVM } from "magicsvm";
const svm = new MagicSVM();
const baseBlockhash = svm.latestBlockhash();
const ephemeralBlockhash = svm.latestBlockhashFor({ target: "ephemeral" });Installation
yarn add @magicblock-labs/magicsvm