Skip to main content
POST
POST /api/v2/swap/execute — Managed execution (Shuriken signs & submits)

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <jwt> for user auth or Authorization: Bearer sk_{keyId}_{secret} for API key auth.

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"

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 | null

Page-based pagination info (per RFC)