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

# Public chain + contract config

> Returns the active settlement chain id, RPC URL, USDC address, and LuxxonSettlement address. Use to drive client-side wallet flows without hardcoding addresses.



## OpenAPI

````yaml /openapi.json get /api/v1/config
openapi: 3.0.0
info:
  title: Luxxon API
  description: Programmable vision — on-demand live video feeds
  version: 0.1.0
  contact: {}
servers:
  - url: https://api.luxxon.dev/api/v1
security: []
tags:
  - name: Authentication
    description: SIWE wallet sign-in. Used by the dashboard; API-key callers skip this.
  - name: Me
    description: Identity self-introspection — wallet or API key.
  - name: Workspaces
    description: Tenant root. Coverage area, availability, members.
  - name: API keys
    description: Per-workspace scoped credentials (lxxn_*).
  - name: Pricing
    description: Live rate + optional pre-quoted rate lock.
  - name: Sessions
    description: 'Visual session lifecycle: request → dispatch → authorize → start → end.'
  - name: Wallet
    description: On-chain wallet state and event log for a workspace.
  - name: Settlements
    description: On-chain settlement view per session.
  - name: Health
    description: Proof-of-life. No auth.
  - name: Webhooks
    description: Inbound video events from Cloudflare Stream. Internal.
paths:
  /api/v1/config:
    get:
      tags:
        - Config
      summary: Public chain + contract config
      description: >-
        Returns the active settlement chain id, RPC URL, USDC address, and
        LuxxonSettlement address. Use to drive client-side wallet flows without
        hardcoding addresses.
      operationId: LxConfigController_get
      parameters: []
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/LxSuccessResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/LxConfigDto'
components:
  schemas:
    LxSuccessResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          example: 200
        message:
          type: string
          example: Request successful
        data:
          type: object
          description: Endpoint-specific payload. See the per-endpoint schema.
        timestamp:
          type: string
          example: '2026-05-13T12:00:00.000Z'
      required:
        - statusCode
        - message
        - data
        - timestamp
    LxConfigDto:
      type: object
      properties:
        environment:
          type: string
          example: TEST
          enum:
            - TEST
            - LIVE
          description: >-
            Active environment. TEST runs on Base Sepolia; LIVE on Base mainnet.
            Only one is active at a time per deploy.
        chainId:
          type: number
          example: 84532
          description: EVM chain id of the active settlement chain.
        chainName:
          type: string
          example: Base Sepolia
        rpcUrl:
          type: string
          example: https://sepolia.base.org
          description: Public RPC endpoint for the active chain.
        explorerUrl:
          type: string
          example: https://sepolia.basescan.org
          description: Block explorer base URL.
        usdcAddress:
          type: string
          example: '0x036CbD53842c5426634e7929541eC2318f3dCF7e'
          description: >-
            USDC ERC-20 contract on the active chain. 6 decimals — amounts are
            µUSDC integers.
        settlementAddress:
          type: string
          example: 0x...
          description: >-
            LuxxonSettlement contract address. Consumers approve USDC to this
            address before any session can settle.
      required:
        - environment
        - chainId
        - chainName
        - rpcUrl
        - explorerUrl
        - usdcAddress
        - settlementAddress

````