Skip to main content
POST
/
accounts
/
gateway
/
add-wallet
Add Gateway Wallet
curl --request POST \
  --url http://localhost:8000/accounts/gateway/add-wallet \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chain": "<string>",
  "private_key": "<string>",
  "set_default": true
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

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
default:true

Set as default wallet for this chain

Response

Successful Response