Overview
The 1Tx REST API provides programmatic access to:- Instrument Discovery: Query all available DeFi instruments
- Metrics & Analytics: Historical APY, TVL, and performance data
- Portfolio Analysis: Score allocations, compare portfolio changes, and simulate historical yield
- Protocol Information: Supported protocols and their markets
- Calldata Building: Build and simulate the call bundle your own account signs
- Cross-Chain: Build a CCTP V2 source burn your own account redeems on the far side
Base URL
Quick Start
Make Your First Request
Build a Deposit Calldata Bundle
Using TypeScript/JavaScript
Using Python
Response Format
Responses are endpoint-specific. The most common shapes in this API are:Single Resource Response
Paginated Response
Collection Response
Error Response
Error Codes
Authentication is endpoint-specific. Market-data and calldata endpoints take
x-api-key. Wallet-user-scoped endpoints, such as the portfolio routes, accept either x-api-key or Authorization: Bearer <jwt>.Rate Limiting
API requests 1Tx rate limited:Pagination
List endpoints page withlimit and offset:
limit(default: 20, max: 100)offset(default: 0)
pagination block in the response carries total and hasMore.
Filtering and sorting
sortBy (apy, tvl, createdAt, cv, rewardShare, historyDays) and
sortOrder (asc, desc) — one field at a time. See the
Instruments API for every filter.
Next Steps
Instruments API
Query DeFi instruments
Integration Guide
Choose your integration model
Calldata API
Build the bundle to sign