Skip to main content
GET
/
orders
/
expired
cURL
curl --request GET \
  --url https://lite-api.jup.ag/perps/v1/orders/expired
{
  "serializedTxs": [
    {
      "serializedTxBase64": "<string>",
      "positionRequestPubkey": "<string>"
    }
  ],
  "txMetadata": {
    "blockhash": "<string>",
    "lastValidBlockHeight": "<string>"
  }
}

Query Parameters

walletAddress
string
required

Public key for the wallet to fetch expired orders

Response

200 OK

An array of base64-serialized transactions and transaction metadata to close all expired orders.

serializedTxs
object[]
required

An array of base64-serialized transactions and the positionRequestPubkey to close all expired orders.

txMetadata
object
required

Contains blockhash metadata for the serialized transaction to submit and confirm the transactions.