Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Received funds appear in listreceivedbyaddress, but are not taken into account for the wallet balance and cannot be transferred

Open
#1,322 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
blockchain

Research direction

Start by reproducing the report with elements-cli listreceivedbyaddress, getbalance, and getnewaddress using the two supplied addresses and derivation paths. Trace the wallet handling behind received funds, balance calculation, and transferability, then verify that the RDDL and bitcoin amounts are reflected consistently and can be transferred.

Written by the indexing model from the issue text.

Description

I received transactions on my wallet:

~/elements-23.2.1/bin/elements-cli listreceivedbyaddress
...
  {
    "address": "lq1qqtvv6rlj34e5yfy0lej7fz4j2gcpfeph6ck933360l2kv8ze5hypnl86w8vnxc4q2c5saluqevdqmw0xefj9x9t685n59z9tt",
    "amount": {
      "RDDL": 11727478.84800004,
      "bitcoin": 0.00820000
    },
    "confirmations": 88651,
    "label": "Account1",
    "txids": [
      "b76725ca07f8605121bb21523e1f0cbd344224e508cc021880dbc2ce81508e1f",
      "f1d8f0b6b50584a1aa8ba374e8a1d42fa5dca746e6977eca5b1af1f03a0617af"
    ]
  }
]

and haven't spent any of these so far. At the same time, I also had other incoming transactions. However, the balance of the wallet does not take transactions of the address into account when computing the balance:

~/elements-23.2.1/bin/elements-cli getbalance
{
  "RDDL": 10897109.04756544,
  "bitcoin": 0.00777900
}

I receive transactions on two accounts:
addresses: lq1qqw87p75cwu7jhhw7htvhuuzte6z0wlzmwppnpuauw6tuf2cyh67rpzrtmaycqrev77pnmd2gnhq6d2h4afecsalzeuhp9qdh0
and
lq1qqtvv6rlj34e5yfy0lej7fz4j2gcpfeph6ck933360l2kv8ze5hypnl86w8vnxc4q2c5saluqevdqmw0xefj9x9t685n59z9tt

Both are derived by getnewaddress. It seems like the transactions received on lq1qqtvv6rlj34e5yfy0lej7fz4j2gcpfeph6ck933360l2kv8ze5hypnl86w8vnxc4q2c5saluqevdqmw0xefj9x9t685n59z9tt are not listed in the balances and cannot be transferred from the wallet. How can that be?

Derivation paths are
lq1qqtvv6rlj34e5yfy0lej7fz4j2gcpfeph6ck933360l2kv8ze5hypnl86w8vnxc4q2c5saluqevdqmw0xefj9x9t685n59z9tt:
"desc": "wpkh([2d4a5461/0'/0'/1']036b41d89b267014e80c7baa380a5d316171b6494eff4c1384256bd43454e54f61)#sm3acjk6",

lq1qqw87p75cwu7jhhw7htvhuuzte6z0wlzmwppnpuauw6tuf2cyh67rpzrtmaycqrev77pnmd2gnhq6d2h4afecsalzeuhp9qdh0:
"desc": "wpkh([2d4a5461/0'/0'/0']03b607628a90c0b58cc08e778606df62b50e96320df085c9e7594a744ecb6a7cbf)#hmzm2344",

Would anyone happen to have an idea on how to fix this? Is there a workaround?

Dominant language
C++
Stars
1.2k
Forks
418
Avg merge
1d 12h
Merged PRs (30d)
13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ElementsProject/elements

All issues in ElementsProject/elements

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.