ShainShain/docs
Getting started

Introduction

Shain is a 24-hour private session layer for Solana holders. Hold $SHAIN, open a session, and route your on-chain actions past mempool watchers for one day at a time.

On Solana, every wallet is a public surface. Copy-trader bots mirror you within a confirmation slot; indexers log your position size, your cost basis and your open PnL the moment your transaction lands. The ledger never forgets, and there is no private mode.

Shain changes that by adding a second axis to the ledger: a time-boxed visibility window. While you hold at least 10 $SHAIN in the signing wallet, you can open a 24-hour private session. During that session, any action gated through the program routes past the mempool watchers. When the window closes, the feed returns.

What Shain is

Shain is not a mixer, not a VPN, and not an anonymity set. It is a small on-chain program with four instructions that:

  • Verifies a caller holds the required minimum balance of $SHAIN.
  • Charges a small session fee to a treasury program-derived account.
  • Records a 24-hour private session for that caller, keyed by pubkey.
  • Exposes a gated_action hook that downstream dapps wire their private calls into.

That's the whole surface. No admin mutation, no pausable state, no upgrade authority wired on mainnet. The contract you audit is the contract that runs.

Who it's for

Shain is built for degens who trade size, for volume market-makers who don't want their inventory telegraphed, and for dapps that want to offer their own private mode without rolling custody.

  • Pump.fun traders who get sniped before they can take a second bite.
  • Jupiter power users whose limit orders get front-run the moment they land.
  • Perp traders with visible leverage ratios and liquidation thresholds.
  • Dapp builders who want to offer "private mode" as a first-class feature.

If you need permanent anonymity, Shain is the wrong tool — the session expires by design. Read Use cases for the full decision table.

The stack

Shain ships as three products that share one engine:

  • Program — an Anchor Rust crate deployed on Solana. See Engine / Architecture.
  • TypeScript SDK — client + PDA helpers + instruction builders. See SDK / Overview.
  • CLI — a Rust binary for local operators. See CLI.

Where to start