Skip to content

Transfer Error #3

Closed
Closed
@SERDAR-AKIN

Description

@SERDAR-AKIN

When I try to use transfer function if I set memo parameter as None it is sending successfully
But If set memo parameter as a string I am getting this error output ;

from bitshares import BitShares
bitshares = BitShares()
bitshares.wallet.unlock("xxxxxxxx")
bitshares.transfer("red-head2", "0.000001", "OPEN.BTC", None,"red-head") --> this is working good
bitshares.transfer("red-head2", "0.000001", "OPEN.BTC", "sometextmessage","red-head") --> this is NOT working

Error Details
Traceback (most recent call last):
File "/home/serdar/bitshares-deneme.py", line 39, in
bitshares.transfer("red-head2", "0.000001", "OPEN.BTC", "[]","red-head")
File "/home/serdar/.local/lib/python3.5/site-packages/bitshares/bitshares.py", line 422, in transfer
"memo": memoObj.encrypt(memo)
File "/home/serdar/.local/lib/python3.5/site-packages/bitsharesbase/operations.py", line 45, in init
memo = Optional(Memo(kwargs["memo"]))
File "/home/serdar/.local/lib/python3.5/site-packages/bitsharesbase/objects.py", line 98, in init
('from', PublicKey(kwargs["from"], prefix=prefix)),
KeyError: 'from'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions