API Reference
Base Earn API: Get Position
Return one address’s position in one Base Earn vault, with share balance, current asset value, and claimable rewards where available.
Returns one address’s position in one vault. It has the same fields as a List Positions row, plus reward data.
An address with no position still returns
The TypeScript and Python examples use the
200, with "0" for shares and assets. An unknown vaultId returns 404, and an invalid address returns 400.
Only Morpho has reward data. Upshift returns rewardsAvailable: false.
Path Parameters
The vault identifier from discovery.
earn() helper from Call the API.
Response Fields
The response has every field described in List Positions, plus:true means claimableRewards is complete, and a missing claimableRewards means the position has no claimable rewards. false means reward data is unavailable; do not show zero rewards.Rewards the address can claim now. Each entry uses the amount format described in Get Earnings.