Compound V3
/getassetinfo
Get the details of a specified asset like liquidation and borrow collateral factor, index and the price feed address.
Query Parameters
Name
Type
Description
https://api.expand.network/lendborrow/getassetinfo?lendborrowId=1300&asset=0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984{
"status": 200,
"msg": "success",
"data": {
"index": "3",
"priceFeedAddress": "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
"borrowCollateralFactor": "75",
"liquidateCollateralFactor": "81",
"liquidationFactor": "15"
}
}/getpool
Get the lend and borrow APY for the given pool from the given protocol.
Query Parameters
Name
Type
Description
/getuseraccountdata
Get the repay, borrow, and withdraw amount details for the given user.
Query Parameters
Name
Type
Description
/getclaimedrewards
Get the rewards claimed by the specified account on the protocol.
Query Parameters
Name
Type
Description
/getmaxamounts
Get the max withdrawable amount and the max borrowable amount of the base token for a given asset in the protocol for the specified account.
Query Parameters
Name
Type
Description
/getgovernordata
Get the protocol and governor-related data for a market.
Query Parameters
Name
Type
Description
/allow
Trigger a transaction to allow or disallow the specified address to withdraw or transfer on behalf of the sender’s address.
Body Parameters
Name
Type
Description
/borrow
Trigger a transaction to borrow the base token from the specified market.
Body Parameters
Name
Type
Description
/claimrewards
Trigger a transaction to allow an account to claim rewards from the protocol.
Body Parameters
Name
Type
Description
/deposit
Trigger a transaction to deposit an asset to the protocol and update it to the account’s balance.
Body Parameters
Name
Type
Description
/repay
Trigger a transaction to repay the borrowed amount of the base asset to the protocol.
Body Parameters
Name
Type
Description
/transfer
Trigger a transaction to transfer an asset, within the protocol, to another account.
Body Parameters
Name
Type
Description
/withdraw
Trigger the withdrawal transaction from the given protocol.
Body Parameters
Name
Type
Description
/bundleactions
Trigger a transaction, to pass an array of action codes and calldatas that are executed, one by one, in a single transaction.
Body Parameters
Name
Type
Description
Last updated

