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

# Get Token Info

> Retrieves the ERC20 token info by any of its identifiers.



## OpenAPI

````yaml get /erc20/{id}
openapi: 3.0.1
info:
  title: TrustOS EVM Token API
  description: >-
    TrustOS EVM Token API is used to interact with TrustOS database. In case you
    have some questions or need more about the use of this API, don't hesitate
    to contact B-Team:
  contact:
    name: Blockchain Team
    email: soporte-bteam@telefonica.com
  version: 0.2.0-rc.32
servers:
  - url: https://lab.trustos.telefonicatech.com/track/v2
    description: Lab
security: []
tags:
  - name: ERC-20
    description: ERC-20 Token Endpoints.
  - name: ERC-721
    description: Non-Fungible Token Endpoints.
  - name: Utils
    description: Methods for specific use cases.
paths:
  /erc20/{id}:
    get:
      tags:
        - ERC-20
      summary: Get ERC20 Token Info
      parameters:
        - name: networkId
          in: query
          description: Network identifier where the token contract was deployed.
          required: true
          schema:
            type: number
            example: 10004
        - name: id
          in: path
          description: Token address or symbol.
          required: true
          schema:
            type: string
            example: '0xabcdef'
      responses:
        '200':
          $ref: '#/components/responses/200-TokenInfoRetrieved'
        '400':
          $ref: '#/components/responses/400-ValidationError'
        '401':
          $ref: '#/components/responses/401-AuthenticationError'
        '403':
          $ref: '#/components/responses/403-ForbiddenError'
        '404':
          $ref: '#/components/responses/404-NotFoundError'
        '500':
          $ref: '#/components/responses/500-InternalServerError'
        '503':
          $ref: '#/components/responses/503-ServiceUnavailable'
      security:
        - bearerAuth: []
components:
  responses:
    200-TokenInfoRetrieved:
      description: Token info retrieved successfully.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 200
              message:
                type: string
                description: Message returned by the request.
                example: Healthcheck
              data:
                type: object
                description: Data returned by the request.
                properties:
                  type:
                    type: string
                    description: Type of token.
                    example: ERC20
                  deployer:
                    type: string
                    description: The user who deployed the token.
                    example: did:user:<id>
                  data:
                    type: object
                    description: Data of the deployed token.
                    properties:
                      contractAddress:
                        type: string
                        description: Address where the token contract was deployed.
                        example: '0xebF01265FcE347EE2161f37e49416d947C7a9590'
                      name:
                        type: string
                        description: Token name.
                        example: MyToken
                      symbol:
                        type: string
                        description: Token symbol.
                        example: MTK
                      burnAddress:
                        type: string
                        description: Address where the tokens will be sent to be burned.
                        example: '0xabcdef'
                      networkId:
                        type: number
                        description: >-
                          Network identifier where the token contract was
                          deployed.
                        example: 10004
                  totalSupply:
                    type: number
                    description: The totalSupply set in the token deployment.
                    example: 2000
                  balance:
                    type: number
                    description: Amount of tokens the user who calls this endpoint has.
                    example: 2000
    400-ValidationError:
      description: Validation error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 400
              type:
                type: string
                description: Error type.
                example: Validation Error
              message:
                type: string
                description: Message returned by the request.
                example: Request parameters are wrong, check requirements
              errors:
                type: array
                description: All the validation errors encountered in the request.
                items:
                  type: object
                  properties:
                    field:
                      type: string
                      description: Name of the field.
                      example: ''
                    error:
                      type: string
                      description: Description of the error encountered.
                      example: ''
    401-AuthenticationError:
      description: Authentication error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 401
              type:
                type: string
                description: Error type.
                example: Authentication Error
              message:
                type: string
                description: Message returned by the request.
                enum:
                  - Token is invalid
                  - Token is expired
                  - Token is not provided
    403-ForbiddenError:
      description: Forbidden error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 403
              type:
                type: string
                description: Error type.
                example: Forbidden Error
              message:
                type: string
                description: Message returned by the request.
                example: >-
                  Provider not available in your plan. Please, contact B-Team to
                  include it
    404-NotFoundError:
      description: Not found error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 404
              type:
                type: string
                description: Error type.
                example: Not Found Error
              message:
                type: string
                description: Message returned by the request.
                example: Token with the requested id not found
    500-InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 500
              type:
                type: string
                description: Error type.
                example: Internal Server Error
              message:
                type: string
                description: Message returned by the request.
                example: Opps! Something went wrong!
    503-ServiceUnavailable:
      description: Service unavailable error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 503
              type:
                type: string
                description: Error type.
                example: Service Unavailable Error
              message:
                type: string
                description: Message returned by the request.
                example: Service temporarily unavailable, please try again later
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````