@fl0rek/lumina-node-wasm
v0.2.0
Published
Browser compatibility layer for the Lumina node
Downloads
15
Maintainers
Readme
Lumina node wasm
A compatibility layer for the Lumina
node to
work within a browser environment and be operable with javascript.
import init, { Node, NodeConfig, Network } from "/wasm/lumina_node_wasm.js";
await init();
const config = NodeConfig.default(Network.Mainnet);
const node = await new Node(config);
await node.wait_connected();
await node.request_head_header();