Skip to content

Instantly share code, notes, and snippets.

@t4sk
Last active January 19, 2017 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t4sk/4fc2b7d804248583509086323531aa84 to your computer and use it in GitHub Desktop.
Save t4sk/4fc2b7d804248583509086323531aa84 to your computer and use it in GitHub Desktop.
How to import private key into bitcoin-qt

How to import private key into bitcoin-qt

1. Convert private key to WIF

Click here to covert private key to WIF

In this example

  • private key = 619c335025c7f4012e556c2a58b2506e30b8511b53ade95ea316fd8c3286feb9
  • WIF = 92KuV1Mtf9jTttTrw1yawobsa9uCZGbfpambH8H1Y7KfdDxxc4d

2. Import WIF to bitcoin-qt

In bitcoin-qt console

> importprivkey 92KuV1Mtf9jTttTrw1yawobsa9uCZGbfpambH8H1Y7KfdDxxc4d "test-priv-key"
null

5. Verify (Optional)

> getaddressesbyaccount "test-priv-key"
[
  "mi7uHKSho5sj9EwN8Tat4GuLu5ZjbJqT4Q"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment