curl --request PATCH \
--url https://api.onswitch.xyz/wallet/{wallet_id} \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"callback_url": "https://your-app.com/webhook"
}
'{
"success": true,
"message": "Wallet updated successfully",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"id": "699a6555fd4cab59e6175f79",
"name": "My Wallet",
"address": {
"Base": "0x1234567890123456789012345678901234567890",
"Solana": "..."
},
"callback_url": "https://your-app.com/webhook"
}
}Update wallet details (e.g. callback URL for wallet notifications).
curl --request PATCH \
--url https://api.onswitch.xyz/wallet/{wallet_id} \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"callback_url": "https://your-app.com/webhook"
}
'{
"success": true,
"message": "Wallet updated successfully",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"id": "699a6555fd4cab59e6175f79",
"name": "My Wallet",
"address": {
"Base": "0x1234567890123456789012345678901234567890",
"Solana": "..."
},
"callback_url": "https://your-app.com/webhook"
}
}Service key for API authentication
Unique identifier for the wallet
^[a-f0-9]{24}$Webhook URL to receive wallet notifications.