Okay, now I understand.
You sent LTC to an address generated from a bitcoin wallet (bitcoin Address)
Litecoin and bitcoin have the same address scheme so the transaction went through.
You say you can cancel it using a key, that should be the private key.
(It should start with 5, K or L)
Download Electrum-LTC from here:
https://electrum-ltc.orgInstall it, then you can import the private key for the bitcoin Address starting with 3 into it and access your Litecoins.
When you install Electrum-LTC, open it, when it asks what kind of wallet you want to create select "import Litecoin Address or private keys" and click next
Then paste your private key into the field that appears and select next
Then the address starting with 3 should show, and you can now spend your Litecoin.
Litecoin won't accept a private key generated by bitcoin. As far I remember, they are not using the same prefix, and my tests are agreeing with me:
$ bitcoin-cli getnewaddress "" "p2sh-segwit"
3FKscuaFXRMArBU16qmg1CiJRisXHehL1P
$ bitcoin-cli dumpprivkey 3FKscuaFXRMArBU16qmg1CiJRisXHehL1P
Ky3tnCMTn22dim4PePucHT4k1oAVo1s1SQ5A5QBMdNABmbAT3Q2g
$ /opt/litecoin/bin/litecoin-cli importprivkey Ky3tnCMTn22dim4PePucHT4k1oAVo1s1SQ5A5QBMdNABmbAT3Q2g
error code: -5
error message:
Invalid private key encoding
Please note that litecoin recently changed their segwit address from a '3' prefix to a 'M' prefix. They remains compatible. You'll find a converter online
hereMy 3FKscuaFXRMArBU16qmg1CiJRisXHehL1P address is
MMY1vnzDUYCbegjuCim1pqxhkRTyMj5ERV using it.
It will be required to convert it to a litecoin address.
To achieve this,
bitcoin-tool will really help:
$ ./bitcoin-tool --input-type private-key-wif --input-format base58check --input Ky3tnCMTn22dim4PePucHT4k1oAVo1s1SQ5A5QBMdNABmbAT3Q2g --output-type private-key --output-format hex
369fd82e91a07ea17aa4af14e202c4bea4d2370d7f9b67f7d702dd893b783c3f
$ ./bitcoin-tool --network litecoin --input-type private-key --input-format hex --input 369fd82e91a07ea17aa4af14e202c4bea4d2370d7f9b67f7d702dd893b783c3f --public-key-compression compressed --output-type private-key-wif --output-format base58check
T4tADweeBQ1EVbhGC2rUVoc7xeoos6suFbyQwCouCLLMHUk8EBVk
This will be the importable key. You'll be able to import it in litcoin, using litecoin core or electrum ltc.
$ /opt/litecoin/bin/litecoin-cli importprivkey T4tADweeBQ1EVbhGC2rUVoc7xeoos6suFbyQwCouCLLMHUk8EBVk "" false
$ /opt/litecoin/bin/litecoin-cli getaddressesbyaccount ""
[
"LUY9d4NHM97NE4QWGrncko9uY5xrv7PRgH"
}
$ /opt/litecoin/bin/litecoin-cli dumpprivkey LUY9d4NHM97NE4QWGrncko9uY5xrv7PRgH
T4tADweeBQ1EVbhGC2rUVoc7xeoos6suFbyQwCouCLLMHUk8EBVk
Okay, key was imported, but we have a legacy address. We need the p2sh-segwit one. Just use the "addwitnessaddress" command:
$ /opt/litecoin/bin/litecoin-cli addwitnessaddress "LUY9d4NHM97NE4QWGrncko9uY5xrv7PRgH"
MMY1vnzDUYCbegjuCim1pqxhkRTyMj5ERV
Hey! That the same address I got earlier !
You should find your coins back with this method. Have fun!
Also, I tried a lot with electrum-ltc, and it doesn't to do the same.
Wow this is a complete package of tutorial,how accurately explained every single details..
Ive been in the same situation as what op asked year ago,but didn't know what to do since i was just new then and forgot about everything..
But now with this i will try to recover what ive lost before..
Thanks Mate Your the one...