Compound V2
/getpool
Get the lend and borrow APY for the given pool from the given protocol.
GET https://api.expand.network/lendborrow/getpool
Query Parameters
rpc
String
Remote procedural call URL.
lendBorrowId*
String
Refer to the Lend and Borrow ID page for details.
asset*
String
Token's symbol to get the details of.
https://api.expand.network/lendborrow/getpool?lendborrowId=1100&asset=usdc{
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "0x39aa39c021dfbae8fac545936693ac917d5e7563",
"poolAddress": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
"variableBorrowRate": "0",
"stableBorrowRate": "15.317159470377728",
"variableSupplyRate": "0",
"stableSupplyRate": "5.076408388218856",
"ltv": "85.5",
"availableLiquidity": "27577473960885",
"reserveSize": "18717058035630"
}
}/getpools
Get the list of supply and borrow APYs of the mentioned assets.
GET https://api.expand.network/lendborrow/getpools
Query Parameters
lendBorrowId*
String
Refer to the lend borrow Id page for details.
assets*
String
Comma-separated values of token address.
https://api.expand.network/lendborrow/getpools?lendborrowId=1100&assets=USDT,usDC,rep{
"status": 200,
"msg": "success",
"data": {
"USDC": {
"tokenAddress": "0x39aa39c021dfbae8fac545936693ac917d5e7563",
"poolAddress": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
"variableBorrowRate": "0",
"stableBorrowRate": "15.317159470377728",
"variableSupplyRate": "0",
"stableSupplyRate": "5.076408388218856",
"ltv": "85.5",
"availableLiquidity": "27577473960885",
"reserveSize": "18717058035630"
},
"REP": {
"tokenAddress": "0x158079ee67fce2f58472a96584a73c7ab9ac95c1",
"poolAddress": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
"variableBorrowRate": "0",
"stableBorrowRate": "4.560470927786797",
"variableSupplyRate": "0",
"stableSupplyRate": "0",
"ltv": "0",
"availableLiquidity": "1014353018766752581455",
"reserveSize": "3549421684597720326"
},
"USDT": {
"tokenAddress": "0xf650c3d88d12db855b8bf7d11be6c55a4e07dcc9",
"poolAddress": "0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b",
"variableBorrowRate": "0",
"stableBorrowRate": "13.938973764802665",
"variableSupplyRate": "0",
"stableSupplyRate": "10.934276001927245",
"ltv": "0",
"availableLiquidity": "31414050451046",
"reserveSize": "4507835539299"
}
}
}/getuseraccountdata
Get the repay, borrow, withdraw amount and health factor details for the 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's symbol to get detail of.
address*
String
Public address of sender.
/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.
lendBorrowId*
String
Refer to the lend borrow Id page for details.
/entermarketstatus
Checks whether the user approved before depositing.
GET https://api.expand.network/lendborrow/entermarketstatus
Query Parameters
lendBorrowId*
String
Refer to the Lend and Borrow ID page for details.
rpc
String
Remote procedural call URL.
account*
String
Public address of the user.
/entermarket
Compound needs the user to approve before they can start deposit.
POST https://api.expand.network/lendborrow/entermarket
Query Parameters
rpc
String
Remote procedural call URL.
lendBorrowId*
String
Refer to the Lend and Borrow ID page for details.
asset*
String
Token's symbol to get the details of.
from*
String
Sender public address.
gas
String
Maximum gas to be approved for the transaction.
With gasPriority:
With gasPriority:
/borrow
Trigger the withdraw transaction from the given protocol.
POST https://api.expand.network/lendborrow/borrow
Request Body
lendBorrowId*
String
Refer to the Lend and Borrow ID page for details.
asset*
String
Token's symbol to borrow.
amount*
String
Number of tokens to be borrowed.
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 (medium):
With gasPriority:
/deposit
Trigger the deposit transaction from the given protocol.
POST https://api.expand.network/lendborrow/deposit
Request Body
lendBorrowId*
String
Refer to the Lend and Borrow ID page for details.
asset*
String
Token's symbol to deposit.
amount*
String
Number of tokens to be deposited.
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 (medium):
With gasPriority:
/repay
Trigger the repay transaction from the given protocol.
POST https://api.expand.network/lendborrow/repay
Request Body
lendBorrowId*
String
Refer to the Lend and Borrow ID page for details.
asset*
String
Token's symbol to be repaid.
amount*
String
Number of tokens to be repaid.
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 (medium):
With gasPriority:
/withdraw
Trigger the withdraw transaction from the given protocol.
POST https://api.expand.network/lendborrow/withdraw
Request Body
lendBorrowId*
String
Refer to the Lend and Borrow ID page for details.
asset*
String
Token's symbol to withdraw.
amount*
String
Number of tokens to withdraw.
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 (medium):
With gasPriority:
/exitmarket
Trigger the exit market transaction for the given protocol
POST https://api.expand.network/lendborrow/exitmarket
Request Body
rpc
String
Remote procedural call URL.
lendBorrowId*
String
Refer to the Lend and Borrow ID page for details.
asset*
String
Token's symbol.
gas
String
Maximum gas to be approved for the transaction.
from*
String
Sender's public address.
gasPriority
String
low, medium, or high.
With gasPriority (medium):
With gasPriority:
Following is the list of supported tokens :
Last updated

