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

# Approve

> Obtain the tx data for a approving tokens for zap



## OpenAPI

````yaml post /approve
openapi: 3.0.3
info:
  title: '@soulsolidity/soul-zap-api'
  version: 1.0.0-beta.0
servers:
  - url: http://localhost:3000
security: []
paths:
  /approve:
    post:
      description: Obtain the tx data for a approving tokens for zap
      operationId: approve
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                chain:
                  type: string
                  enum:
                    - eth
                    - bnb
                    - pol
                    - arb
                    - lna
                token:
                  type: string
                amount:
                  type: string
              required:
                - chain
                - token
                - amount
              additionalProperties: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  chain:
                    type: string
                  token:
                    type: string
                  amount:
                    type: string
                  tokenManager:
                    type: string
                  txData:
                    type: object
                    properties:
                      to:
                        type: string
                      data:
                        type: string
                      from:
                        type: string
                    required:
                      - to
                      - data
                    additionalProperties: false
                required:
                  - chain
                  - token
                  - amount
                  - tokenManager
                  - txData
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false

````