Aave V2
Last updated
Last updated
Available on Ethereum , Avalanche and Polygon.
Click on the endpoint to jump to the section with full details
- Get the lend and borrow APY for the given pool from AAVE protocol.
GET
- Get the list of supply and borrow APYs of the mentioned assets.
/ GET
- Get the repay, borrow, withdraw amount and health factor details for the given user.
GET
- Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.
POST
- Trigger the borrow transaction from the given protocol.
POST
- Trigger the deposit transaction from the given protocol.
POST
- Trigger the repay transaction from the given protocol.
POST
- Trigger the withdraw transaction from the given protocol.
Many endpoints have a parameter where you can provide a lendborrow ID.
Below is a list of lendborrow IDs related to Aave V2. Please see the for a complete Lending Protocol ID list and more information.
Aave V2
Ethereum
1000
Aave V2
Avalanche
1003
Aave V2
Polygon
1005
GET
https://api.expand.network/lendborrow/getpool
rpc
String
Remote procedural call URL.
lendborrowId
String
asset*
String
Token address to get the details of.
GET
https://api.expand.network/lendborrow/getpools
lendborrowId
String
assets
String
Comma-separated token address. If not provided, it will fetch all the supported assets
GET
https://api.expand.network/lendborrow/getuseraccountdata
rpc
String
Remote procedural call URL.
lendborrowId
String
asset*
String
Token address.
address*
String
Public address of sender.
interestRateMode*
String
Interest mode as per Aave. Is set '1' as default.
GET
https://api.expand.network/lendborrow/getuserpositions
rpc
String
Remote procedural call URL.
address*
String
Public address of sender.
lendborrowId
String
POST
https://api.expand.network/lendborrow/borrow
lendborrowId
String
asset*
String
Token address to borrow.
amount*
String
Number of tokens to be borrowed.
interestRateMode*
String
Interest mode as per Aave. 0 for static and 1 for variable.
onBehalfOf*
String
Required in case borrow need to be done on behalf of other public address.
from*
String
Sender public address.
gas*
String
Maximum gas to be approved for transaction.
rpc
String
Remote procedural call URL.
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority(medium):
With ofacCheck:
POST
https://api.expand.network/lendborrow/deposit
lendborrowId
String
asset*
String
Token address to deposit.
amount*
String
Number of tokens to deposit.
onBehalfOf*
String
Required in case deposit need to be done on behalf of other public address.
from*
String
Sender public address.
gas*
String
Maximum gas to be approved for the transaction.
rpc
String
Remote procedural call URL.
involveBaseToken
String
0 for any ERC-20 token, 1 for ETH.
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority (low):
With ofacCheck:
POST
https://api.expand.network/lendborrow/repay
lendborrowId
String
asset*
String
Token address to repay.
interestRateMode*
String
Interest mode as per Aave. 0 for static and 1 for variable.
onBehalfOf*
String
Required in case repay need to be done on behalf of other public address.
from*
String
Sender public address.
gas*
String
Maximum gas to be approved for the transaction.
amount*
String
Number of tokens to repay.
rpc
String
Remote procedural call URL.
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority (medium):
With ofacCheck:
POST
https://api.expand.network/lendborrow/withdraw
lendborrowId
String
asset*
String
Token address to be withdraw.
amount*
String
Number of tokens to withdraw.
to*
String
Recipient public address.
from*
String
Sender public address.
gas*
String
Maximum gas to be approved for the transaction.
rpc
String
Remote procedural call URL.
gasPriority
String
low, medium, or high.
ofacCheck
Boolean
if true,
provides insights of the contract and tokens involved in the transaction.
By Default, false
Available on Ethereum, Polygon, BSC, Avalanche, Arbitrum and Optimism Mainnet
With gasPriority (low):
With ofacCheck:
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.
Refer to the page for details.
Refer to the page for details.