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": "68d4f2a91eb37c15b8e3a4f7"
}
'
{
  "success": true,
  "message": "Wallet exported successfully",
  "timestamp": "2026-04-18T14:22:08.631Z",
  "data": {
    "name": "My Wallet",
    "private_key": "0xd4c19f2e8a91b06357cef3049821ea47dc33a09ef12c8456f8ab2d9e0c7e51a3",
    "note": "Do not share your private key. This key grants full control of your account."
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.onswitch.xyz/llms.txt

Use this file to discover all available pages before exploring further.

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