Accounts

Add Gateway Wallet

Changed on

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

post/accounts/gateway/add-wallet

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/accounts/gateway/add-wallet
  • Auth
    HTTP basic

Request body

chainstring required

Blockchain chain (e.g., 'solana', 'ethereum')

private_keystring required

Wallet private key

set_defaultboolean

Set as default wallet for this chain

Response

Successful Response

unknown required

Changes

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the response's body type changed from object to no type for status