DocumentationOpen App

Getting Started

Choose how you want to integrate with Gearbox Markets.

Integration Paths

PathBest ForStatus
TypeScript (SDK)Frontend apps, bots, analytics dashboards, backend servicesAvailable
GraphQLQuerying indexed data, dashboards, lightweight integrationsComing soon

TypeScript SDK

The Gearbox SDK provides typed access to protocol state and operations. It wraps contract calls, handles encoding, and provides cached market data through a clean TypeScript interface.

ComponentPurpose
GearboxSDKMain entry point with attach() initialization
marketRegisterCached market data access
addressProviderContract discovery wrapper
PluginsExtended functionality (AccountsPlugin, AdaptersPlugin)
ServicesCredit account operations and multicall helpers

Prerequisites: Node.js 18+, basic familiarity with viem.

Get started with TypeScript