Skip to main content
POST
/
wallet
/
export
Export wallet
curl --request POST \
  --url https://api.onswitch.xyz/wallet/export \
  --header 'Content-Type: application/json' \
  --header 'x-service-key: <api-key>' \
  --data '
{
  "wallet_id": "699a6555fd4cab59e6175f79"
}
'
{
  "success": true,
  "message": "Wallet exported successfully",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "name": "My Wallet",
    "private_key": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
    "note": "Do not share your private key. This key grants full control of your account."
  }
}

Authorizations

x-service-key
string
header
required

Service key for API authentication

Body

application/json
wallet_id
string
required

Unique identifier for the wallet

Pattern: ^[a-f0-9]{24}$

Response

Wallet exported successfully

success
boolean
required
message
string
required
timestamp
string<date-time>
required
data
object
required