Lending Protocols
Get Pool
The user will be able to get the lend and borrow APY for the given pool from the given protocol.
URL:
https://lend-borrow.quicknode.expand.network/lendborrowPayload:
{
"method": "en_getPool",
"params": [
{
"lendborrowId": "1200",
"asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
]
}{
"id": 1,
"result": {
"message": "success",
"method": "en_getPool",
"result": {
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"variableBorrowRate": "5.95",
"stableBorrowRate": "7.50",
"variableSupplyRate": "0",
"stableSupplyRate": "4.77"
}
},
"jsonrpc": "2.0"
}Get Pools
The user will be able to get the list of supply and borrow APYs of the mentioned assets.
URL:
https://lend-borrow.quicknode.expand.network/lendborrowPayload:
{
"method": "en_getPools",
"params": [
{
"lendborrowId": "1200",
"assets": [
"0x6b175474e89094c44da98b954eedeac495271d0f",
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0"
]
}
]
}{
"id": 1,
"result": {
"message": "success",
"method": "en_getPools",
"result": {
"DAI": {
"tokenAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
"variableBorrowRate": "5.87",
"stableBorrowRate": "7.49",
"variableSupplyRate": "0",
"stableSupplyRate": "4.65",
"tokenSymbol": "DAI"
},
"USDT": {
"tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"variableBorrowRate": "5.91",
"stableBorrowRate": "10.94",
"variableSupplyRate": "0",
"stableSupplyRate": "4.71",
"tokenSymbol": "USDT"
},
"LUSD": {
"tokenAddress": "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",
"variableBorrowRate": "16.84",
"stableBorrowRate": "21.84",
"variableSupplyRate": "0",
"stableSupplyRate": "12.51",
"tokenSymbol": "LUSD"
}
}
},
"jsonrpc": "2.0"
}Get User Account Data
The user will be able to get the repay, borrow, and withdraw amount details for the given user.
URL:
Payload:
Get Enter Market Status
The user will be able to check whether the user approved before depositing on compound.
URL:
Payload:
Borrow
The user will be able to trigger the borrow transaction from the given protocol.
URL:
Payload:
Deposit
The user will be able to trigger the deposit transaction from the given protocol.
URL:
Payload:
Repay
The user will be able to trigger the repay transaction from the given protocol.
URL:
Payload:
Withdraw
The user will be able to trigger the repay transaction from the given protocol.
URL:
Payload:
Enter Market
The user will be able to approve before they can start deposit on Compound.
URL:
Payload:
Exit Market
The user will be able to trigger the exit market transaction on Compound.
URL:
Payload:
Exit Isolation Mode
The user will be able to trigger the exit of isolation mode options on Aave v3.
URL:
Payload:
Set User E-mode
The user will be able to trigger the E-Mode options on Aave v3.
URL:
Payload:
Migrate
The user will be able to trigger a transaction to migrate their positions from Aave v2 to Aave v3.
URL:
Payload:
Last updated

