https://tars.loopscale.com/v1/markets). Transactions are built by the Pandora API (https://tars.loopscale.com/v1/pandora).
1. Find a vault
Get Earn Vaults lists every registered vault with its latest snapshot. The fields you need most:
Get Earn Vault History returns the same snapshot fields over time for charts.
2. Acknowledge the vault’s terms
IfrequiresAcknowledgment is true, show the vault’s terms and call Acknowledge Earn Vault once per wallet before its first deposit. It only records the acceptance, so it builds no transaction.
3. Deposit
Call Deposit to Earn Vault with the wallet and an amount in base units. The response carries two transactions intxBase64s: an AUM refresh, then the deposit. Sign both with the wallet and submit them in order as one Jito bundle (details in Sending Earn transactions).
4. Track the position
Get Earn Position returns a wallet’s share balance, cost basis and realized PnL in one vault, plus its open withdrawal requests. Get Earn Portfolio returns the same for every vault the wallet holds. Position value in the underlying isshareBalance × navPerShareE18 / 1e18.
5. Withdraw
Call Withdraw from Earn Vault withmode:
instantredeems from the vault’s reserves right away, paying the fast-withdrawal cut, while reserves allow. Passmintto receive a token other than the underlying.queuedopens a withdrawal request. The response’srequestIdidentifies it.