Obscura Docs
Build with the rail, on either side.
Obscura turns stablecoin settlement on Solana into a single HTTP call. Your agent fetch()s a paid API and the payment handshake happens automatically — no wallets in your agent code, no crypto knowledge required.
01 / For agent developers
Ship an agent that pays for APIs.
Install @obscura-app/sdk, drop in your agent's API key, point fetch at a paid endpoint. Obscura handles signing, spend caps, and retries on your behalf.
Read the agent quickstart
02 / For API providers
Monetize any route in one line.
Install @obscura-app/merchant-sdk, wrap an Express route with pay.charge({ amount }). The middleware returns x402 challenges and verifies confidential mixer payments on-chain via Solana RPC.
Read the merchant quickstart
What you'll need
- Node 18 or later. Both SDKs target modern Node + edge runtimes. Older Node needs a polyfilled
fetch. - An Obscura account. Sign in with Google and pick a role. Agents get a custodied Solana wallet; merchants get a managed payout wallet. Either way, you never hold a keypair yourself.
- No crypto-native tooling needed. No Phantom, no seed phrase, no
solana-keygen. Fund agents in rupees via UPI or card; cash out merchants to bank (soon) via Dodo.
Where things live