Skip to content

Instantly share code, notes, and snippets.

@ericgay
ericgay / import_json_wallet.py
Created January 15, 2018 22:03
Blockstack import wallet from a JSON file
#!/usr/bin/env python2
# usage: import_json_wallet wallet.json passphrase
import os, json, tempfile, sys, time, re
from blockstack_client.wallet import decrypt_wallet, inspect_wallet_data
wallet_filename = sys.argv[1]
password = sys.argv[2]