Skip to content

Is listtransactions correct?  #22608

@var-llc

Description

@var-llc
ubuntu:~/environment $ bitcoin-cli -datadir=btcdir -testnet -rpcwallet=tomo2 listtransactions "*" 
[
  {
    "address": "tb1qdvx8rmj8e94a43lsj5jq4ja6hu2efgps50s0kk",
    "category": "receive",
    "amount": 0.00010000,
    "label": "user1",
    "vout": 0,
    "confirmations": 12,
    "blockhash": "000000000ea24c66faac775cca0a1963a183d03bd4f37cc9890f166d9a75fe90",
    "blockheight": 2062825,
    "blockindex": 91,
    "blocktime": 1627916153,
    "txid": "9786cbc553d528be721a34502cfb8322ab5f269633aaab9cdc8f8df1e35f732d",
    "walletconflicts": [
    ],
    "time": 1627915291,
    "timereceived": 1627915291,
    "bip125-replaceable": "no"
  },
  {
    "address": "tb1qdcvdnq46qxk7yxzmvwmscnzalpltaxt7k74nle",
    "category": "receive",
    "amount": 0.00010000,
    "label": "user2",
    "vout": 1,
    "confirmations": 12,
    "blockhash": "000000000ea24c66faac775cca0a1963a183d03bd4f37cc9890f166d9a75fe90",
    "blockheight": 2062825,
    "blockindex": 113,
    "blocktime": 1627916153,
    "txid": "01eff63265abbcc5647b1f06402aa50fb4be5f6c1d2f4128a3bdb637c6535e7d",
    "walletconflicts": [
    ],
    "time": 1627915300,
    "timereceived": 1627915300,
    "bip125-replaceable": "no"
  },
  {
    "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
    "category": "send",
    "amount": -0.00010000,
    "vout": 1,
    "fee": -0.00000208,
    "confirmations": 9,
    "blockhash": "00000000ff6e1692ed86533b03d527a183e44ad3382b429075466515582a3a6a",
    "blockheight": 2062828,
    "blockindex": 102,
    "blocktime": 1627918629,
    "txid": "e08d12afb8aebe4571a293acaa7e0b84d0baccafb1d242cb0fc1d936f65d29f0",
    "walletconflicts": [
    ],
    "time": 1627917768,
    "timereceived": 1627917768,
    "bip125-replaceable": "no",
    "abandoned": false
  },
  {
    "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
    "category": "send",
    "amount": -0.00005000,
    "vout": 0,
    "fee": -0.00000141,
    "confirmations": 9,
    "blockhash": "00000000ff6e1692ed86533b03d527a183e44ad3382b429075466515582a3a6a",
    "blockheight": 2062828,
    "blockindex": 103,
    "blocktime": 1627918629,
    "txid": "6e0c2ace9900b668c9b633e7045a9c0895bb9754c6f41c70cfde628bb3562d6a",
    "walletconflicts": [
    ],
    "time": 1627918027,
    "timereceived": 1627918027,
    "bip125-replaceable": "no",
    "abandoned": false
  },
  {
    "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
    "category": "send",
    "amount": -0.00001000,
    "vout": 1,
    "fee": -0.00000141,
    "confirmations": 3,
    "blockhash": "000000000000002f727825f1de5b724f33a4b4aca5ab16c9bfafb508824afa4e",
    "blockheight": 2062834,
    "blockindex": 25,
    "blocktime": 1627920653,
    "txid": "1e674af169748c15d5017b22a93e6e524e039e409c5f2b714d146a31ba61fcc7",
    "walletconflicts": [
    ],
    "time": 1627920400,
    "timereceived": 1627920400,
    "bip125-replaceable": "no",
    "comment": "cooment=move",
    "abandoned": false
  },
  {
    "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
    "category": "send",
    "amount": -0.00001000,
    "vout": 0,
    "fee": -0.00000141,
    "confirmations": 2,
    "blockhash": "000000000000001f09fea29302386f747e2ad871dad1707396aed27823566d42",
    "blockheight": 2062835,
    "blockindex": 78,
    "blocktime": 1627920941,
    "txid": "22e365f45981c8550484be576ac8c9aa62400d9320873be057ed20404cae7f5c",
    "walletconflicts": [
    ],
    "time": 1627920839,
    "timereceived": 1627920839,
    "bip125-replaceable": "no",
    "comment": "cooment_to=move",
    "abandoned": false
  }
]
ubuntu:~/environment $ bitcoin-cli -datadir=btcdir -testnet -rpcwallet=tomo2 listtransactions "*" 3 3
[
  {
    "address": "tb1qdvx8rmj8e94a43lsj5jq4ja6hu2efgps50s0kk",
    "category": "receive",
    "amount": 0.00010000,
    "label": "user1",
    "vout": 0,
    "confirmations": 12,
    "blockhash": "000000000ea24c66faac775cca0a1963a183d03bd4f37cc9890f166d9a75fe90",
    "blockheight": 2062825,
    "blockindex": 91,
    "blocktime": 1627916153,
    "txid": "9786cbc553d528be721a34502cfb8322ab5f269633aaab9cdc8f8df1e35f732d",
    "walletconflicts": [
    ],
    "time": 1627915291,
    "timereceived": 1627915291,
    "bip125-replaceable": "no"
  },
  {
    "address": "tb1qdcvdnq46qxk7yxzmvwmscnzalpltaxt7k74nle",
    "category": "receive",
    "amount": 0.00010000,
    "label": "user2",
    "vout": 1,
    "confirmations": 12,
    "blockhash": "000000000ea24c66faac775cca0a1963a183d03bd4f37cc9890f166d9a75fe90",
    "blockheight": 2062825,
    "blockindex": 113,
    "blocktime": 1627916153,
    "txid": "01eff63265abbcc5647b1f06402aa50fb4be5f6c1d2f4128a3bdb637c6535e7d",
    "walletconflicts": [
    ],
    "time": 1627915300,
    "timereceived": 1627915300,
    "bip125-replaceable": "no"
  },
  {
    "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
    "category": "send",
    "amount": -0.00010000,
    "vout": 1,
    "fee": -0.00000208,
    "confirmations": 9,
    "blockhash": "00000000ff6e1692ed86533b03d527a183e44ad3382b429075466515582a3a6a",
    "blockheight": 2062828,
    "blockindex": 102,
    "blocktime": 1627918629,
    "txid": "e08d12afb8aebe4571a293acaa7e0b84d0baccafb1d242cb0fc1d936f65d29f0",
    "walletconflicts": [
    ],
    "time": 1627917768,
    "timereceived": 1627917768,
    "bip125-replaceable": "no",
    "abandoned": false
  }
]

I want to skip 3 past transactions.

However, it seems that the three latest transactions have been eliminated.

Is this the correct behavior?


ideal
> bitcoin-cli listtransactions "*" 20 100
List transactions 100 to 120

realty
> bitcoin-cli listtransactions "*" 20 100
List transactions 0 to 20


2021-08-02T13:23:29Z Bitcoin Core version v0.21.1 (release build)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions