API Reference
Base Earn API: Get Earnings
Return an address’s earnings in one Base Earn vault for its lifetime, the last 7 or 30 days, or a custom period, with claimable rewards and current value.
Returns an address’s earnings in one vault: the return to date, the return for a period, claimable rewards, and the position’s current value.
Earnings depend on third-party tracking and may be unavailable, especially for a new position. A missing field means the value is unavailable, never zero. An unknown
The TypeScript and Python examples use the
vaultId returns 404.
Path Parameters
The vault identifier from discovery.
Query Parameters
Required with
period=custom. An RFC 3339 timestamp with whole seconds, such as 2026-11-01T00:00:00Z. Sending start or end with any other period returns 400.earn() helper from Call the API.
Response Fields
The position’s return since the first deposit, as an amount.
Rewards the address can claim now, as amounts.
The position’s current value, as an amount.