Provides connectivity across the various Yield Aggregator protocols.
Following are the common functions implemented for all the Yield Aggregator protocols:-
Name | Type | Description |
---|---|---|
For /getbalance, the user can either pass the tokenAddress or the vaultAddress and poolAddress along with the required parameters.
GET
https://api.expand.network/yieldaggregator/getbalance
Name | Type | Description |
---|
GET
https://api.expand.network/yieldaggregator/getvaults
For /depositvault, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
POST
https://api.expand.network/yieldaggregator/depositvault
For /withdrawvault, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
POST
https://api.expand.network/yieldaggregator/withdrawvault
For /depositpool, the user can either pass the tokenAddress or the poolAddress along with the required parameters.
POST
https://api.expand.network/yieldaggregator/depositpool
With gasPriority (low):
For /withdrawpool, the user can either pass the tokenAddress or the poolAddress along with the required parameters.
POST
https://api.expand.network/yieldaggregator/withdrawpool
With gasPriority (medium)
Name | Type | Description |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
getbalance
Read
Get balance of the user in a given Vault or Pool (harvest finance).
getvaults
Read
Get the number of the vaults along with the respective vault APY.
depositvault
Write
Trigger the deposit transaction for the given vault.
depositpool
Write
Trigger the deposit transaction for the given pool.
withdrawvault
Write
Trigger the withdraw transaction for the given vault.
withdrawpool
Write
Trigger the withdraw transaction for the given pool.
rpc | String | Remote procedural call URL |
address* | String | Public Address of the owner. |
tokenAddress | String | The address of the token. |
poolAddress | String | The address of the pool. |
yieldAggregatorId* | String |
vaultAddress | String | The address of the vault. |
rpc | String | Remote procedural call URL |
tokenAddress* | String | The address of the token. |
yieldAggregatorId* | String |
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. |
vaultAddress | String | The address of the vault. |
yieldAggregatorId* | String |
gasPriority | String | low, medium, or high. |
yieldAggregatorId* | String |
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 | The address of the the token. |
vaultAddress | String | The address of the vault. |
gasPriority | String | low, medium, or high. |
yieldAggregatorId* | String |
amount* | String | The amount of token to deposit. |
from* | String | Address of the sender of the token. |
gas* | String | Maximum gas limit provided by the sender, for the transaction. |
tokenAddress | String | The address of the token. |
poolAddress | String | The address of the pool. |
yieldAggregatorId* | String |
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 | The address of the token. |
poolAddress | String | The address of the pool. |
For /getbalance, the user can either pass the vaultAddress or the tokenAddress and the vaultNumber along with the required parameters.
GET
https://api.expand.network/yieldaggregator/getbalance
Name | Type | Description |
---|---|---|
GET
https://api.expand.network/yieldaggregator/getvaults
For /depositvault, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
POST
https://api.expand.network/yieldaggregator/depositvault
For /withdrawvault, the user can either pass the tokenAddress or the vaultAddress along with the required parameters.
POST
https://api.expand.network/yieldaggregator/withdrawvault
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Refer to the page for details.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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.
rpc
String
Remote procedural call URL
yieldAggregatorId*
String
Refer to the Yield Aggregator ID page for details.
tokenAddress*
String
The address of token.
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.
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.