Skip to main content
POST
Get Pending Lending Actions

Authorizations

x-api-key
string
header
required

Body

application/json

Request payload for querying pending lending actions.

user_address
string
required

The Solana wallet address of the user.

timestamp
required

The current timestamp in milliseconds used for signature verification. Read-scoped: accepted within 24 hours. Can be provided as a string or a number

Pattern: ^[0-9]+$
signature
string
required

Signature of the 'By signing, I hereby agree to Vanish's Terms of Service and agree to be bound by them (docs.vanish.trade/legal/TOS)

Details: read:{timestamp}' string signed using the user's wallet. Note the field name is signature on this endpoint, not user_signature.

Response

A successful response containing a list of the user's pending lending actions.

tx_id
string
required

Transaction id of the pending action on chain

action_type
enum<string>
required

Type of pending action.

Available options:
borrow,
settle
status
enum<string>
required

Current status of the action. Every row returned by this endpoint is expected to be pending.

Available options:
pending
created_at
string
required

Timestamp indicating when the action was created.

frozen_balance_changes
object[]
required

The balance changes recorded when the action was initiated, before on-chain confirmation.