question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] CLI: `chia wallet get_address` returns the same address every time

See original GitHub issue

Describe the bug According to my read of #996, chia wallet get_address should return a new address every time. But in my testing, repeatedly running chia wallet get_address returns the same address every time.

To Reproduce Steps to reproduce the behavior:

  1. Execute chia wallet get_address from the cli
  2. Execute the command a second (or third, or more…) time
  3. Observe that the returned address is the same each time.

Expected behavior As a rule of thumb, addresses should not be reused, so this command should return a new address every time.

Additional context This is especially annoying because as far as I can tell, there is no way to generate a new address from the CLI; the only way (aside from custom-crafting commands to send to the wallet RPC endpoint) is to fire up the GUI and click the “New Address” button in the Wallet tab, which then calls the wallet RPC endpoint with the correct parameter to generate a new address.

Could I get a confirmation from one of the project owners that my assumption about the intended behavior of the CLI is correct? If so, I can take a stab at a PR to fix this.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
ruixingchencommented, Jan 15, 2022

this even not get fixed in 1.2.11 @ 2022, gods please

1reaction
sargonascommented, May 14, 2021

Can confirm this isn’t working as intended. Also tracking this in #4869 so I’ll flag this as a duplicate and redirect you there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chia explorer / wallet address bug?
Get_address returns a recieve address that chia generates from your Keychain, by default Chia generates like 100 addresses that are associated ...
Read more >
Why does 'cardano-cli query utxo --address $address
At the same time your wallet can with its private key derive all address and show to you all the funds you have....
Read more >
New Features Coming to 1.5.1
In the 1.4 wallet GUI, NFTs could only be exchanged for XCH. In version 1.5.1, we've added the ability to exchange NFTs for...
Read more >
Chia 1.3 - no farming reward addresses
Can you use command line (CLI) for chia commands? If you don't remember or have noted somewhere the original (first) address of your...
Read more >
All CLI commands for Chia Network with an explanation
chia plots check – checks all plot files. chia show -s – show status of node. chia farm summary – Show summary of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found