1
Technical Support / pybitshares: relationship between wallet and from-account specified in transfer
« on: June 15, 2018, 10:18:56 pm »
In looking at the following code:
We see that assets are transferred from the account xeroc to init0, init1, init2, and init3.
My questions are:
Code: [Select]
from pprint import pprint
from bitshares import BitShares
testnet = BitShares(
"wss://node.testnet.bitshares.eu",
nobroadcast=True,
bundle=True,
)
testnet.wallet.unlock("supersecret")
testnet.transfer("init0", 1, "TEST", account="xeroc")
testnet.transfer("init1", 1, "TEST", account="xeroc")
testnet.transfer("init2", 1, "TEST", account="xeroc")
testnet.transfer("init3", 1, "TEST", account="xeroc")
pprint(testnet.broadcast())
We see that assets are transferred from the account xeroc to init0, init1, init2, and init3.
My questions are:
- was the wallet created using code similar to this: http://docs.pybitshares.com/en/latest/index.html#create-a-wallet ... how else might it have been created?
- Does a private key need to be added for that wallet
- What is the relationship between the account "xeroc" and the wallet that was created?
- Are the terms "wallet" and "account" official Bitshares terminology? Where are they defined