Vault Actions API
Signed actions to deposit, withdraw, mint, burn. The backend verifies your signature and relays a transaction to the vault program.
Endpoints
POST /actions/depositPOST /actions/withdrawPOST /actions/mintPOST /actions/burn
Headers (signed)
Authorization: Bearer <API_KEY>x-plx-ts: <unix_ts>x-plx-wallet: <pubkey>
Payload fields
symbol(e.g.,SOL2X)amount(decimal SOL)wallet(base58 pubkey)signature(ed25519 signature overwallet|symbol|amount|ts)
curl (deposit 10 SOL to SOL2X)
curl -s -X POST https://api.plx.fi/v1/actions/deposit \
-H "Authorization: Bearer $PLX_API_KEY" \
-H "Content-Type: application/json" \
-H "x-plx-ts: 1735698200" \
-H "x-plx-wallet: FfQp7...Rz9A" \
-d '{
"symbol":"SOL2X",
"amount":10.0,
"wallet":"FfQp7...Rz9A",
"signature":"5YwqP2...ed25519sig..."
}'mint leveraged token (PUMP5X)
TypeScript (sign + call)
Note: For production, sign the transaction (Anchor/solanaWeb3) returned by a
/tx/buildendpoint; the example above demonstrates simple payload auth.
Last updated
