> ## Documentation Index
> Fetch the complete documentation index at: https://docs.compasslabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Build and bundle complete DeFi workflows in one safe, gas-efficient, atomic transaction. No smart contracts to write or deploy.

## 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**](/v1/transaction-bundler/bundler_gas_savings), fewer failures, and zero new contracts to audit, so teams ship in weeks, not months.

<Check>
  See here how Compass Transaction Bundler [saves 50-70% in gas fees](/v1/transaction-bundler/bundler_gas_savings)
</Check>

## Key Benefits

* **Batch multiple DeFi actions** into a single API call
* [**Reduce gas costs**](/v1/transaction-bundler/bundler_gas_savings) 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.

<img src="https://mintcdn.com/compasslabs-f07467e0/pmnFZTHqNTNDIkYs/images/Screenshot2025-09-18at11.33.53.png?fit=max&auto=format&n=pmnFZTHqNTNDIkYs&q=85&s=799d1905cb6d4881dee8c58d0769b691" alt="Screenshot 2025-09-18 at 11.33.53.png" width="861" height="489" data-path="images/Screenshot2025-09-18at11.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](/v1/transaction-bundler/aave_looping).
* **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](/v1/transaction-bundler/quick_start) to get up and running.

* [Get authorization for bundling transactions](https://docs.compasslabs.ai/v1/api-reference/transaction-bundler/enable-transaction-bundling): `POST /v1/transaction-bundler/authorization`
* [**Construct a bundle**](https://docs.compasslabs.ai/v1/api-reference/transaction-bundler/construct-bundled-transaction): `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

* Read the [**Transaction Bundler API Reference**](https://docs.compasslabs.ai/v1/api-reference/transaction-bundler/construct-bundled-transaction)
* Try the [**Quickstart examples**](/v1/transaction-bundler/quick_start)
* Check the [Aave Leverage Example](/v1/transaction-bundler/aave_looping)
* See the [**Smart Account guide**](/v1/wallet-support/zerodev) if you use account abstraction
