curl --request POST \
--url https://api.onswitch.xyz/wallet/rescue \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"wallet_id": "68d4f2a91eb37c15b8e3a4f7",
"blockchain": "BASE",
"token_address": "0xe3cf8dbcbdc9b220ddead0bd6342e245daff934d",
"recipient": "0x2E1C4bD954853fe0dD025dCc74A9f5a67aad95f9"
}
'{
"success": true
}Transfer a specific token (by contract address) from the wallet to a recipient address. Use to recover tokens that are not part of the unified balance (e.g. unsupported or airdropped tokens). Supports EVM and Solana token addresses.
curl --request POST \
--url https://api.onswitch.xyz/wallet/rescue \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"wallet_id": "68d4f2a91eb37c15b8e3a4f7",
"blockchain": "BASE",
"token_address": "0xe3cf8dbcbdc9b220ddead0bd6342e245daff934d",
"recipient": "0x2E1C4bD954853fe0dD025dCc74A9f5a67aad95f9"
}
'{
"success": true
}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}$Blockchain where the token is held
BASE, ETHEREUM, SOLANA, POLYGON, BSC, ARBITRUM, OPTIMISM, AVALANCHE, MONAD, GNOSIS, PLASMA Token contract address (EVM 0x... or Solana base58)
Recipient wallet address (format must match blockchain)
Token rescue initiated successfully
Whether the rescue request was accepted