Skip to main content
POST
Vault deposit

Headers

Idempotent-Key
string | null

Optional idempotency key; a retried write with the same key replays the original response

Body

application/json
minLpAmount
integer<int64>
required
Required range: x >= 0
principalAmount
integer<int64>
required
Required range: x >= 0
vault
string
required
depositOnly
boolean

Response

Serialized transaction and update stake account

stakeAccount
string
required
transaction
object
required

versioned txn return

preTransactions
object[]

Unstake-only transactions that must be executed before the main transaction when consolidating more positions than fit in a single transaction.