Hello, I would like to get the following example from the PyBitshares documentation [1] to work:
from bitshares import BitShares
bitshares = BitShares()
bitshares.wallet.unlock("wallet-passphrase")
bitshares.transfer("<to>", "<amount>", "<asset>", "[<memo>]",
account="<from>")
Although this is not the meat of my problem, you cannot supply keyword parameters after positional parameters. Therefore the call to
.transfer()
cannot have
account=<from>
parameter at the end.
Anyway, moving on to the real issues, it seems that before you can get this example to work, you need to decide on a wallet operation model (Wallet Database, Provide Keys, Force Keys). For this discussion, I would like to focus on providing keys.
The Bitshares constructor [2] accepts a `keys` parameter whose value may be an array, dictionary or string. This leads to the following questions:
1 - what is a wif key? What does "wif" stand for?
2 - Where would I access the private key for an OpenLedger account? Please provide a precise navigation sequence.
3 - Where would I access the private key for a Crypto-Bridge account? Please provide a precise navigation sequence.
4 - Once I find the private key how does one supply it? The docs state the types of things that the `keys` parameter accepts, but it does not show how to supply it.
After looking at the wallet documentation [3] I have a few more questions:
1 - after adding a private key, does PyBitshares automatically know which Bitshares account it belongs to? For instance, if I add the private keys for the the bitshares user bev123 [4] am I able to call getActiveKeyForAccount [5] and supply 'bev123' as the name of the account?
[1]
http://docs.pybitshares.com/en/latest/index.html[2]
http://docs.pybitshares.com/en/latest/bitshares.bitshares.html[3]
http://docs.pybitshares.com/en/latest/bitshares.wallet.html[4]
https://cryptofresh.com/u/bev123[5]
http://docs.pybitshares.com/en/latest/bitshares.wallet.html#bitshares.wallet.Wallet.getActiveKey