Aave V3
Supported Chains
Available on Ethereum Mainnet and Testnet, Arbitrum, Avalanche, Base, and Polygon.
Available Endpoints:
Click on the endpoint to jump to the section with full details
/getpool
GET
- Get the lend and borrow APY for the given pool from AAVE protocol./getuseraccountdata
GET
- Get the repay, borrow, withdraw amount and health factor details for the given user./getuserpositions
GET
- Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status./borrow
POST
- Trigger the borrow transaction from the given protocol./setuseremode
POST
- Trigger the E-Mode options for the user./exitisolationmode
POST
- Trigger the exit of isolation mode options for the user.
Lending Protocol IDs
Many endpoints have a parameter where you can provide a lendborrow ID.
Below is a list of lendborrow IDs related to Aave V3. Please see the lendborrowID for a complete Lending Protocol ID list and more information.
Aave V3
Ethereum
1200
Aave V3
Ethereum Testnet Sepolia
1202
Aave V3
Avalanche
1203
Aave V3
Arbitrum
1204
Aave V3
Polygon
1205
Aave V3
Base
1206
Aave V3
Optimism
1207
Endpoint Details
/getpool
Get the lend and borrow APY for the given pool from AAVE protocol.
GET
https://api.expand.network/lendborrow/getpool
Query Parameters
rpc
String
Remote procedural call URL.
asset*
String
Token address to get the details of.
/getpools
Returns a list of supply and borrow APYs for assets supported by the Aave V3 protocol.
GET
https://api.expand.network/lendborrow/getpools
Query Parameters
lendborrowId*
String
Identify the protocol by providing a Lending Protocol ID. For example, Aave V3 on Ethereum is 1200.
assets
String
Provide a comma-separated list of token addresses to filter specific assets. If left blank, data for all assets supported by the protocol will be returned.
user
String
The public address of the sender.
rpc
String
Remote procedural call URL.
/getuseraccountdata
Get the repay, borrow, withdraw amount and health factor details for a given user.
GET
https://api.expand.network/lendborrow/getuseraccountdata
Query Parameters
rpc
String
Remote procedural call URL.
lendborrowId*
String
Refer to the lend borrow Id page for details.
asset*
String
Token address.
address*
String
Public address of sender.
interestRateMode*
String
Interest mode as per Aave. Is set '1' as default.
/getuserpositions
Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.
GET
https://api.expand.network/lendborrow/getuserpositions
Query Parameters
rpc
String
Remote procedural call URL.
address*
String
Public address of sender.
/borrow
Trigger the borrow transaction from the given protocol.
POST
https://api.expand.network/lendborrow/borrow
Request Body
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.
referralCode
String
Referral code needed by Aave.
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.
With gasPriority (low):
/deposit
Trigger the deposit transaction from the given protocol.
POST
https://api.expand.network/lendborrow/deposit
Request Body
asset*
String
Token address to deposit.
amount*
String
Number of tokens to deposit.
referralCode*
String
Referral code needed by Aave.
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.
With gasPriority (medium):
/repay
Trigger the repay transaction from the given protocol.
POST
https://api.expand.network/lendborrow/repay
Request Body
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.
rpc
String
Remote procedural call URL.
amount*
String
Amount to repay.
gasPriority
String
low, medium, or high.
With gasPriority (low):
/withdraw
Trigger the withdraw transaction from the given protocol.
POST
https://api.expand.network/lendborrow/withdraw
Request Body
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.
With gasPriority:
/migrate
Trigger the migrate transaction from the given protocol.
POST
https://api.expand.network/lendborrow/migrate
Request Body
assets
String
Token addresses to migrate.
from*
String
Sender public address.
gas*
String
Maximum gas to be approved for the transaction.
rpc
String
Remote procedural call URL.
With gasPriority:
/setuseremode
Trigger the E-Mode options for the user.
POST
https://api.expand.network/lendborrow/setuseremode
Request Body
categoryId*
String
0 for default. 1 for stablecoins.
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.
With gasPriority (low):
/exitisolationmode
Trigger the exit of isolation mode options for the user.
POST
https://api.expand.network/lendborrow/exitisolationmode
Request Body
asset*
String
Token address to exit isolation mode.
from*
String
Sender public address.
gas*
String
Maximum gas to be approved for the transaction.
rpc
String
Remote procedural call URL.
With gasPriority:
Last updated