litecoin-project / litecoin

Litecoin source tree
http://www.litecoin.org
MIT License
4.38k stars 3.03k forks source link

How can I understand that a deposit came from mweb address using litecoin rpc? #949

Open IvanKodak opened 8 months ago

IvanKodak commented 8 months ago

My main goal is to understand that the deposit transaction to my address in Litecoin Core came from mweb address, how can I do it through Litecoin Core RPC? I didn't find any notes about it in documentation

When I made such transaction, listsinceblock returned me 2 transactions:

{
  "transactions": [
    {
      "involvesWatchonly": true,
      "address": "tltc1q0l48q8wm5n6fv4ulzpem8cqvv3syr2trcqsm9z",
      "category": "hogex",
      "amount": 0.00055100,
      "label": "",
      "vout": 1,
      "confirmations": 29,
      "blockhash": "87a4df83ca200f238a443c2958d1688974b3db73f4d6ae616eb3403b22a9e6ec",
      "blockheight": 3195532,
      "blockindex": 4,
      "blocktime": 1710782368,
      "txid": "f6e0b93d0ca80b03acc0de0966f94f5b54aeb99a524f8b05aba610dccc8355dc",
      "walletconflicts": [
      ],
      "time": 1710782368,
      "timereceived": 1710782400,
      "bip125-replaceable": "no"
    },
    {
      "involvesWatchonly": true,
      "address": "tltc1q0l48q8wm5n6fv4ulzpem8cqvv3syr2trcqsm9z",
      "category": "receive",
      "amount": 0.00055100,
      "label": "",
      "mweb_out": "0000000000000000000000000000000000000000000000000000000000000000",
      "confirmations": 29,
      "blockhash": "87a4df83ca200f238a443c2958d1688974b3db73f4d6ae616eb3403b22a9e6ec",
      "blockheight": 3195532,
      "blockindex": 0,
      "blocktime": 1710782368,
      "txid": "79867cc48acf8e790153b7cfee125cc8848b3ee7999bf3190dc55a05a8f753df",
      "walletconflicts": [
      ],
      "time": 1710782211,
      "timereceived": 1710782211,
      "bip125-replaceable": "no"
    }
  ],
  "removed": [
  ],
  "lastblock": "d0582ef65bd2ecf03e2d556f077a4f067d77290b2a39011206bde3cd62b34fd2"
}

Who can explain to me pls, why I got 2 transactions?

Thanks for your help!

DmytroShalaiev commented 8 months ago

Have same question

losh11 commented 7 months ago

Are you saying that you received coins from an MWEB address to a bech32 address?

DmytroShalaiev commented 7 months ago

Yes

Are you saying that you received coins from an MWEB address to a bech32 address?