Yearn Finance V2
Supported Chains
Available on Ethereum, Arbitrum, Base and Optimism
Available Endpoints:
Click on the endpoint to jump to the section with full details
/getbalance
GET
-Get balance of the user in a given Vault./getvaults
GET
- Get the number of the vaults along with the respective vault APY./depositvault
GET
- Trigger the deposit transaction for the given vault./withdrawvault
POST
- Trigger the withdraw transaction for the given vault.
Yield Aggregator IDs
Many endpoints have a parameter where you can provide a lendborrow ID.
Endpoint Details
/getbalance
For /getbalance, the user can either pass the vaultAddress or the tokenAddress and the vaultNumber along with the required parameters.
Get balance of the user in a given Vault.
GET
https://api.expand.network/yieldaggregator/getbalance
Query Parameters
/getvaults
Get the number of the vaults along with the respective vault APY.
GET
https://api.expand.network/yieldaggregator/getvaults
Query Parameters
/depositvault
For /depositvault, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
Trigger the deposit transaction for the given vault.
POST
https://api.expand.network/yieldaggregator/depositvault
Request Body
/withdrawvault
For /withdrawvault, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
Trigger the withdraw transaction for the given vault.
POST
https://api.expand.network/yieldaggregator/withdrawvault
Request Body
Last updated