๐ฆPool Deposit
POST /lender/pools/deposit
Generate a transaction to deposit funds to a lending pool.
Headers
Header
Required
Type
Description
x-api-key
Yes
string
API key
Content-Type
Yes
string
application/json
Example Request
POST https://lavarave.wtf/api/sdk/v1.0/lender/pools/depositRequest Body Fields
Field
Required
Type
Description
amount
Yes
number
Amount to deposit (in smallest token units).
quoteToken
Yes
string
Address of the token being borrowed.
userWallet
Yes
string
User wallet address.
authorizedWallet
No
string
Assigned authorized wallet address through the /lender/withdrawal-access/add endpoint. Can be revoked and defaulted to the original lenderWallet by using the /lender/withdrawal-access/remove endpoint.
Response Fields
Field
Type
Description
success
boolean
Boolean indicating whether the transaction generation was successful.
transaction
string
Base58 encoded serialized transaction ready for signing.
message
string
Human-readable message describing the operation.
Request Body Example
{
"amount": 170000000,
"quoteToken": "So11111111111111111111111111111111111111112",
"userWallet": "Ahtpvhub1Z2z3y1RUYPDb7iUkv2J9fYByWWaitPeQXVp"
}Response Example
{
"success": true,
"transaction": "G219h4XBGMwZQmb5akLTinHZ2pZeoauwzRGQp92MjQ9MRSSHe38ir9NbHgAwXZnFLHW9s77CdHGpWEedXMM5ktZNCFduP89AexCUE1rjzs2nvfUwBJ6VtF3WJ6DXmHGLE7vC6U27D7kFGgoU6QBPvLrFAg18CYpGWxwd1XLXeN1a9im2zAZq85uxEdZYGvz5yyMKCeD5rnTNtsuTxmhd9Rt5oB32NoWUb9mMSUe8ngpJCNUTgQELMBEpdVGCUg9T7S36oU1GaxPoGNxTzCBQaB4JpaJaNBZFR9DF5dzs5RhqRvETfmHsNw9FoVRU6vwFuqqPfEGoHzP7MdM5k9c55e4rRgo7p5BYnZAH8susFkxMK8oUJkcyxijWVBvi5ozvHJL4UNMusnsV4Dmt2zaKqNpE7qSBz4k39r5Az5TUX9oi6HNeGs8JUduMACpnP3Y8ckF",
"message": "Deposit transaction generated. Sign and submit to complete deposit."
}Last updated