๐ชOffer Create & Update
POST /lender/offers/create
Generate a transaction to create a new loan offer for a specific collateral token.
Headers
x-api-key
Yes
string
API key
Content-Type
Yes
string
application/json
Example Request
POST https://lavarave.wtf/api/sdk/v1.0/lender/offers/createRequest Body Fields
collateralToken
Yes
string
Collateral token address
quoteToken
Yes
string
Address of the token being borrowed.
maxExposure
Yes
number
Maximum total exposure the lender is willing to take
interestRate
Yes
number
Annual interest rate for this offer in percentage form, e.g. 169.
userWallet
Yes
string
User wallet address.
nodeWallet
Yes
string
Address of the node providing liquidity for this offer.
Response Fields
success
boolean
Boolean indicating whether the offer operation was successful
transaction
string
Base58 encoded serialized transaction ready for signing.
message
string
Human-readable message describing the operation result.
Request Body Example
{
"nodeWallet": "8Pfbw51h5gVdxzTpXN4FFtV6vHe3g63ohrrfmYVEqjSx",
"userWallet": "Ahtpvhub1Z2z3y1RUYPDb7iUkv2J9fYByWWaitPeQXVp",
"collateralToken": "87bZzcXXHnQRjB4AmYQWCCdRaeGUSiaA7DgUEBYqpump",
"quoteToken": "So11111111111111111111111111111111111111112",
"maxExposure": 3000000000,
"interestRate": 88
}Response Example
{
"success": true,
"transaction": "9Bj7JpYHDjMvbCM3jD559VAExahDDU7x6ji22z4XygRJ8zbvtuAYpy1SNPHrzxJyLjtR6zwjxfQbYVAmgr4uKEbNrQXZ24RmDPmPNHK4PK9BtznMpk5bXtc3XJiiG15BUkVg1L9wYSbH9XvsFrpH8a3QQJPYmf6hBnwApBAYWtt11ziaES5qXzrEuzd6zJpSBpzVukYw9A7zUoCAnJue4J1UpXaH8ugX1eEw6kvhnVT8Z79u8tTaJxb2rFWsbwZNsHGed6G2kvf5kRiif8zQv61agJziBQ46NtR3nxx2PbzP5545zf86NHt1GQphiXVP2Sqm4abeKqi2rjdYkUAgkrWynMKFKjFJKtazrGZzSvzBsHtSGhEz7V32MoAJJrACheLR3hv16oR77dKnc3JPSFkHmb6ddu6DnyGBaF6q1dxa6REc8JQ7bbyxm2XdKkfrZjNgDfN6hi9bftw4Li4L1kjUb",
"message": "Offer creation transaction generated. Sign and submit to create offer."
}PUT /lender/offers/update
Generate a transaction to update a loan offer.
Headers
x-api-key
Yes
string
API key
Content-Type
Yes
string
application/json
Example Request
POST https://lavarave.wtf/api/sdk/v1.0/lender/offers/updateRequest Body Fields
collateralToken
Yes
string
Collateral token address
quoteToken
Yes
string
Address of the token being borrowed.
maxExposure
Yes
number
Maximum total exposure the lender is willing to take
interestRate
Yes
number
Annual interest rate for this offer in percentage form, e.g. 169.
userWallet
Yes
string
User wallet address.
nodeWallet
Yes
string
Address of the node providing liquidity for this offer.
Response Fields
success
boolean
Boolean indicating whether the offer operation was successful
transaction
string
Base58 encoded serialized transaction ready for signing.
message
string
Human-readable message describing the operation result.
Request Body Example
{
"nodeWallet": "8Pfbw51h5gVdxzTpXN4FFtV6vHe3g63ohrrfmYVEqjSx",
"userWallet": "Ahtpvhub1Z2z3y1RUYPDb7iUkv2J9fYByWWaitPeQXVp",
"collateralToken": "87bZzcXXHnQRjB4AmYQWCCdRaeGUSiaA7DgUEBYqpump",
"quoteToken": "So11111111111111111111111111111111111111112",
"maxExposure": 3000000000,
"interestRate": 88
}Response Example
{
"success": true,
"transaction": "9Bj7JpYHDjMvbCM3jD559VAExahDDU7x6ji22z4XygRJ8zbvtuAYpy1SNPHrzxJyLjtR6zwjxfQbYVAmgr4uKEbNrQXZ24RmDPmPNHK4PK9BtznMpk5bXtc3XJiiG15BUkVg1L9wYSbH9XvsFrpH8a3QQJPYmf6hBnwApBAYWtt11ziaES5qXzrEuzd6zJpSBpzVukYw9A7zUoCAnJue4J1UpXaH8ugX1eEw6kvhnVT8Z79u8tTaJxb2rFWsbwZNsHGed6G2kvf5kRiif8zQv61agJziBQ46NtR3nxx2PbzP5545zf86NHt1GQphiXVP2Sqm4abeKqi2rjdYkUAgkrWynMKFKjFJKtazrGZzSvzBsHtSGhEz7V32MoAJJrACheLR3hv16oR77dKnc3JPSFkHmb6ddu6DnyGBaF6q1dxa6REc8JQ7bbyxm2XdKkfrZjNgDfN6hi9bftw4Li4L1kjUb",
"message": "Offer update transaction generated. Sign and submit to update offer."
}Last updated