SDK Playground

Try before you build.

Pick an operation and signer mode. Fill in parameters — the live call and full integration code update instantly. Copy and run in your project.

Deposit ERC-20 tokens into the private pool. Generates a ZK commitment only you can spend.

Signer mode

Parameters

Pre-filled: testnet MockUSDC

6 decimals — 100000000 = 100 USDC

Used to generate ZK proof — separate from your wallet key

Test tokens

Connect your wallet to receive test USDC

token: 0xB4fd61544493a27a4793F161d6BE153d1A0f6092

install

npm install stealthpay-sdk
Live SDK call
await sdk.shield(
  "0xB4fd61544493a27a4793F161d6BE153d1A0f6092",
  100000000n,
)

Updates as you type

Live executionreal tx on 0G Galileo testnet

Press Run — a real transaction will be submitted on-chain.

ReturnsShieldResult
txHashstring
transaction hash
commitmentbigint
your note — store privately
amountbigint
shielded amount
tokenstring
token address
Full integration codebrowser wallet
import { StealthPaySDK } from "stealthpay-sdk";
import { ethers } from "ethers";

// Signer
const provider = new ethers.BrowserProvider(window.ethereum);
const signer   = await provider.getSigner();

// SDK
const sdk = new StealthPaySDK({
  signer,
  privacyPoolAddress: "0x87fECd1AfA436490e3230C8B0B5aD49dcC1283F1",
  spendingPrivkey: YOUR_SPENDING_PRIVKEY,
});
await sdk.sync(provider);

// Shield
const result = await sdk.shield(
  "0xB4fd61544493a27a4793F161d6BE153d1A0f6092",
  100000000n,
);
console.log("tx hash   :", result.txHash);
console.log("commitment:", "0x" + result.commitment.toString(16));