Skip to content

self-transfers to my own address reports 0 received satoshi and 0 sent satoshis #200

@octobocto

Description

@octobocto

If you send bitcoin to an address belonging to the wallet, ListTransactions() reports the received and sent amounts as 0. This makes it hard to figure out what happened in the transaction.

For instance this transaction (sent 20 BTC to myself) is reported as sent and received 0 satoshis.

tx: {
  data: [2, 0, 0, 0, 0, 1, 5, 34, 105, 177, 103, 101, 207, 198, 200, 10, 191, 80, 150, 228, 59, 101, 102, 30, 157, 138, 32, 116, 200, 71, 153, 69, 111, 175, 206, 206, 18, 182, 70, 1, 0, 0, 0, 0, 253, 255, 255, 255, 51, 60, 60, 42, 162, 68, 166, 28, 202, 91, 178, 94, 84, 85, 0, 108, 210, 154, 40, 90, 68, 194, 238, 131, 132, 75, 58, 9, 53, 228, 117, 238, 1, 0, 0, 0, 0, 253, 255, 255, 255, 51, 60, 60, 42, 162, 68, 166, 28, 202, 91, 178, 94, 84, 85, 0, 108, 210, 154, 40, 90, 68, 194, 238, 131, 132, 75, 58, 9, 53, 228, 117, 238, 0, 0, 0, 0, 0, 253, 255, 255, 255, 15, 124, 182, 19, 86, 190, 67, 191, 139, 189, 48, 52, 162, 199, 205, 231, 7, 51, 54, 165, 123, 99, 253, 146, 206, 22, 108, 159, 99, 232, 206, 72, 0, 0, 0, 0, 0, 253, 255, 255, 255, 45, 204, 126, 183, 6, 95, 24, 100, 186, 16, 135, 97, 225, 219, 146, 167, 243, 255, 27, 238, 248, 2, 141, 198, 149, 247, 229, 203, 144, 182, 53, 253, 1, 0, 0, 0, 0, 253, 255, 255, 255, 2, 6, 124, 0, 0, 0, 0, 0, 0, 22, 0, 20, 80, 236, 205, 124, 84, 209, 37, 2, 153, 44, 219, 103, 90, 45, 251, 40, 53, 214, 224, 83, 166, 158, 52, 119, 0, 0, 0, 0, 22, 0, 20, 28, 41, 223, 71, 116, 238, 213, 133, 22, 3, 255, 167, 244, 106, 242, 96, 197, 17, 244, 22, 2, 71, 48, 68, 2, 32, 35, 127, 47, 127, 136, 141, 110, 73, 135, 61, 246, 50, 207, 222, 48, 70, 137, 93, 42, 97, 35, 240, 246, 199, 71, 73, 25, 252, 207, 182, 82, 210, 2, 32, 57, 78, 63, 191, 42, 122, 225, 30, 126, 224, 178, 162, 1, 221, 36, 3, 217, 123, 59, 139, 194, 33, 238, 165, 217, 58, 19, 134, 58, 143, 212, 212, 1, 33, 3, 179, 178, 149, 177, 215, 9, 150, 194, 128, 251, 253, 15, 58, 174, 86, 242, 227, 165, 217, 231, 55, 140, 21, 77, 59, 39, 25, 45, 134, 4, 175, 246, 2, 71, 48, 68, 2, 32, 33, 224, 32, 199, 19, 23, 244, 206, 38, 38, 39, 254, 96, 255, 58, 43, 117, 202, 20, 58, 231, 91, 144, 31, 139, 199, 86, 109, 14, 6, 197, 65, 2, 32, 90, 152, 219, 170, 77, 112, 46, 61, 100, 17, 205, 246, 3, 60, 183, 198, 98, 24, 233, 123, 214, 26, 9, 228, 80, 199, 200, 1, 218, 7, 232, 226, 1, 33, 3, 243, 18, 104, 207, 37, 36, 246, 45, 151, 85, 77, 42, 154, 17, 53, 92, 125, 175, 70, 119, 118, 37, 21, 164, 229, 180, 138, 189, 66, 15, 233, 233, 2, 71, 48, 68, 2, 32, 35, 97, 2, 192, 225, 96, 234, 157, 67, 123, 111, 71, 73, 93, 167, 160, 226, 195, 57, 90, 105, 16, 128, 43, 105, 233, 5, 219, 142, 59, 90, 50, 2, 32, 0, 243, 181, 16, 255, 21, 27, 222, 60, 13, 25, 38, 231, 140, 3, 237, 215, 180, 59, 161, 53, 21, 201, 219, 208, 149, 11, 142, 92, 36, 66, 211, 1, 33, 3, 41, 4, 74, 219, 167, 120, 34, 144, 248, 153, 126, 163, 52, 231, 163, 240, 252, 10, 102, 44, 254, 34, 12, 9, 61, 252, 21, 121, 163, 199, 132, 90, 2, 71, 48, 68, 2, 32, 28, 75, 54, 10, 219, 244, 122, 145, 231, 26, 128, 222, 18, 148, 240, 22, 113, 39, 52, 98, 199, 134, 77, 238, 223, 24, 4, 215, 200, 52, 25, 48, 2, 32, 124, 189, 20, 188, 115, 56, 75, 119, 70, 172, 2, 79, 77, 211, 58, 20, 77, 234, 215, 56, 174, 85, 126, 181, 22, 184, 212, 9, 170, 76, 244, 90, 1, 33, 2, 51, 167, 222, 170, 49, 90, 242, 234, 182, 79, 92, 221, 78, 46, 95, 37, 21, 5, 208, 178, 157, 100, 100, 112, 153, 190, 212, 177, 129, 211, 241, 146, 2, 71, 48, 68, 2, 32, 42, 218, 72, 177, 145, 59, 87, 67, 154, 26, 181, 210, 112, 171, 255, 227, 0, 39, 224, 220, 211, 51, 28, 246, 129, 29, 57, 236, 234, 193, 168, 177, 2, 32, 35, 236, 108, 91, 58, 184, 144, 107, 123, 164, 123, 50, 156, 232, 1, 219, 209, 166, 17, 69, 252, 170, 184, 120, 148, 6, 21, 134, 238, 148, 229, 151, 1, 33, 3, 179, 178, 149, 177, 215, 9, 150, 194, 128, 251, 253, 15, 58, 174, 86, 242, 227, 165, 217, 231, 55, 140, 21, 77, 59, 39, 25, 45, 134, 4, 175, 246, 135, 16, 2, 0]
  hex: 020000000001052269b16765cfc6c80abf5096e43b65661e9d8a2074c84799456fafcece12b6460100000000fdffffff333c3c2aa244a61cca5bb25e5455006cd29a285a44c2ee83844b3a0935e475ee0100000000fdffffff333c3c2aa244a61cca5bb25e5455006cd29a285a44c2ee83844b3a0935e475ee0000000000fdffffff0f7cb61356be43bf8bbd3034a2c7cde7073336a57b63fd92ce166c9f63e8ce480000000000fdffffff2dcc7eb7065f1864ba108761e1db92a7f3ff1beef8028dc695f7e5cb90b635fd0100000000fdffffff02067c00000000000016001450eccd7c54d12502992cdb675a2dfb2835d6e053a69e3477000000001600141c29df4774eed5851603ffa7f46af260c511f416024730440220237f2f7f888d6e49873df632cfde3046895d2a6123f0f6c7474919fccfb652d20220394e3fbf2a7ae11e7ee0b2a201dd2403d97b3b8bc221eea5d93a13863a8fd4d4012103b3b295b1d70996c280fbfd0f3aae56f2e3a5d9e7378c154d3b27192d8604aff602473044022021e020c71317f4ce262627fe60ff3a2b75ca143ae75b901f8bc7566d0e06c54102205a98dbaa4d702e3d6411cdf6033cb7c66218e97bd61a09e450c7c801da07e8e2012103f31268cf2524f62d97554d2a9a11355c7daf4677762515a4e5b48abd420fe9e9024730440220236102c0e160ea9d437b6f47495da7a0e2c3395a6910802b69e905db8e3b5a32022000f3b510ff151bde3c0d1926e78c03edd7b43ba13515c9dbd0950b8e5c2442d301210329044adba7782290f8997ea334e7a3f0fc0a662cfe220c093dfc1579a3c7845a0247304402201c4b360adbf47a91e71a80de1294f01671273462c7864deedf1804d7c834193002207cbd14bc73384b7746ac024f4dd33a144dead738ae557eb516b8d409aa4cf45a01210233a7deaa315af2eab64f5cdd4e2e5f251505d0b29d64647099bed4b181d3f1920247304402202ada48b1913b57439a1ab5d270abffe30027e0dcd3331cf6811d39eceac1a8b1022023ec6c5b3ab8906b7ba47b329ce801dbd1a61145fcaab87894061586ee94e597012103b3b295b1d70996c280fbfd0f3aae56f2e3a5d9e7378c154d3b27192d8604aff687100200
}
inputs: {
  txid: 48cee8639f6c16ce92fd637ba5363307e7cdc7a23430bd8bbf43be5613b67c0f
  scriptSig: {
  }
  sequence: 4294967293
  witness: 304402201c4b360adbf47a91e71a80de1294f01671273462c7864deedf1804d7c834193002207cbd14bc73384b7746ac024f4dd33a144dead738ae557eb516b8d409aa4cf45a01
  witness: 0233a7deaa315af2eab64f5cdd4e2e5f251505d0b29d64647099bed4b181d3f192
}
inputs: {
  txid: fd35b690cbe5f795c68d02f8ee1bfff3a792dbe1618710ba64185f06b77ecc2d
  vout: 1
  scriptSig: {
  }
  sequence: 4294967293
  witness: 304402202ada48b1913b57439a1ab5d270abffe30027e0dcd3331cf6811d39eceac1a8b1022023ec6c5b3ab8906b7ba47b329ce801dbd1a61145fcaab87894061586ee94e59701
  witness: 03b3b295b1d70996c280fbfd0f3aae56f2e3a5d9e7378c154d3b27192d8604aff6
}
inputs: {
}
inputs: {
}
inputs: {
}
outputs: {
  amount: 0.0003175
  scriptPubKey: {
    type: witness_v0_keyhash
    address: tb1q2rkv6lz56yjs9xfvmdn45t0m9q6adcznkapnas
  }
  scriptSig: {
    asm: 0 50eccd7c54d12502992cdb675a2dfb2835d6e053
    hex: 001450eccd7c54d12502992cdb675a2dfb2835d6e053
  }
}
outputs: {
  amount: 19.9993719
  vout: 1
  scriptPubKey: {
    type: witness_v0_keyhash
    address: tb1qrs5a73m5am2c29srl7nlg6hjvrz3raqk74nkjv
  }
  scriptSig: {
    asm: 0 1c29df4774eed5851603ffa7f46af260c511f416
    hex: 00141c29df4774eed5851603ffa7f46af260c511f416
  }
}
blockhash: 000003001bed77157ba013b84c42a28caee561c0445bead7b6bd3f216955af32
confirmations: 2834
time: 1745834948
blocktime: 1745834948
txid: b0d3cba7b3298e316ff51edb96b65255d03c7ef6b36abf762f23f96263139296
hash: 34816264e4efa3372ef2aea204647cf3ead47d1d7b7080e3619e85e1e2903cd5
size: 814
vsize: 412
weight: 1645
version: 2
locktime: 135303

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions