Documentation · Build
@minerva/sdk
network/packages/sdk/README.md · commit e561109 · 2026-10-23
Official TypeScript SDK for Minerva developers.
The SDK exposes Minerva network metadata, standard JSON-RPC helpers, MRV balance reads, Minerva account status reads, and PQ-native transaction helpers. It intentionally does not include private keys, server env files, faucet seeds, relayer secrets, or testnet launch artifacts.
import {
createMinervaClient,
createPQAccount,
getMrvBalance,
sendPQTransaction,
} from "@minerva/sdk";
const client = createMinervaClient({ networkName: "testnet" });
const account = createPQAccount();
const balance = await getMrvBalance(client, account.address);
const txHash = await sendPQTransaction(client, {
nonce: await client.getTransactionCount(account.address),
gasTipCap: 1_000_000_000n,
gasFeeCap: 2_000_000_000n,
gas: 21_000n,
to: "0x000000000000000000000000000000000000dEaD",
value: 1_000_000_000_000_000_000n,
pqPublicKey: account.publicKey,
pqPrivateKey: account.privateKey,
});
console.log(balance, txHash);
Default application flows should use Minerva PQ accounts. Legacy EOA compatibility should be labeled clearly by wallets and apps.
