Getting a loan offer
Querying for the offers
query getCommitmentsForWETH {
commitments(
where: {
and: [
{
collateralToken_: {
address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
status: "Active"
expirationTimestamp_gt: "1729708565"
committedAmount_gt: "0"
}
{
}
orderBy: maxPrincipalPerCollateralAmount
orderDirection: desc
)
{
committedAmount
expirationTimestamp
maxDuration
maxPrincipalPerCollateralAmount
minAPY
collateralToken {
id
address
nftId
type
decimals
symbol
name
}
principalToken {
address
type
nftId
decimals
symbol
name
}
marketplace {
marketplaceFeePercent
}
acceptedPrincipal
maxPrincipal
forwarderAddress
}
}API Reference
Last updated