curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/salvage \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
"{\n \"senderAddress\": \"BLOCKRADAR_CHILD_ADDRESS\",\n \"recipientAddress\": \"RECIPIENT_ADDERESS\",\n \"tokenAddress\": \"TOKEN_ADDRESS\",\n \"amount\": \"AMOUNT_TO_SEND\",\n \"blockchainId\": \"BLOCKCHAIN_ID\",\n \"rpcUrl\": \"RPC_URL\",\n \"isL2\": true // optional\n}"
'{
"message": "Salvage asset initiated successfully",
"statusCode": 200
}Initiates the transfer of assets (native coins or tokens) from a specified sender address to a recipient address within the same wallet ecosystem.
| Key | Required | Type | Description |
|---|---|---|---|
| senderAddress | true | string | The address you’re recovering assets from |
| recipientAddress | true | string | The address the recovering assets will be sent to |
| amount | true | string | The amount to be salvaged. |
| tokenAddress | false | string | Specify this for token salvage |
| blockchainId | true | string | The blockchain id you’re recovering funds from |
| rpcUrl | false | string | Specify this for assets on an unsupported blockchain |
| isL2 | false | boolean | Specify this if RPC url points to a Layer 2 blockchain |
curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/salvage \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
"{\n \"senderAddress\": \"BLOCKRADAR_CHILD_ADDRESS\",\n \"recipientAddress\": \"RECIPIENT_ADDERESS\",\n \"tokenAddress\": \"TOKEN_ADDRESS\",\n \"amount\": \"AMOUNT_TO_SEND\",\n \"blockchainId\": \"BLOCKCHAIN_ID\",\n \"rpcUrl\": \"RPC_URL\",\n \"isL2\": true // optional\n}"
'{
"message": "Salvage asset initiated successfully",
"statusCode": 200
}"WALLET_ID"