xeroc / piston-lib

Python Library for Steem
MIT License
40 stars 33 forks source link

Transfer not authorized #58

Open atthom opened 7 years ago

atthom commented 7 years ago

Hello, I have trouble to transfer funds with piston-cli

steem = Steem(wif=posting, node="wss://this.piston.rocks")
steem.transfer(to="someone-else", amount=55, asset="SBD", memo=memo, account=steemit_account)

It gave me this error:

Traceback (most recent call last):
    File "C:\_Installs\Anaconda\lib\site-packages\pistonapi\steemnoderpc.py", line 124, in rpcexec
    return super(SteemNodeRPC, self).rpcexec(payload)
    File "C:\_Installs\Anaconda\lib\site-packages\grapheneapi\graphenewsrpc.py", line 160, in rpcexec
    raise RPCError(ret['error']['message'])
    grapheneapi.graphenewsrpc.RPCError: 3010000 tx_missing_active_auth: missing required active authority
    Missing Active Authority [myaccount]
    [...]

I suppose the Steem instance doesn't have the active key to transfer funds. I didn't found any example or test that could help me to do it.

ArtGenesis commented 7 years ago

yes , you need active key to transfer, try like this steem = Steem( keys = { 'active': 'your active wif key' }, node="wss://this.piston.rocks")

atthom commented 7 years ago

thanks a lot !