# Find lending markets, vaults and staking actions for an agent

Read Earn opportunities by network, confirm the underlying asset and exit conditions, and prepare a supported deposit, withdrawal or claim.

Guide: https://www.bitpont.com/help/ai-agents/lending-vaults-and-staking/

## 1. Inspect the underlying market

Use earnMarkets with a chain and follow the returned pages. Check whether the displayed rate comes from base yield, incentives or both. Save the returned protocol and market identity. Open the exact vault, reserve or staking product to verify its underlying token and available actions.

## 2. Choose the matching adapter

An Aave reserve, a Morpho Blue market and a Morpho vault accept different action inputs. Inspect the schema for the adapter you selected and refresh the connected wallet position. For a Solana product, retain the vault or product ID and the position ID when the chosen action requires it.

## 3. Confirm the exit as well as the entry

After a deposit, read the resulting share or receipt balance. For a queued withdrawal, store the protocol request ID and revisit its status until claimable. A withdrawal request, a liquid receipt token and cash returned to the wallet are three different position states.

## 4. Send the authorized transaction

Use the supported action with executionPrepare in the same workspace. Review the returned signing payload. On the wallet host use bitpont_walletExecute, or sign locally and send executionSubmit. Save the executionId to follow settlement and recover after a timeout.

## Browse Ethereum Earn markets by base yield

```
curl -fsS "https://www.bitpont.com/api/v1/agent/earn/markets" \
  -H 'Content-Type: application/json' \
  -d '{"network":"ethereum","sort":"base","page":1,"limit":5}'
```

## Tools

- `earnMarkets`
- `viewVaultCatalogues`
- `morphoBluePrepare`
- `ethereumEarnPrepare`
- `solLendingPrepare`
- `viewStakingWithdrawals`

## Further reading

- [Earn product guides](<https://www.bitpont.com/help/earn/>)
- [Protocol adapters and coverage](<https://www.bitpont.com/developers/protocol-adapters/>)
- [Execute a DeFi trade from an agent wallet](<https://www.bitpont.com/help/ai-agents/execute-with-agent-wallet/>)
- [Compare Earn opportunities after costs for a chosen holding period](<https://www.bitpont.com/help/ai-agents/compare-earn-yield-and-costs/>)
- [Check how much USDC a wallet can withdraw from lending](<https://www.bitpont.com/help/ai-agents/check-lending-withdrawal-capacity/>)
- [Borrow against collateral and repay a DeFi loan](<https://www.bitpont.com/help/ai-agents/borrow-and-repay/>)
