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.
for agents
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.
for merchants
Monetize any route in one line.
Install @obscura-app/merchant-sdk, wrap an Express route with the middleware. It returns x402 challenges and verifies confidential payments on-chain.
What you'll need
- Node 18 or later. Both SDKs target modern Node + edge runtimes.
- An Obscura account. Sign in with your Solana wallet and pick a role. Your login wallet proves identity — Obscura holds the spend keypair on the server.
- No crypto tooling. No seed phrase. Fund agents by sending USDC to their deposit address; merchants cash out to their own Solana wallet.
Where things live