Introduction

The Compass Transaction Bundler lets you build and execute complete DeFi workflows as a single safe, atomic transaction, without writing or deploying smart contracts. You compose the steps (approve, deposit, borrow, swap, repay, unwind) via API; we return a sign‑ready payload for you or your users; you keep the keys. Typical multi‑step flows see 50–70% lower gas, fewer failures, and zero new contracts to audit, so teams ship in weeks, not months.
See here how Compass Transaction Bundler saves 50-70% in gas fees

Key Benefits

  • Batch multiple DeFi actions into a single API call
  • Reduce gas costs by collapsing separate transactions
  • Ensure atomic safety so everything succeeds together or reverts
  • Stay non-custodial, you or your users always sign and control their assets
  • Go live in days, not months

How it works

  1. Construct
    Define your steps (actions + parameters) in order. The API validates the path and returns a bundled transaction payload.
  2. Sign
    You receive a sign‑ready payload and sign. Compass never holds keys.
  3. Execute
    Broadcast the signed transaction. The chain enforces atomicity: everything executes or nothing does. Responses include receipts and per‑action statuses for monitoring.
Screenshot 2025-09-18 at 11.33.53.png

When to use it

Use the Bundler whenever your flow needs more than one on‑chain step:
  • Set allowance and take action: set allowance → deposit into Vault A
  • One‑click leverage: approve → deposit → borrow → swap → re‑deposit. See tutorial here.
  • Yield rotation: withdraw from Vault A → swap → deposit into Vault B.
  • Delever / unwind: swap → repay → withdraw.
  • Cross‑protocol strategies: move positions between venues atomically.
Without the Bundler, these automations usually require writing and auditing new smart contracts per strategy or product. With the Bundler, you compose via API and ship.

Quickstart

See the Transaction Bundler: Quick Start Guide to get up and running.
  • Get authorization for bundling transactions: POST /v1/transaction_bundler/authorization
  • Construct a bundle: POST /v1/transaction_bundler/construct
    Provide an ordered list of actions with parameters.
  • Execute a bundle: Receive a sign‑ready transaction payload; sign and broadcast with your wallet/custodian.

Next steps