> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akka.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Spender Address

> Returns the AKKA router smart contract address that needs to be approved as a token spender before executing swaps. You must approve this address to spend your tokens before calling the swap endpoint.

<Info>
  This returns the AKKA Router contract address. You must approve this address to spend your ERC-20 tokens before calling the [swap endpoint](/api-reference/get-swap).
</Info>

Native token swaps (e.g., HYPE on HyperEVM) do **not** require approval.


## OpenAPI

````yaml GET /swap/v1/{chainId}/approve/spender
openapi: 3.0.3
info:
  title: AKKA Finance API
  version: 1.0.0
  description: >-
    AKKA Finance liquidity aggregation API. Find the best swap routes across
    multiple DEXes and execute token swaps with optimal pricing.
  contact:
    name: AKKA Finance
    url: https://akka.finance
    email: support@akka.finance
servers:
  - url: https://api.akka.finance
    description: Production
security:
  - apiKey: []
paths:
  /swap/v1/{chainId}/approve/spender:
    get:
      tags:
        - Approvals
      summary: Get spender contract address
      description: >-
        Returns the AKKA router smart contract address that needs to be approved
        as a token spender before executing swaps. You must approve this address
        to spend your tokens before calling the swap endpoint.
      operationId: getSpender
      parameters:
        - name: chainId
          in: path
          required: true
          description: Blockchain chain ID
          schema:
            type: integer
            enum:
              - 999
            example: 999
      responses:
        '200':
          description: Spender address retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpenderAddressResponse'
              example:
                address: '0xcce7452db4392b40aa0e1592a7c486e13bf69654'
        '404':
          description: No spender contract found for the specified chain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SpenderAddressResponse:
      type: object
      required:
        - address
      properties:
        address:
          type: string
          description: The AKKA Router smart contract address to approve as spender
          example: '0xcce7452db4392b40aa0e1592a7c486e13bf69654'
    ErrorResponse:
      type: object
      required:
        - statusCode
        - message
        - error
        - timestamp
        - path
      properties:
        statusCode:
          type: integer
          description: HTTP status code
          example: 400
        message:
          type: string
          description: Human-readable error description
          example: No route found for the given token pair
        error:
          type: string
          description: Error type
          example: Bad Request
        timestamp:
          type: string
          format: date-time
          description: When the error occurred
          example: '2025-01-15T12:00:00.000Z'
        path:
          type: string
          description: API endpoint path that produced the error
          example: /swap/v1/999/quote
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: API key for authentication. Contact AKKA on Telegram to obtain your key.

````