So I just started writing a rails app that will be an online wallet. I'm looking over the API code examples for connecting to the bitcoin network at https://en.bitcoin.it/wiki/API_reference_(JSON-RPC).
PHP was the easiest example, seen here
require_once 'jsonRPCClient.php'; $bitcoin = new jsonRPCClient('http://user:firstname.lastname@example.org:8332/'); echo "<pre>\n"; print_r($bitcoin->getinfo()); echo "\n"; echo "Received: ".$bitcoin->getreceivedbylabel("Your Address")."\n"; echo "</pre>";
So I'm presuming that it connects to the bitcoin network via a username and password. Couple of questions.
What username/password? I bought bitcoin on coinbase, then exported it to a paper wallet. What user/pass is associated with my bitcoin? I thought it was just public/private key?
Why port 8332?
Why 127.0.0.1? Could it be any address?