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."
}
}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": "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."
}
}Service key for API authentication
Unique identifier for the wallet
^[a-f0-9]{24}$