Yearn Finance
/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
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
address* | String | Public Address of the owner. |
tokenAddress | String | The address of token. |
vaultNumber | String | The number of the vault, incase there are multiple vaults. |
yieldAggregatorId* | String | Refer to the Yield Aggregator ID page for details. |
vaultAddress | String | The address of the vault. |
/getvaults
Get the number of the vaults along with the respective vault APY.
GET
https://api.expand.network/yieldaggregator/getvaults
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL |
yieldAggregatorId* | String | Refer to the Yield Aggregator ID page for details. |
tokenAddress* | String | The address of token. |
/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
Name | Type | Description |
---|---|---|
amount* | String | The amount of token to deposit. |
tokenAddress | String | The address of the token. |
from* | String | Address of the sender of the token. |
gas* | String | Maximum gas limit provided by the sender, for the transaction. |
vaultNumber | String | The number of the vault, in case there are multiple vaults. |
vaultAddress | String | The address of the vault. |
yieldAggregatorId* | String | Refer to the Yield Aggregator ID page for details. |
gasPriority | String | low, medium, or high. |
/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
Name | Type | Description |
---|---|---|
amount* | String | Amount to be withdrawn. |
from* | String | Address of the withdrawer of the token. |
gas* | String | Maximum gas limit provided by the sender, for the transaction. |
tokenAddress | String | Address of the token. |
vaultNumber | String | The number of the vault, in case there are multiple vaults. |
vaultAddress | String | Address of the vault. |
yieldAggregatorId* | String | Refer to the Yield Aggregator ID page for details. |
gasPriority | String | low, medium, or high. |
Last updated