Skip to main content
POST
/
api
/
v2
/
swap
/
execute
POST /api/v2/swap/execute — Managed execution (Shuriken signs & submits)
curl --request POST \
  --url https://api.shuriken.trade/api/v2/swap/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "<string>",
  "chain": "<string>",
  "inputMint": "<string>",
  "outputMint": "<string>",
  "walletId": "<string>",
  "slippageBps": 123
}
'
{
  "data": {
    "status": "<string>",
    "taskId": "<string>",
    "errorCode": "<string>",
    "errorMessage": "<string>",
    "txHash": "<string>"
  },
  "requestId": "<string>",
  "pagination": {
    "hasMore": true,
    "limit": 1,
    "page": 1,
    "total": 1
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

POST /api/v2/swap/execute request body

Direct execution: accepts all params, gets fresh quote, creates task. Matches Jupiter/1inch pattern (no plan_storage dependency).

amount
string
required

Amount in base units (e.g., lamports for SOL, wei for EVM)

chain
string
required

Chain identifier: "solana", "base", "bsc", "monad"

inputMint
string
required

Token address to sell

outputMint
string
required

Token address to buy

walletId
string
required

Shuriken wallet ID to use for the swap

slippageBps
integer<int32>

Slippage tolerance in basis points (default: 100 = 1%)

Response

Swap task created

V2 success response envelope

data
object
required
requestId
string
required
pagination
object

Page-based pagination info