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

# List active currencies for a network



## OpenAPI

````yaml /OPENAPI.yaml get /api/networks/{network_id}/currencies
openapi: 3.0.3
info:
  title: Redf Backend API
  version: 1.0.0
  description: >
    OpenAPI specification for the current HTTP backend exposed by the Phoenix
    router. The spec reflects the routes and controller behaviour currently
    implemented in `blockchain_app/lib/blockchain_app_web/router.ex`.
servers:
  - url: http://localhost:4000
    description: Local development
security: []
tags:
  - name: Health
  - name: Networks
  - name: Projects
  - name: Transactions
  - name: Widgets
paths:
  /api/networks/{network_id}/currencies:
    get:
      tags:
        - Networks
      summary: List active currencies for a network
      operationId: listCurrenciesByNetwork
      parameters:
        - $ref: '#/components/parameters/NetworkId'
      responses:
        '200':
          description: Active currencies for the selected network
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - network
                  - currencies
                properties:
                  status:
                    type: string
                    enum:
                      - ok
                  network:
                    $ref: '#/components/schemas/Network'
                  currencies:
                    type: array
                    items:
                      $ref: '#/components/schemas/Currency'
        '400':
          description: Invalid network id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Network not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    NetworkId:
      in: path
      name: network_id
      required: true
      schema:
        type: integer
        minimum: 1
      description: Numeric network identifier
  schemas:
    Network:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: integer
          example: 1
        name:
          type: string
          example: TON
        testnet:
          type: boolean
          nullable: true
          example: true
    Currency:
      type: object
      required:
        - symbol
        - name
        - decimals
        - network_id
      properties:
        symbol:
          type: string
          example: TON
        name:
          type: string
          example: The Open Network
        decimals:
          type: integer
          minimum: 0
          maximum: 30
          example: 9
        contract_address:
          type: string
          nullable: true
          example: null
        network_id:
          type: integer
          example: 1
        is_active:
          type: boolean
          nullable: true
          example: true
    ErrorResponse:
      type: object
      description: >
        Generic error payload used by the API. Some handlers return `error`,
        while validation and internal checker failures may return only `errors`
        or `reason`.
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - error
        error:
          type: string
          example: invalid_request
        reason:
          type: string
          nullable: true
        detail:
          type: string
          nullable: true
        field:
          oneOf:
            - type: string
            - type: integer
          nullable: true
        currency:
          type: string
          nullable: true
        missing:
          type: array
          items:
            type: string
        errors:
          $ref: '#/components/schemas/ValidationErrors'
        message:
          type: string
          nullable: true
        constraint:
          type: string
          nullable: true
        tx_status:
          type: string
          nullable: true
        project_uid:
          type: string
          nullable: true
        widget_id:
          oneOf:
            - type: string
            - type: integer
          nullable: true
        expected:
          type: object
          additionalProperties: true
      additionalProperties: true
    ValidationErrors:
      type: object
      description: Map of field names to validation error messages
      additionalProperties:
        type: array
        items:
          type: string

````