@circuit-llm/onchain
v0.2.4
Published
Circuit SDK on-chain reads — StakePoint stake verification + CIRC balances via pure JSON-RPC (no @solana/web3.js).
Downloads
158
Readme
@circuit-llm/onchain
Read Circuit's on-chain state over pure JSON-RPC — StakePoint stake verification, CIRC balances, and the mesh registry — with no
@solana/web3.jsdependency.
Part of the Circuit SDK. Contribute a node →
Install
npm install @circuit-llm/onchainUsage
import { verifyStake, circBalance } from '@circuit-llm/onchain';
const staked = await verifyStake(wallet, pool, 100_000, { rpcUrl }); // ≥ 100k CIRC staked?
const circ = await circBalance(address, { rpcUrl });Also reads the on-chain mesh registry (getMeshConfig, getNode, getNodes) and stake positions (getStakePositions). Thin, dependency-light, and browser-friendly.
