Why my bitcoin-qt records no such RPC “listtransactions” #22524

issue lpf763827726 openend this issue on July 22, 2021
  1. lpf763827726 commented at 4:18 am on July 22, 2021: none

    I back up the database in qt, then i try to use listtransactions "*" 500 0 search my all transactions (my transactions only about 50), but i can’t search 2 txid in listtransactions

    2021-07-22_12-06 2021-07-22_12-09

    Then i try to use gettransaction to search this two txid, i found it, but not any details

    2021-07-22_12-08 2021-07-22_12-13

    but i can check it in here and here

    These two txids are: 0d45dacc0e50066a55c13b54cdcd6e365bb90be3a492c55bf4200b01d02fd748 9e85595156e661a9748a52cd2fa6b3bd1e85a6bd6f4ba13c382db19baa8f2117

    What happen is this? Did I use the wrong RPC method?

  2. lpf763827726 commented at 4:22 am on July 22, 2021: none
    I use gettransaction check other txid it have details, and they are all show in listtransactions
  3. ghost commented at 5:24 am on July 22, 2021: none

    I back up the database in qt, then i try to use listtransactions “*” 500 0 search my all transactions (my transactions only about 50), but i can’t search 2 txid in listtransactions

    Not sure why you couldn’t find 2 transactions in it but I have explained few things about listtransactions in this answer: https://bitcoin.stackexchange.com/a/106127/

    Then i try to use gettransaction to search this two txid, i found it, but not any details. These two txids are: 0d45dacc0e50066a55c13b54cdcd6e365bb90be3a492c55bf4200b01d02fd748 9e85595156e661a9748a52cd2fa6b3bd1e85a6bd6f4ba13c382db19baa8f2117

    I have shared the steps which you can follow to get information about inputs and outputs for your transaction:

    0$ bitcoin-cli getrawtransaction 0d45dacc0e50066a55c13b54cdcd6e365bb90be3a492c55bf4200b01d02fd748
    
    00200000000010102a174af0e050d47ab0d97de5061c1ff63039af1057fc0831caa908b5d5f5bb00100000000ffffffff02e803000000000000160014cd2c4a02e161d15b5a403d5b5cdbdbd92971e2ec2823000000000000160014dc5f9f8d627ae1d05b749bff299276b01fe65bf40247304402206bd02dc89ef5f85f6e67221ab75a00761f659357bfad4cbc2438e647ac8fefd40220507fe9d99035b62fc27a3475070ebbbd0d4c3bee5617175dbcba03170eab44f20121022a652d8f4bd0533797f8ce53aa40563eacf32c2d0a7c0a184aadb7504d960e6900000000
    
    0$ bitcoin-cli decoderawtransaction 0200000000010102a174af0e050d47ab0d97de5061c1ff63039af1057fc0831caa908b5d5f5bb00100000000ffffffff02e803000000000000160014cd2c4a02e161d15b5a403d5b5cdbdbd92971e2ec2823000000000000160014dc5f9f8d627ae1d05b749bff299276b01fe65bf40247304402206bd02dc89ef5f85f6e67221ab75a00761f659357bfad4cbc2438e647ac8fefd40220507fe9d99035b62fc27a3475070ebbbd0d4c3bee5617175dbcba03170eab44f20121022a652d8f4bd0533797f8ce53aa40563eacf32c2d0a7c0a184aadb7504d960e6900000000
    
     0{
     1  "txid": "0d45dacc0e50066a55c13b54cdcd6e365bb90be3a492c55bf4200b01d02fd748",
     2  "hash": "0685132e0acb402814d26c9a67cb97658522bcd270658f748125155262abde08",
     3  "version": 2,
     4  "size": 222,
     5  "vsize": 141,
     6  "weight": 561,
     7  "locktime": 0,
     8  "vin": [
     9    {
    10      "txid": "b05b5f5d8b90aa1c83c07f05f19a0363ffc16150de970dab470d050eaf74a102",
    11      "vout": 1,
    12      "scriptSig": {
    13        "asm": "",
    14        "hex": ""
    15      },
    16      "txinwitness": [
    17        "304402206bd02dc89ef5f85f6e67221ab75a00761f659357bfad4cbc2438e647ac8fefd40220507fe9d99035b62fc27a3475070ebbbd0d4c3bee5617175dbcba03170eab44f201",
    18        "022a652d8f4bd0533797f8ce53aa40563eacf32c2d0a7c0a184aadb7504d960e69"
    19      ],
    20      "sequence": 4294967295
    21    }
    22  ],
    23  "vout": [
    24    {
    25      "value": 0.00001000,
    26      "n": 0,
    27      "scriptPubKey": {
    28        "asm": "0 cd2c4a02e161d15b5a403d5b5cdbdbd92971e2ec",
    29        "hex": "0014cd2c4a02e161d15b5a403d5b5cdbdbd92971e2ec",
    30        "address": "tb1qe5ky5qhpv8g4kkjq84d4ek7mmy5hrchvmcv90y",
    31        "type": "witness_v0_keyhash"
    32      }
    33    },
    34    {
    35      "value": 0.00009000,
    36      "n": 1,
    37      "scriptPubKey": {
    38        "asm": "0 dc5f9f8d627ae1d05b749bff299276b01fe65bf4",
    39        "hex": "0014dc5f9f8d627ae1d05b749bff299276b01fe65bf4",
    40        "address": "tb1qm30elrtz0tsaqkm5n0ljnynkkq07vkl5zfeuah",
    41        "type": "witness_v0_keyhash"
    42      }
    43    }
    44  ]
    45}
    

    So we have this information from the above result:

    Inputs Outputs
    “txid”: “b05b5f5d8b90aa1c83c07f05f19a0363ffc16150de970dab470d050eaf74a102”, “vout”: 1 tb1qe5ky5qhpv8g4kkjq84d4ek7mmy5hrchvmcv90y (0.00001000)
    tb1qm30elrtz0tsaqkm5n0ljnynkkq07vkl5zfeuah (0.00009000)

    To get more information about inputs, run the following commands:

    0$ bitcoin-cli getrawtransaction b05b5f5d8b90aa1c83c07f05f19a0363ffc16150de970dab470d050eaf74a102
    
    002000000000101de726d3e81ea2c3561dbd54d89e524bf697ef99869f89171b1c0e572ecfa7c5a0000000000ffffffff03204e000000000000160014cd2c4a02e161d15b5a403d5b5cdbdbd92971e2ec204e00000000000016001410d76e5811f766bf2767b439f29604e038ae199300000000000000001600149867e363621a530bc726d33cd076f914e8062fc20247304402203c34d2c3b5383026dba2b03d194ee8fe4c9d5e1e5bc63fedbe906f5b8066aa3c022063620470d11244d67cff605a3642b4569ccc1d918b2a9a949603947fb872c36e0121031c7a9f9443ff7e62c0685a31c24af4b810dbf09adbee6926db7d7d3b4b18a34b00000000
    
    0$ bitcoin-cli decoderawtransaction 02000000000101de726d3e81ea2c3561dbd54d89e524bf697ef99869f89171b1c0e572ecfa7c5a0000000000ffffffff03204e000000000000160014cd2c4a02e161d15b5a403d5b5cdbdbd92971e2ec204e00000000000016001410d76e5811f766bf2767b439f29604e038ae199300000000000000001600149867e363621a530bc726d33cd076f914e8062fc20247304402203c34d2c3b5383026dba2b03d194ee8fe4c9d5e1e5bc63fedbe906f5b8066aa3c022063620470d11244d67cff605a3642b4569ccc1d918b2a9a949603947fb872c36e0121031c7a9f9443ff7e62c0685a31c24af4b810dbf09adbee6926db7d7d3b4b18a34b00000000
    

    Check vout:1 in this transaction below:

     0{
     1  "txid": "b05b5f5d8b90aa1c83c07f05f19a0363ffc16150de970dab470d050eaf74a102",
     2  "hash": "ef3f537f47465f58737a5fe81a2bb5688dc9e82f9d0472fdd86baac4375572e8",
     3  "version": 2,
     4  "size": 253,
     5  "vsize": 172,
     6  "weight": 685,
     7  "locktime": 0,
     8  "vin": [
     9    {
    10      "txid": "5a7cfaec72e5c0b17191f86998f97e69bf24e5894dd5db61352cea813e6d72de",
    11      "vout": 0,
    12      "scriptSig": {
    13        "asm": "",
    14        "hex": ""
    15      },
    16      "txinwitness": [
    17        "304402203c34d2c3b5383026dba2b03d194ee8fe4c9d5e1e5bc63fedbe906f5b8066aa3c022063620470d11244d67cff605a3642b4569ccc1d918b2a9a949603947fb872c36e01",
    18        "031c7a9f9443ff7e62c0685a31c24af4b810dbf09adbee6926db7d7d3b4b18a34b"
    19      ],
    20      "sequence": 4294967295
    21    }
    22  ],
    23  "vout": [
    24    {
    25      "value": 0.00020000,
    26      "n": 0,
    27      "scriptPubKey": {
    28        "asm": "0 cd2c4a02e161d15b5a403d5b5cdbdbd92971e2ec",
    29        "hex": "0014cd2c4a02e161d15b5a403d5b5cdbdbd92971e2ec",
    30        "address": "tb1qe5ky5qhpv8g4kkjq84d4ek7mmy5hrchvmcv90y",
    31        "type": "witness_v0_keyhash"
    32      }
    33    },
    34    {
    35      "value": 0.00020000,
    36      "n": 1,
    37      "scriptPubKey": {
    38        "asm": "0 10d76e5811f766bf2767b439f29604e038ae1993",
    39        "hex": "001410d76e5811f766bf2767b439f29604e038ae1993",
    40        "address": "tb1qzrtkukq37ant7fm8ksul99syuqu2uxvnk9lw45",
    41        "type": "witness_v0_keyhash"
    42      }
    43    },
    44    {
    45      "value": 0.00000000,
    46      "n": 2,
    47      "scriptPubKey": {
    48        "asm": "0 9867e363621a530bc726d33cd076f914e8062fc2",
    49        "hex": "00149867e363621a530bc726d33cd076f914e8062fc2",
    50        "address": "tb1qnpn7xcmzrffsh3ex6v7dqahezn5qvt7za39uhw",
    51        "type": "witness_v0_keyhash"
    52      }
    53    }
    54  ]
    55}
    

    So finally we have all the information about inputs and outputs for your first transaction similar to block explorer:

    Inputs Outputs
    tb1qzrtkukq37ant7fm8ksul99syuqu2uxvnk9lw45 (0.00020000) tb1qe5ky5qhpv8g4kkjq84d4ek7mmy5hrchvmcv90y (0.00001000)
    tb1qm30elrtz0tsaqkm5n0ljnynkkq07vkl5zfeuah (0.00009000)
  4. lpf763827726 commented at 6:31 am on July 22, 2021: none

    I have shared the steps which you can follow to get information about inputs and outputs for your transaction:

    thanks for your share, but now i can’t find this two txid in listtransactions, i can’t do anything with getrawtransaction, because i don’t know whice one txid i lost if i use automation to search

    now my transactionList is only use listtransactions

    if there have some way to find all txid, can you teach me?

  5. ghost commented at 3:52 pm on July 22, 2021: none

    if there have some way to find all txid, can you teach me?

    listtransactions should list all transactions IMO. If few transactions are missing, you can share all the details of your wallet, steps to reproduce, logs etc. and ask a question on Bitcoin Stackexchange

  6. lpf763827726 commented at 3:16 am on July 23, 2021: none

    listtransactions should list all transactions IMO. If few transactions are missing, you can share all the details of your wallet, steps to reproduce, logs etc. and ask a question on Bitcoin Stackexchange

    Although I also want to provide you with the wrong steps, But I’m so sorry, I don’t know how it happened I guess this error may occur because I sent the transaction to txid’s current address? Also, thank you very much for your help, I’ll try to see if this problem will happen again

  7. lpf763827726 closed this on Jul 23, 2021

  8. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 03:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me