ain icon indicating copy to clipboard operation
ain copied to clipboard

utxostoaccount creates a new address

Open goofy79 opened this issue 4 years ago • 1 comments

I want to change to defi tokens to utxo with the command ./defi-cli utxostoaccount {"address":"amount of defi tokens"} but if i do this, i have a new address with 0.48993855 DFI on it. This can i see with the following command

./defi-cli listaddressgroupings
[
  [
    [
      "dHxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      0.00000000
    ],
    [
      "dNxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      0.48993855
    ],
    [
      "dQxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      0.00999211,
      "Main Wallet"
    ],
    [
      "dRxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      0.00000000
    ],
    [
      "daxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      0.00000000
    ],
    [
      "daxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      0.00000000
    ]
  ]
]

than i have to send the tokens back with ./defi-cli sendutxosfrom "dNxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "dQxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 0.48993628

image

Every time i use the utxostoaccount command, i get a new address. Thats strange ? and i don't know why ?

BR Goofy

goofy79 avatar Mar 02 '22 21:03 goofy79

@goofy79: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

Details

I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.

defichain-bot avatar Mar 02 '22 21:03 defichain-bot

This is the default behaviour for most UTXO blockchains (bitcoind will also do this by default), this is done to protect user's privacy (more).

Being a Bitcoin fork, DeFiChain inherits the same behaviour of sending change to a new address.

shohamc1 avatar Oct 13 '22 09:10 shohamc1