For the complete documentation index, see llms.txt. This page is also available as Markdown.

Toggle auto-lending

This endpoint allows users to enable or disable automatic lending.

POST /api/v1/account/settings/auto_lend_disabled

The operation type for signing is "set_auto_lend_disabled".

Request Body

Field
Type
Need
Description
Example

"account"

string

required

User's wallet address

42trU9A5...

"signature"

string

required

Cryptographic signature

5J3mBbAH...

"timestamp"

integer

required

Current timestamp in milliseconds

1716200000000

"disabled"

boolean or null

optional

Set to true to disable auto-lending, false to enable, or null to clear (return to default)

true

"agent_wallet"

string

optional

Agent wallet address

8zFqj1Kp...

"expiry_window"

integer

optional

Signature expiry in milliseconds

10000

Response

  • Status 200: Successfully updated auto-lending setting

{
  "success": true
}
  • Status 400: Invalid request parameters

  • Status 401: Unauthorized access

  • Status 500: Internal server error

Code Example (Python)

Last updated