⚙️Swagger
API Playground
You can also find AKKA API swagger directly here :
Using AKKA APIs, you can find the best route to exchange assets and make the exchange.
Find the best quote to exchange tokens via AKKA router. Returns expected output amount and optional token/protocol information.
Blockchain chain ID (999=HyperEVM, 1116=Core, 50=XDC, 223=B2, 200901=Bitlayer, 4200=Merlin, 60808=BOB)
999
Source token contract address (use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee for native token)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Destination token contract address
0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb
Amount to swap in wei (smallest unit)
1000000000000000000
Include detailed token information in response
false
Example: false
Network price per gas in wei
Gas limit for the transaction
Include approximated gas in response
false
Example: false
Quote retrieved successfully
Bad request - invalid parameters, token not found, or no route available
Too many requests - rate limit exceeded
Internal server error
GET /swap/v1/{chain}/quote?src=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&dst=0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb&amount=1000000000000000000 HTTP/1.1
Host: api.akka.finance
Accept: */*
{
"dstAmount": "205340622987446484992",
"srcToken": {
"address": "text",
"symbol": "text",
"name": "text",
"decimals": 1,
"logoUri": "text"
},
"dstToken": {
"address": "text",
"symbol": "text",
"name": "text",
"decimals": 1,
"logoUri": "text"
},
"gas": 2419157
}
Generate complete transaction data for executing a token swap via AKKA router. Includes balance and allowance validation.
Blockchain chain ID (999=HyperEVM, 1116=Core, 50=XDC, 223=B2, 200901=Bitlayer, 4200=Merlin, 60808=BOB)
999
Source token contract address (use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee for native token)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Destination token contract address
0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb
Amount to swap in wei (smallest unit)
1000000000000000000
The address that calls the AKKA contract
0xD3C0F471488523b378F2D9C21939c97300c510F5
An EOA address that initiates the transaction
0xD3C0F471488523b378F2D9C21939c97300c510F5
Maximum acceptable slippage percentage (min: 0; max: 50)
1
Network price per gas in wei
Gas limit for the transaction
Return srcToken and dstToken info in response
false
Example: false
Return approximated gas in response
false
Example: false
Swap transaction data generated successfully
Bad request - insufficient balance/allowance, invalid parameters, or no route found
Too many requests - rate limit exceeded
Internal server error
GET /swap/v1/{chain}/swap?src=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&dst=0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb&amount=1000000000000000000&from=0xD3C0F471488523b378F2D9C21939c97300c510F5&origin=0xD3C0F471488523b378F2D9C21939c97300c510F5&slippage=1 HTTP/1.1
Host: api.akka.finance
Accept: */*
{
"dstAmount": "12723902882990271",
"srcToken": {
"address": "text",
"symbol": "text",
"name": "text",
"decimals": 1,
"logoUri": "text"
},
"dstToken": {
"address": "text",
"symbol": "text",
"name": "text",
"decimals": 1,
"logoUri": "text"
},
"gas": 231973,
"tx": {
"from": "text",
"to": "text",
"data": "text",
"value": "text",
"gasPrice": "text",
"gas": 1
}
}
Returns the AKKA smart contract address that should be approved as a spender for token swaps on the specified chain.
Blockchain chain ID (999=HyperEVM, 1116=Core, 50=XDC, 223=B2, 200901=Bitlayer, 4200=Merlin, 60808=BOB)
999
Spender address retrieved successfully
Bad request - invalid chain ID
Too many requests - rate limit exceeded
Internal server error
GET /swap/v1/{chain}/approve/spender HTTP/1.1
Host: api.akka.finance
Accept: */*
{
"address": "0x7C5Af181D9e9e91B15660830B52f7B7076Be0d64"
}
Generate transaction data to approve the AKKA Router to spend tokens. Returns the encoded transaction data that needs to be signed and sent by the user.
Blockchain chain ID (999=HyperEVM, 1116=Core, 50=XDC, 223=B2, 200901=Bitlayer, 4200=Merlin, 60808=BOB)
999
Token address you want to approve for swapping
0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb
The number of tokens that the AKKA Router is allowed to swap. If not specified, it will be allowed to spend an infinite amount of tokens.
100000000000
Approve transaction data generated successfully
Bad request - invalid parameters
Too many requests - rate limit exceeded
Internal server error
GET /swap/v1/{chain}/approve/transaction?tokenAddress=0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb HTTP/1.1
Host: api.akka.finance
Accept: */*
{
"data": "0x095ea7b3000000000000000000000000111111125421ca6dc452d289314280a0f8842a65000000000000000000000000000000000000000000000000000000174876e800",
"gasPrice": "100000000",
"to": "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb",
"value": "0"
}
Get the number of tokens that the AKKA Router is allowed to spend on behalf of a wallet address.
Blockchain chain ID (999=HyperEVM, 1116=Core, 50=XDC, 223=B2, 200901=Bitlayer, 4200=Merlin, 60808=BOB)
999
Token address to check allowance for
0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb
Wallet address to check the allowance for
0xD3C0F471488523b378F2D9C21939c97300c510F5
Allowance retrieved successfully
Bad request - invalid parameters
Too many requests - rate limit exceeded
Internal server error
GET /swap/v1/{chain}/approve/allowance?tokenAddress=0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb&walletAddress=0xD3C0F471488523b378F2D9C21939c97300c510F5 HTTP/1.1
Host: api.akka.finance
Accept: */*
{
"allowance": "0"
}
Retrieve a paginated list of tokens available for swap in the AKKA Finance ecosystem. Supports filtering by limit and page parameters for efficient data retrieval. Returns comprehensive token information including metadata, pricing, and verification status.
Blockchain network identifier (999=HyperEVM, 1116=Core, 50=XDC, 223=B2, 200901=Bitlayer, 4200=Merlin, 60808=BOB)
999
Page number for pagination (0-based)
Number of tokens to return per page
Successfully retrieved paginated token list with comprehensive metadata including symbols, addresses, decimals, logos, and verification status
Invalid chain ID: must be a valid supported blockchain network identifier
Internal server error while fetching tokens
GET /{chainId}/tokens HTTP/1.1
Host: api.akka.finance
Accept: */*
{
"tokens": {
"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984": {
"symbol": "UNI",
"name": "Uniswap",
"decimals": 18,
"address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
"logoURI": "https://tokens.1inch.io/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984.png",
"tags": [
"defi"
],
"verified": true
}
}
}
Retrieve detailed information about a specific token using its smart contract address. Returns comprehensive token data including symbol, name, decimals, logo URI, verification status, and trading metadata.
Blockchain network identifier (999=HyperEVM, 1116=Core, 50=XDC, 223=B2, 200901=Bitlayer, 4200=Merlin, 60808=BOB)
999
Smart contract address of the token (checksummed EVM address format)
0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb
Successfully retrieved detailed token information including metadata and trading data
Invalid parameters: chain ID must be supported and token address must be a valid checksummed address
Token not found
Internal server error occurred while fetching token information from database or external sources
GET /{chainId}/tokens/{address} HTTP/1.1
Host: api.akka.finance
Accept: */*
{
"symbol": "UNI",
"name": "Uniswap",
"decimals": 18,
"address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
"logoURI": "https://tokens.1inch.io/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984.png",
"tags": [
"defi"
],
"verified": true
}
Check the health status of the API, database, Redis cache, and external APIs
The Health Check is successful
The Health Check is not successful
GET /health HTTP/1.1
Host: api.akka.finance
Accept: */*
{
"status": "ok",
"info": {
"database": {
"status": "up"
}
},
"error": {},
"details": {
"database": {
"status": "up"
}
}
}
Last updated