Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

How to send dash to hundreds of private keys?

Discussion in 'General Discussion' started by GrandMasterDash, Sep 1, 2019.

  1. GrandMasterDash

    GrandMasterDash Well-known Member
    Masternode Owner/Operator

    Joined:
    Jul 12, 2015
    Messages:
    2,666
    Likes Received:
    952
    Trophy Points:
    183
    I have a csv with hundreds of private keys. Now I want to send dash to them, not one at a time, how?
     
  2. akhavr

    akhavr Active Member

    Joined:
    Oct 11, 2014
    Messages:
    715
    Likes Received:
    359
    Trophy Points:
    133
    Fire up dash electrum, press send, then click on the file folder icon on the right side :)
     
    • Like Like x 1
  3. qwizzie

    qwizzie Well-known Member

    Joined:
    Aug 6, 2014
    Messages:
    1,463
    Likes Received:
    705
    Trophy Points:
    183
    You can also use the sendmany command in debug console (i suggest if you go this route you first try this out on Testnet).
    Just typing sendmany in debug console will get you following information :

    sendmany "fromaccount" {"address":amount,...} ( minconf addlocked "comment" ["address",...] subtractfeefromamount use_is use_ps )
    Send multiple times. Amounts are double-precision floating point numbers.
    Arguments:
    1. "fromaccount" (string, required) DEPRECATED. The account to send the funds from. Should be "" for the default account
    2. "amounts" (string, required) A json object with addresses and amounts
    {
    "address":amount (numeric or string) The dash address is the key, the numeric amount (can be string) in DASH is the value
    ,...
    }
    3. minconf (numeric, optional, default=1) Only use the balance confirmed at least this many times.
    4. addlocked (bool, optional, default=false) Whether to include transactions locked via InstantSend.
    5. "comment" (string, optional) A comment
    6. subtractfeefromamount (array, optional) A json array with addresses.
    The fee will be equally deducted from the amount of each selected address.
    Those recipients will receive less dashs than you enter in their corresponding amount field.
    If no addresses are specified here, the sender pays the fee.
    [
    "address" (string) Subtract fee from this address
    ,...
    ]
    7. "use_is" (bool, optional, default=false) Send this transaction as InstantSend
    8. "use_ps" (bool, optional, default=false) Use anonymized funds only
    Result:
    "txid" (string) The transaction id for the send. Only 1 transaction is created regardless of
    the number of addresses.

    Examples:

    Send two amounts to two different addresses:
    > dash-cli sendmany "tabby" "{\"XwnLY9Tf7Zsef8gMGL2fhWA9ZmMjt4KPwG\":0.01,\"XuQQkwA4FYkq2XERzMY2CiAZhJTEDAbtcG\":0.02}"

    Send two amounts to two different addresses setting the confirmation and comment:
    > dash-cli sendmany "tabby" "{\"XwnLY9Tf7Zsef8gMGL2fhWA9ZmMjt4KPwG\":0.01,\"XuQQkwA4FYkq2XERzMY2CiAZhJTEDAbtcG\":0.02}" 6 false "testing"

    As a json rpc call
    > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["tabby", "{\"XwnLY9Tf7Zsef8gMGL2fhWA9ZmMjt4KPwG\":0.01,\"XuQQkwA4FYkq2XERzMY2CiAZhJTEDAbtcG\":0.02}", 6, false, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/
    (code -1)

    With above examples you will most likely need to put ./ before dash-cli, FYI.
    I would let the "use_is" parameter on default (false), as these transactions will most likely get instantsend through ChainLocks anyways.
    Also i'm not sure if you can still do that json rpc call these days.
     
    #3 qwizzie, Sep 3, 2019
    Last edited: Sep 3, 2019
  4. GrandMasterDash

    GrandMasterDash Well-known Member
    Masternode Owner/Operator

    Joined:
    Jul 12, 2015
    Messages:
    2,666
    Likes Received:
    952
    Trophy Points:
    183
    Ah thanks, this looks like it will work. Is there an upper limit on the number of keys I can pay?
     
  5. GrandMasterDash

    GrandMasterDash Well-known Member
    Masternode Owner/Operator

    Joined:
    Jul 12, 2015
    Messages:
    2,666
    Likes Received:
    952
    Trophy Points:
    183
    Yes, for wallet sweeping.
     
  6. akhavr

    akhavr Active Member

    Joined:
    Oct 11, 2014
    Messages:
    715
    Likes Received:
    359
    Trophy Points:
    133
    Only limited by network transaction size. From the tom of my head, something like 100kB
     
    • Informative Informative x 1

Share This Page