Transactions

Discussion in 'Transactions' started by michael sørensen, Mar 4, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. michael sørensen

    Translator (Dansk)

    Jan 1, 2016
    130
    62
    Male
    I've been scouting, and reading, and reading. But so far, I can't see to find the info I want, so just gonna put it up here.

    I recieved a transaction last night. And my balance increased with 20 Decred, during the night. (obviously, some of that, have to be subsidies from voting)
    - But I'm at a loss, as how to find "incoming" transactions. It's not really important or anything. I'm just rather curious.

    --wallet listtransactions only throws out "sent" transactions. So that doesn't really help me at all. And the transaction "ID", doesn't show up in the blockchain. (I might just be ignorant, and it's not even the ID, but just random numbers though.)

    Well anyways. If anyone gotz ze info I need. It would be much appreciated.

    upload_2016-3-4_17-12-11.png


    transaction 357b46653d1789de5e0803039613eb558a4c58b979d80ae9a388092941975ccb
     

    Attached Files:

  2. 418Sec

    418Sec Member
    Advocate (Twitter)

    Jan 3, 2016
    122
    65
    Male
    --wallet listtransactions
    should show all types of transactions, sent and received. That's what I saw so far.
     
  3. michael sørensen

    Translator (Dansk)

    Jan 1, 2016
    130
    62
    Male
    That's what I wrote. :)

    And it only shows 10 random ones as well. Not the latest.
     
  4. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    The random string after "unconfirmed transaction" is the tx ID. you can look it up on explorer. Also if the message is no longer visible in command window then you can search the dcrwallet's log file. Anyways we wouldn't have to do this when accounts will be fixed or coin control is available. Also you can consolidate your funds into an address and use "reuseaddresses=1" in wallet's conf file to use just that address for ticket related txs.
     
    Nihilix likes this.
  5. michael sørensen

    Translator (Dansk)

    Jan 1, 2016
    130
    62
    Male
    The problem is. That the transaction doesn't exist, when looking 357b46653d1789de5e0803039613eb558a4c58b979d80ae9a388092941975ccb up on the explorer.

    But I probably should set "reuseaddresses=1". Since I think a 1.000 addresses connected to my wallet, is a bit much..
     
  6. Nihilix

    Nihilix New Member

    Feb 26, 2016
    10
    1
    Male
    Computer Repair Specialist
    California, USA
    Does this mean that if I leave my wallet configured as it is with multiple addresses generated from staking, and do not consolidate my funds, the wallet will simply use any addresses it already has without creating more?
     
  7. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    I am not sure how this works but this is what i have observed. It starts to purchase from address i have consolidated into and returns the change to that address as well. even if i do some normal non ticket purchasing tx and change from them are sent to a new address then it eventually uses them to purchase tickets and sends remaining change to the address i consolidated into.

    I am not sure how it picks the address it will use for ticket purchases as i already consolidated to one address so wallet had no choice as all other addresses had no funds. Maybe it starts using address with most funds.

    So to answer your question yes it will not create anymore addresses for purchasing tickets but it will still create new addresses for normal txs.
     
  8. Nihilix

    Nihilix New Member

    Feb 26, 2016
    10
    1
    Male
    Computer Repair Specialist
    California, USA
    Thanks for your input. I went ahead and added it to my config file so I can see for myself how it behaves. I found this in the config.go source code of dcrwallet:
    Code:
    ReuseAddresses    bool    `long:"reuseaddresses" description:"Reuse addresses for ticket purchase to cut down on address overuse"
    Obviously that's still pretty vague but since it doesn't say anything about limiting reuse to only one address I feel comfortable giving it a shot without consolidating all of my coins. I don't have any unlocked coins to spend on new tickets right now but when I do I'll let you know how it behaves for me. I counted 100 addresses exactly as of last night.

    Is there a command to get the balance of each individual address in a wallet, or a command to consolidate all coins to one address that you're aware of?
     
    sambiohazard likes this.
  9. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    I dont know any commands to see balance for each address but listreceivedbyaddress returns a JSON array of total amount received by each address, although if you have reused an address or spent from an address, this will not be of much use. I wonder why there is no getbalancebyaddress as most people are interested in current balance not how many coin an address has received in its existence.

    To consolidate all coins to one address i simply used sendtoaddress command.
     
  10. jyap

    jyap New Member

    Feb 18, 2016
    27
    18
    Nice setting! Works well.

    Also if you use this setting all your smaller inputs will slowly clean up and consolidate as it purchases tickets.
     
    sambiohazard likes this.

Share This Page