Skip to main content
POST
Commit Lending Action

Authorizations

x-api-key
string
header
required

Body

application/json

Details of the lending commit request.

tx_id
string
required

The transaction signature returned by /borrow/initiate or /borrow/settle

Response

Successful lending commit response.

status
enum<string>
required

The result of the commit operation to determine the state of the action and balance. A lending action is only reflected in the user's balance once the status is completed.

Available options:
pending,
completed,
failed,
expired
action_type
enum<string>
required

The type of action that was committed. Indicates whether the operation was a borrow (opening a position) or a settle.

Available options:
borrow,
settle
already_processed
boolean
required

Indicates whether the action had already reached a terminal status before this commit attempt.

vanish_fee
integer<int64>
required

The fee amount charged by Vanish, expressed in lamports. Currently always 0 for lending actions.

tx_fee
integer<int64>
required

The transaction fee amount, expressed in lamports.

balance_changes
object[] | null

A list of net per-token balance changes that resulted from the committed action. Null while the action is still pending.

completed_at
string | null

Timestamp (ISO 8601 format) indicating when the action reached a terminal state; null while it is still pending.