Skip to content
Discussion options

You must be logged in to vote

You can create a wallet with a single private key, without any key structure. Or you can import a private key in an existing wallet.

# Create a wallet with a single private key
pkwif = 'cPEMsDqW6683e4qFy8s2TH3eup4cNkhSzvXJ8VyJVeaG6tSV9hDG'
w = wallet_create_or_open('wallet457', keys=pkwif, key_path='m')
# Import private key in an existing wallet
w = wallet_create_or_open('wallet457_method2', network='testnet')
w.import_key(pkwif)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mccwdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants