Skip to main content
POST
/
position
/
landing-decrease-tx
Zap-Out — Submit and land zap-out transactions
curl --request POST \
  --url https://api.lpagent.io/open-api/v1/position/landing-decrease-tx \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "lastValidBlockHeight": 123,
  "closeTxsWithJito": [
    "<string>"
  ],
  "closeTxs": [],
  "swapTxs": [],
  "swapTxsWithJito": []
}
'
{
  "status": "success",
  "data": {
    "method": "JITO",
    "signature": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
lastValidBlockHeight
integer
required

Last valid block height for the transactions

closeTxsWithJito
string[]
required

Close position transactions with Jito tips (base64)

closeTxs
string[]

Close position transactions (base64)

swapTxs
string[]

Swap transactions (base64)

swapTxsWithJito
string[]

Swap transactions with Jito tips (base64)

Response

Successfully submitted and landed transactions

status
string
Example:

"success"

data
object