DocumentationOpen App

Overview

Build on Gearbox Protocol — permissionless lending rails for onchain credit.

Gearbox provides the infrastructure for creating and operating lending markets. A single liquidity pool funds multiple isolated credit strategies, each managed by independent Market Curators. Developers can integrate at every level: from reading market data and building UIs, to creating new adapters for DeFi protocols, to extending the core protocol itself.

What You Can Build

Use CaseDescriptionStart Here
Frontend / DashboardDisplay market data, account positions, pool statsGetting Started: TypeScript
Trading BotMonitor health factors, execute liquidationsLiquidation Bots Guide
Analytics BackendIndex events, track historical rates, build APIsBackend Services Guide
Protocol IntegrationCompose with Credit Accounts from your contractsProtocol Integration
Adapter DevelopmentAdd new DeFi protocol support to GearboxAdapter Development
Core ExtensionCustom interest rate models, pool hooksCore Extension

Documentation Structure

Gearbox Markets

The main product. Learn the concepts, get started with the TypeScript SDK, query market data, operate credit accounts, and build multicall transactions.

  • Concepts — How markets, credit accounts, and the multicall system work
  • Getting Started — Install the SDK and make your first call
  • Markets — Query pools, rates, and insurance state
  • Credit Accounts — Open, manage, and close leveraged positions
  • Smart Contracts — Contract reference (methods, events, parameters)
  • Guides — End-to-end tutorials for common use cases

Gearbox Permissionless

The infrastructure layer. Understand how the protocol achieves institutional-grade security while remaining fully permissionless.

  • Concepts — Role separation, Bytecode Repository (BCR), Cross-Chain Multisig (CCM)
  • Building — Create adapters, integrate protocols, extend the core

Resources

Deployment addresses, security & audits, glossary.

NeedGo to
Install SDKGetting Started: TypeScript
Understand the architectureGearbox 101
Find contract addressesDeployment Addresses
Build multicallsMulticalls
Query credit accountsCredit Accounts
Pool deposit/withdrawPool Operations