Skip to main content
GET
Get Swap Quote
Base URL: https://inkyswap.com This endpoint covers the wider InkySwap V2 router. It is not the InkyPump bonding-curve or V4 post-bond quote endpoint.

Query parameters

string
required
Input token. Use 0x0000000000000000000000000000000000000000 for native ETH.
string
required
Output token. Use the zero address for native ETH.
string
Exact input in smallest units. Send either amount or amountOut, never both.
string
Exact output in smallest units.
number
Basis points from 0 to 10000.
boolean
default:"false"
When true, build router calldata for a routed swap.
string
Required with buildTx=true.

Response

Verified example

Native ETH and WETH on Ink are a 1:1 wrap path:
The old example that used Ethereum-mainnet USDC (0xA0b8…eB48) on Ink was invalid and returned no route.

Transaction building

For routed swaps, set buildTx=true and provide userAddress. Simulate the returned transaction before signing and confirm any ERC-20 allowance targets the returned router. The direct ETH/WETH wrap case returns quote data but does not return router transaction calldata from this endpoint.

Errors

  • 400 for missing parameters, both exact-input and exact-output, or invalid slippage.
  • 500 when the router cannot produce a route, liquidity is insufficient, or gas estimation fails.
Treat quote failure as route-specific. It does not prove that every direct InkyPump trade path is unavailable.