The API powering onchain financial infrastructure.
Predictable, composable, and built for production systems — not just integrations. From sandbox to global deployment in days, not months.
1import { Onstacks } from var(--primary))">"@onstacks/sdk";23const stacks = new Onstacks(process.env.OSK_API_KEY);45const payout = await stacks.payments.create({6 from: var(--primary))">"wal_8aF2k1Lp",7 to: { type: var(--primary))">"wallet", address: var(--primary))">"0x71C…9A2" },8 amount: { value: var(--primary))">"12500.00", currency: var(--primary))">"USD" },9 asset: var(--primary))">"USDC",10 rails: var(--primary))">"auto",11});1213// → settled in 2.1s · txn_2K9pQrXf- Type-safe SDKs: TypeScript · Python · Go · Rust
- Idempotent operations · webhooks · event replay
- Sandbox to production with one env var
- OpenAPI 3.1 · Postman · MCP server
Pick your language. Ship today.
TypeScript SDK
First-class types, auto-completion, and built-in retry logic. Works in Node 18+ and edge runtimes.
Python SDK
Async and sync clients. Pydantic models for every request and response. Production hardened.
Go SDK
Zero-dependency core. Context-first API. Idempotent by default with built-in circuit breakers.
MCP Server
Expose Onstacks primitives to any MCP client. Your AI agents can now move money with policy controls.
Built for production.
Idempotent by default
Every mutating operation accepts an idempotency key. Replay the same request safely — no double spends, no orphaned transactions.
Sandbox → production
One environment variable flips between testnet sandbox and mainnet production. Same API, same SDK, zero code changes.
Webhooks + event replay
Subscribe to settlement, failure, and compliance events. Missed a webhook? Replay any event stream from any point in time.
Signed & audit-logged
Every API call is signed and logged. Export tamper-evident audit trails for regulators, auditors, and internal compliance.
Build the next era of programmable money.
Get early access and our team will walk you through the stack within 48 hours.
Trusted by builders defining onchain finance