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.
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": "USDC",
"variableBorrowRate": "0",
"stableBorrowRate": "3.219941694305528",
"variableSupplyRate": "0",
"stableSupplyRate": "1.5063202247327823"
}
}/getpools
Get the list of supply and borrow APYs of the mentioned assets.
GET https://api.expand.network/lendborrow/getpools
Query Parameters
assets*
String
Comma-separated values of token address.
/getuseraccountdata
Get the repay, borrow, and withdraw amount details for the given user.
GET https://api.expand.network/lendborrow/getuseraccountdata
Query Parameters
rpc
String
Remote procedural call URL.
asset*
String
Token's symbol to get detail of.
address*
String
Public address of sender.
/entermarketstatus
Checks whether the user approved before depositing.
GET https://api.expand.network/lendborrow/entermarketstatus
Query Parameters
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.
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
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
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:
/liquidate
Trigger the liquidate transaction from the given protocol
POST https://api.expand.network/lendborrow/liquidate
Request Body
collateralAsset*
String
Address of the collateral token.
debtAsset*
String
Address of the debt token.
user*
String
Public address of the user whose account need to be liquidated.
debtToCover*
String
Amount of debt to be covered.
from*
String
Sender public address.
gas*
String
Maximum gas to be approved for the transaction.
rpc
String
Remote procedural call URL.
/repay
Trigger the repay transaction from the given protocol.
POST https://api.expand.network/lendborrow/repay
Request Body
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
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.
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

