Sparse API #793

issue mcandre opened this issue on February 2, 2012
  1. mcandre commented at 1:57 AM on February 2, 2012: none

    I'm looking at the API and it's really confusing.

    I should be able to set the bitcoin address using setaddress, but I have no idea how accounts work. Can I omit the account and just specify a bitcoin address?

    Would the following make sense in node-bitcoin?

    var myBitCoinAddress = "abc1234567890qwertyQWERTY";
    client.setAddress(myBitcoinAddress);
    
  2. gavinandresen commented at 2:49 AM on February 2, 2012: contributor

    setaddress is used to associate a bitcoin address (either one you got from another person or one you generated with getnewaddress) with an account, so no, you can't leave off the account.

    What are you trying to do?

  3. mcandre commented at 3:25 PM on February 2, 2012: none

    I have the Bitcoin GUI working and I want to use my wallet for bitcoind as well so that I can mine in the background. I want to associate bitcoind with my preexisting Bitcoin address / account / wallet, whatever that means.

    Cheers,

    Andrew Pennebaker www.yellosoft.us

    On Wed, Feb 1, 2012 at 9:49 PM, Gavin Andresen < reply@reply.github.com

    wrote:

    setaddress is used to associate a bitcoin address (either one you got from another person or one you generated with getnewaddress) with an account, so no, you can't leave off the account.

    What are you trying to do?


    Reply to this email directly or view it on GitHub: #793 (comment)

  4. gavinandresen commented at 3:29 PM on February 2, 2012: contributor

    When you run bitcoind <command>, it sends <command> to the running Bitcoin GUI process.

    So you don't need to associate bitcoind with your preexisting stuff.

  5. gavinandresen closed this on Feb 2, 2012

  6. mcandre commented at 9:43 PM on February 2, 2012: none

    I do want to associate bitcoind with my wallet, because I want to connect to a remote bitcoind, e.g., on a web server away from my desktop.

    Cheers,

    Andrew Pennebaker www.yellosoft.us

    On Thu, Feb 2, 2012 at 10:29 AM, Gavin Andresen < reply@reply.github.com

    wrote:

    When you run bitcoind <command>, it sends <command> to the running Bitcoin GUI process.

    So you don't need to associate bitcoind with your preexisting stuff.


    Reply to this email directly or view it on GitHub: #793 (comment)

  7. gavinandresen commented at 11:55 PM on February 2, 2012: contributor

    bitcoind -connect=web.server.ip -rpcuser=... -rpcpassword=... getinfo

    ... will connect to the server, send it the 'getinfo' command, and print the result. The server will have to have it's RPC port open and will have to have your desktop's IP address in it's bitcoin.conf ( rpcallowip=desktop.ip.address ).

    Wallets are tightly connected to bitcoind's, there isn't a way of 'associating' a wallet and a particular bitcoind.

  8. mcandre commented at 12:04 AM on February 3, 2012: none

    How would I send all the bitcoins generated by one bitcoind instance's wallet to another bitcoind instance's wallet?

    Cheers,

    Andrew Pennebaker www.yellosoft.us

    On Thu, Feb 2, 2012 at 6:55 PM, Gavin Andresen < reply@reply.github.com

    wrote:

    bitcoind -connect=web.server.ip -rpcuser=... -rpcpassword=... getinfo

    ... will connect to the server, send it the 'getinfo' command, and print the result. The server will have to have it's RPC port open and will have to have your desktop's IP address in it's bitcoin.conf ( rpcallowip=desktop.ip.address ).

    Wallets are tightly connected to bitcoind's, there isn't a way of 'associating' a wallet and a particular bitcoind.


    Reply to this email directly or view it on GitHub: #793 (comment)

  9. gavinandresen commented at 12:46 AM on February 3, 2012: contributor

    Best place for questions like that is bitcoin.stackexchange.com

  10. ptschip referenced this in commit ae8f00b599 on Oct 13, 2017
  11. sipa referenced this in commit a951950cf7 on Aug 16, 2020
  12. sipa referenced this in commit 0a0db15fc7 on Aug 16, 2020
  13. sipa referenced this in commit 5d5bef0862 on Aug 28, 2020
  14. sipa referenced this in commit 62da1445ac on Sep 4, 2020
  15. sipa referenced this in commit f0c6824af2 on Sep 5, 2020
  16. sipa referenced this in commit b9c1a76481 on Sep 11, 2020
  17. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 09:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me