Skip to main content

Welcome to Compass API

Compass is a non‑custodial API for on‑chain finance. Add Earn, Swap, Borrow, Leverage, Monitoring, and more to your product with a few lines of code. No smart contracts and protocol integrations required. Multi‑step strategies run as one safe, atomic transaction with the Transaction Bundler. Our mission: make on‑chain finance products as easy to build as any Web2 product. The Compass API and SDKs let you ship on‑chain features in days while we handle the blockchain plumbing. Whether you’re a wallet, fintech, trading platform, or crypto super app, use Compass to grow users and revenue, without new smart contracts or protocol maintenance.
Read our latest product report here to get a clear view of what is supported and how Compass can be used to monitor markets, automate transactions, and manage exposure across venues.

How it works

Compass API creates a Smart Wallet for you in the background. This has several advantages.
  • Transactions can be bundled together. E.g. No separate token allowances will be required.
  • All transaction can be done gasless, if desired.
  • No intermingling of funds. E.g. Your Earn positions can’t get liquidated because of your Leverage positions.
The end user is the owner and only valid signer on the Compass Wallet. It is a standard 4337 Smart Wallet. Here’s how the usage flow works.

Key features

  • Always non‑custodial: we return unsigned payloads; you (or your users) sign. Works with EOAs, custodians, and smart accounts like Safe and ZeroDev.
  • Intent bundles: Bundle multiple DeFi actions across protocols in a single request, cutting failures, partial flows, and saving ~50–70% gas. Read more here.
  • Python & TypeScript SDKs: Fast and easy-to-use Python and TypeScript SDKs so you can focus on building incredible products.
  • Gas sponsorship: Easily sponsor gas for your users if desired.
  • Fee embedding: Opt-in to earn on every transaction your users make.

Getting started

  1. Sign up for a free API key (1,000 calls/month).
  2. Run the Quickstart to execute your first on‑chain action in minutes.
  3. Explore examples for common flows and bundles.

Developer experience

Need help?

Exploring an integration or shipping a new DeFi feature? Tell us what you’re building and we’ll help you go live fast.

Stay connected

Follow us on X and LinkedIn for product updates, new protocol launches, and developer tips. We’re excited to see what you’ll build with Compass Labs!