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.


Topics - ramvzla

Pages: [1]
1
Technical Support / Pybitshares, doubts with the wallet
« on: May 13, 2018, 06:00:30 pm »
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

Code: [Select]
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

Code: [Select]
from bitshares import BitShares
bitshares = BitShares()
bitshares.wallet.unlock("supersecret-passphrase")

3) Adding a Private Key

Code: [Select]
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.

Pages: [1]