---
title: "Add Gateway Wallet"
method: POST
path: "/accounts/gateway/add-wallet"
tags: ["Accounts"]
---

# Add Gateway Wallet

`POST /accounts/gateway/add-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

## Request body

- GatewayWalletCredential — Credentials for adding an existing wallet to Gateway
  - `chain` string, required — Blockchain chain (e.g., 'solana', 'ethereum')
  - `private_key` string, required — Wallet private key
  - `set_default` boolean — Set as default wallet for this chain

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/hummingbot/apis/hummingbot-api.md) · [All operations](https://skmtc.net/hummingbot/apis/hummingbot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hummingbot/hummingbot-api/revisions/5347fe79537f/schema)
