Skip to main content
POST
/
transaction
/
execute
cURL
curl --request POST \
  --url https://api.jup.ag/perps/v1/transaction/execute \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "action": "tpsl",
  "serializedTxBase64": "<string>"
}
'
{
  "action": "<string>",
  "txid": "<string>"
}

Authorizations

x-api-key
string
header
required

Get API key via https://portal.jup.ag

Body

application/json
action
enum<string>
required

The action for the serialized transaction to be executed

Available options:
tpsl,
tpsl-with-fee,
limit-order,
increase-position,
increase-position-with-fee,
decrease-position,
decrease-position-with-fee
serializedTxBase64
string
required

Serialise signed transaction from user.

Response

200 OK

action
string
required

The action for the serialized transaction to be executed

txid
string
required

The transaction id of the request