Skip to main content
AKKA’s partner API returns an exact-input quote, validation results, approval target, and ready-to-broadcast transaction in one call. This is the recommended flow for every new integration.
The shared basic-test-key below is only for evaluation. Keep a dedicated production apikey on a backend. Browser and mobile clients should call your own authenticated API route, which then calls AKKA.

Prerequisites

  • The shared basic-test-key for evaluation, or a dedicated partner key for production (request one)
  • A wallet with HYPE and gas on HyperEVM (chainId=999)
  • viem installed in your server-side project
1

Request an executable quote

Supply the address that pays for and sends the transaction as payer. recipient receives the output and can be a different address.
The response includes buyAmount, minAmountOut, issues, validation, allowanceTarget, quote expiry, simulation status, and tx.
2

Resolve validation issues

A 200 response may contain actionable issues. Native input requires no approval. For ERC-20 input, approve allowanceTarget when the response contains INSUFFICIENT_ALLOWANCE.
Do not broadcast while any validation check is UNKNOWN; verify it through your own RPC first.
3

Check freshness and submit

Execute immediately. Refresh if the current time is at or past expiresAt, or if simulation is not SUCCESS and your own simulation fails.
Never edit tx.to, tx.data, or tx.value, and never reuse executable calldata.
4

Report the outcome

Outcome reporting is best-effort telemetry and helps AKKA identify route health problems.

Next steps

Complete TypeScript Example

Copy a complete server-side viem implementation.

Partner Quote Reference

Explore the complete request and response contract.