> ## 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 Gateway Wallet

> Add an existing wallet to Gateway using its private key.
Gateway handles encryption and storage internally.

Args:
    wallet_credential: Wallet credentials (chain, private_key, and optional set_default)

Returns:
    Wallet information from Gateway including address

Raises:
    HTTPException: 503 if Gateway unavailable, 400 on validation error



## OpenAPI

````yaml /api-reference/openapi.json post /accounts/gateway/add-wallet
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:
  /accounts/gateway/add-wallet:
    post:
      tags:
        - Accounts
      summary: Add Gateway Wallet
      description: |-
        Add an existing wallet to Gateway using its private key.
        Gateway handles encryption and storage internally.

        Args:
            wallet_credential: Wallet credentials (chain, private_key, and optional set_default)

        Returns:
            Wallet information from Gateway including address

        Raises:
            HTTPException: 503 if Gateway unavailable, 400 on validation error
      operationId: add_gateway_wallet_accounts_gateway_add_wallet_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GatewayWalletCredential'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    GatewayWalletCredential:
      properties:
        chain:
          type: string
          title: Chain
          description: Blockchain chain (e.g., 'solana', 'ethereum')
        private_key:
          type: string
          title: Private Key
          description: Wallet private key
        set_default:
          type: boolean
          title: Set Default
          description: Set as default wallet for this chain
          default: true
      type: object
      required:
        - chain
        - private_key
      title: GatewayWalletCredential
      description: Credentials for adding an existing wallet 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

````