Skip to main content
POST
/
wallet
/
rescue
Rescue token
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.

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}$
blockchain
enum<string>
required

Blockchain where the token is held

Available options:
BASE,
ETHEREUM,
SOLANA,
POLYGON,
BSC,
ARBITRUM,
OPTIMISM,
AVALANCHE,
MONAD,
GNOSIS,
PLASMA
token_address
string
required

Token contract address (EVM 0x... or Solana base58)

recipient
string
required

Recipient wallet address (format must match blockchain)

Response

Token rescue initiated successfully

success
boolean
required

Whether the rescue request was accepted