Why did my swap revert?
Why did my swap revert?
The most common reasons:
- Slippage exceeded — The price moved between quoting and execution. Request a fresh partner quote; do not silently increase user slippage.
- Stale transaction — Too much time passed before broadcast, or an RFQ signature expired. Discard the calldata and request a fresh partner quote.
- Insufficient allowance — Approve the quote’s
allowanceTarget, wait for confirmation, then request a new quote. - Insufficient balance — The wallet doesn’t have enough tokens to cover the swap amount plus gas.
What is the native token address?
What is the native token address?
Use
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to represent the chain’s native token (HYPE on HyperEVM). This is a convention shared across most DEX aggregators.Native tokens don’t need approval — skip the allowance check when swapping from HYPE.How fresh are token prices?
How fresh are token prices?
Prices in the token endpoints (
buyPriceUsd, sellPriceUsd) are refreshed every ~5 seconds from actual DEX pool reserves. For most use cases, polling every 15–30 seconds is sufficient.See the Price API guide for a polling pattern with local caching.Do I need to approve tokens every time I swap?
Do I need to approve tokens every time I swap?
No. The partner quote returns
INSUFFICIENT_ALLOWANCE only when action is
required and identifies the exact allowanceTarget. Prefer approving
sellAmount; a partner may deliberately choose a reusable allowance after its
own security review.What is the rate limit?
What is the rate limit?
Partner limits are assigned during onboarding. If you exceed your limit, the API returns HTTP 429.Tips to stay within limits:
- Debounce user input (400ms+) before fetching quotes
- Cache token lists — they don’t change frequently
- Use
GET /{chainId}/tokensto fetch all tokens in one call instead of individual lookups
Which chains are supported?
Which chains are supported?
AKKA currently supports Ethereum (chain ID 1), Arbitrum (chain ID 42161), HyperEVM (chain ID 999), Robinhood Chain (chain ID 4663), XDC Network (chain ID 50), Elysium (chain ID 99901) and BNB Chain (chain ID 56). Base is coming soon.
GET /partner/v1/chains returns the live list. See Supported Chains for native and wrapped-native token addresses.See Supported Chains for details.Which endpoint should I integrate?
Which endpoint should I integrate?
Use
GET /partner/v1/{chainId}/quote for every new wallet, router, bot, or aggregator integration. It returns exact pricing, validation, approval target, lifecycle metadata, and executable transaction data in one response.What are payer and recipient?
What are payer and recipient?
payer is required and identifies the wallet or executor contract that
supplies input tokens and sends the returned transaction. recipient receives
output and defaults to payer. AKKA uses the payer to perform balance,
allowance, gas, and simulation checks.Can I set a custom gas price?
Can I set a custom gas price?
The partner endpoint returns current fee fields. Submit
gasPrice for a
legacy response, or maxFeePerGas and maxPriorityFeePerGas for an EIP-1559
response. Do not submit both models.What is encodedTx in the swap response?
What is encodedTx in the swap response?
encodedTx is the full transaction tuple (from, to, data, value, gasPrice, gas) ABI-encoded as a hex string. It allows frontends to decode and execute the swap without needing the router contract ABI. On the partner quote its gas is simulation.gasLimit, the gas limit to send (also tx.gas, unless expected-gas reporting is enabled for your key).Most integrations use the tx object directly — encodedTx is an alternative for advanced use cases.How do I get an API key?
How do I get an API key?
Contact the AKKA team on Telegram to request an
API key. The key is passed as an
apikey header on every request.Can I use AKKA for limit orders or DCA?
Can I use AKKA for limit orders or DCA?
The API provides instant swap execution, not scheduled orders. However, you can build limit orders or DCA on top of the API:
- Limit orders: Request partner quotes at a rate agreed during onboarding. When the rate is reached, obtain a fresh executable quote immediately before execution.
- DCA (Dollar Cost Averaging): Run a cron job or interval that executes a fixed swap at regular intervals.
What pool types does AKKA aggregate?
What pool types does AKKA aggregate?
AKKA indexes liquidity from 20+ DEX pool types on HyperEVM, including Uniswap V2/V3 forks, Algebra, Curve, Balancer, and more. The pathfinder algorithm evaluates all pools to find the optimal route — including splitting across multiple pools when that gives a better rate.Use
/dex-compare to see how the aggregated rate compares to individual DEX pools.