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."
}
}Export wallet private key. Use with caution; the private key grants full control of the 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.
Service key for API authentication
Unique identifier for the wallet
^[a-f0-9]{24}$