Hyper API for HyperEVM
Base URL:
Find route
POST /simulations
/simulations
Finds the optimal routing path for swap execution and simulates the complete route. Returns the full routing path, expected output amount for the user, and the raw transaction data.
Request Body:
{
"userAddress": "0x123...",
"fromTokenAddress": "0xabc...",
"toTokenAddress": "0xdef...",
"amount": 123.45,
"slippage": 1 // 1%
}
✅ Successful Response (200 OK):
{
"transaction": "0x...", // Raw-transaction for swap execution.
"route": [ // Route
{
"fromToken": "0x...",
"toToken": "0x...",
"splits": [
{
"dex": "hyperswap",
"portion": 0.5,
"fee": 3000,
"poolAddress": "0x..."
}
]
}
],
"amountOut": 123.45,
"economy": 123.45,
"slippage": 123.45,
}
Last updated