Skip to content

HOWTO: import private keys with MACOS X Bitcoin-QT.app

March 18, 2014

DONT NEED TO DO THIS!!! IT’S ONLY FOR RPC JSON API CALLS:

PREPARE the bitcoin-qt.app for open in server mode with rpc authentications

1. enter rpcuser=someuser and rpcpassword=somepassword in your ~/Library/Application Support/Bitcoin/bitcoin.conf

2. chmod it to only you (600 or 700)

3. run the server:

# open Bitcoin-Qt.app

RPC CALLS TO THE BITCOIND Server: (with curl)

1. Check the RPC API is OK:

#curl -vvv –user someuser –data-binary ‘{“jsonrpc”: “1.0”, “id”:”curltest”, “method”: “getinfo”, “params”: [] }’  -H ‘content-type: text/plain;’ http://127.0.0.1:8332/

we should receive something like:

“result”:{“version”:80600,”protocolversion”:70001,”walletversion”:60000,”balance”:0.00000000,”blocks”:289145,”timeoffset”:-1,”connections”:5,”proxy”:””,”difficulty”:3815723798.81463003,”testnet”:false,”keypoololdest”:1370183837,”keypoolsize”:100,”paytxfee”:0.00000000,”unlocked_until”:0,”errors”:””},”error”:null,”id”:”curltest”}

2.  etc etc etc you can find the link to all api calls

REAL AND EASY TO USE WAY:

1. open your bitcoin-qt application

2. goto Help->Debug window->Console [tab]

Now you can use all bitcoind commands:

3. First Check the OK status: enter: getinfo

4. OK , now IF YOU ENCRYPT YOUR WALLET you should first decrypt it: enter: walletpassphrase $your_wallet_pass 120 ,so it will be decrypted for 120 seconds.

5. OK, now just import na private key: enter: importprivkey $your_private_key

That’s all.

Just verify your address is showing now in your bitcoin-qt application.

Used sources:

https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Command_line_.28cURL.29

Original Bitcoin client/API calls list – Bitcoin

https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Command_line_.28cURL.29

Advertisements

From → BTC, Coins

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: