Trading and Earn
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.
Workflow
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.
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.
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.
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}'