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

# Add Network Token

> Add a custom token to Gateway's token list for a specific network.

Args:
    network_id: Network ID in format 'chain-network' (e.g., 'solana-mainnet-beta', 'ethereum-mainnet')
    token_request: Token details (address, symbol, name, decimals)

Example: POST /gateway/networks/ethereum-mainnet/tokens
{
    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "symbol": "USDC",
    "name": "USD Coin",
    "decimals": 6
}

Note: After adding a token, restart Gateway for changes to take effect.



## OpenAPI

````yaml /api-reference/openapi.json post /gateway/networks/{network_id}/tokens
openapi: 3.1.0
info:
  title: Hummingbot API
  description: API for managing Hummingbot trading instances
  version: 1.0.1
servers:
  - url: http://localhost:8000
    description: Local development server
security: []
paths:
  /gateway/networks/{network_id}/tokens:
    post:
      tags:
        - Gateway
      summary: Add Network Token
      description: |-
        Add a custom token to Gateway's token list for a specific network.

        Args:
            network_id: Network ID in format 'chain-network' (e.g., 'solana-mainnet-beta', 'ethereum-mainnet')
            token_request: Token details (address, symbol, name, decimals)

        Example: POST /gateway/networks/ethereum-mainnet/tokens
        {
            "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "symbol": "USDC",
            "name": "USD Coin",
            "decimals": 6
        }

        Note: After adding a token, restart Gateway for changes to take effect.
      operationId: add_network_token_gateway_networks__network_id__tokens_post
      parameters:
        - name: network_id
          in: path
          required: true
          schema:
            type: string
            title: Network Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddTokenRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Add Network Token Gateway Networks  Network Id 
                  Tokens Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    AddTokenRequest:
      properties:
        address:
          type: string
          title: Address
          description: Token contract address
        symbol:
          type: string
          title: Symbol
          description: Token symbol
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Token name (defaults to symbol)
        decimals:
          type: integer
          title: Decimals
          description: Number of decimals for the token
      type: object
      required:
        - address
        - symbol
        - decimals
      title: AddTokenRequest
      description: Request to add a custom token to Gateway
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic

````