Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ramvzla

#1
Hi guys, I'm starting with pybitshares and with the blockchain world so I do not have any clear concepts.

I was looking at the documentation and wanted to know if you can answer some specific questions:

1)When I create a wallet using the following code

from bitshares import BitShares
bitshares = BitShares()
bitshares.wallet.create("supersecret-passphrase")


What account is associated with this wallet and what should I put where it says "supersecret-passphrase"?

2)Here I unlock my wallet

from bitshares import BitShares
bitshares = BitShares()
bitshares.wallet.unlock("supersecret-passphrase")


3) Adding a Private Key

from bitshares import BitShares
bitshares = BitShares()
bitshares.wallet.unlock("supersecret-passphrase")
bitshares.wallet.addPrivateKey("5xxxxxxxxxxxxxxxxxxxx")


How do I add a private key?
I do not understand this part
What account does this key add to?

This is the page where the codes are stored http://docs.pybitshares.com/en/latest/wallet.html?highlight=addPrivateKey

I hope you can clarify my doubts and excuse my ignorance. Remember that I just want to learn.