Lending API
Last updated
Last updated
Get available asset for given pool
response for available asset
The amount of asset available.
Get details of loans of provided address and asset
Details of loans of provided address and asset
Address of the owner of the loan
The asset of the loan
The total amount of debt taken for this asset.
The total amount of debt paid for this asset.
The total amount of collateral added for this asset.
The total amount of collateral removed.
Block height at which last loan was taken
Block height at which last loan was repaid
Get borrow details
A full quote of the borrow
The inbound address recipient of the collateral
The number of blocks to wait for inbound confirmation
The number of seconds to wait for inbound confirmation
The number of blocks to wait for outbound confirmation
The number of seconds to wait for outbound confirmation
Details for the fees occuring on a leg
The expiry time of the loan
A warning message from the THORChain protocol
A note from the THORChain protocol
The dust threshold of the loan
A flag to indicate if the response data has been fully formed
The memo message to include in the deposit to open the loan
The expected amount out of the loan, in midgard amount
The expected collaterization ratio of the protocol for the loan
The expected collateral amount to be held in the protocol
The expected debt amount, in TOR, to be recorded by the protocol
The minimum amount out of the loan, in midgard amount
The expected asset amount out from the loan
The expected asset amount out from the loan if the entire slippage amount, provided in the quote, is incurred.
The expected asset amount out from the loan, in USD
The expected asset amount out from the loan if the entire slippage amount, provided in the quote, is incurred, in USD
The response object of a quote, that is to be passed into the swap contract of the THORSwap aggregation protocol