Quickstart
Five minutes from install to a verified Atlas call.
Install
pnpm add @atlas/sdk
# optional helpers
pnpm add @atlas/widgets @atlas/qvacRead your first vault
import { AtlasPlatform } from "@atlas/sdk";
const atlas = new AtlasPlatform({ baseUrl: "https://atlas.fyi" });
const vault = await atlas.getVault("0xab12...");
console.log(vault.allocation);Verify a proof client-side
const proof = await atlas.getProof(publicInputHash);
atlas.verifyProof(proof); // throws on shape errors
// hand to sp1-solana for the cryptographic checkSubscribe to a live stream
const ws = atlas.streamRebalances(vaultId, (e) => {
if (e.proof_status === "verified") render(e);
});
// later
ws.close();Concepts
Vault
Custody account with an immutable strategy commitment.
Rebalance
Atomic capital movement. Bound to an SP1 / Groth16 proof.
Public input
Fixed-size payload folded into the proof.
Disclosure policy
Who sees what. Hashes into the public input.
PER session
Private execution; settles to mainnet within 256 slots.
Cookbook
deposit
Connect a wallet, deposit USDC
Walks the SIWS auth flow and a simulate-then-sign deposit ix.
verify
Verify a proof in the browser
Loads a Groth16 receipt; runs sp1-solana through WASM.
alerts
Watch alerts via WebSocket
Subscribes stream.vault.{id}.alert; renders in any UI.
widgets
Embed /infra widgets
Drop the @atlas/widgets iframe into a status page.
intel
Score a wallet locally
Runs the QVAC analyst on-device, no calls home.
treasury
Open a treasury vault
Squads multisig wizard plus KYB if business.