Hello,
I'm having a problem with the sendwithmetadata command executing from python (Savoir library). I am, however, able to successfully execute the command on the same node server using multi chain-cli. It seems the problem in python is with my json object.....but the solution continues to escape me. Could someone please provide some details on what I am doing wrong? Help would be much appreciated!!
Python code:
api = Savoir(rpcuser, rpcpasswd, rpchost, rpcport, chainname)
api.sendwithmetadata('wallet_address_here', json.dumps({'coin':75.0}), 'badcoffeebadcode')
Result:
Error! Status code: 500
Text: {"result":null,"error":{"code":-1,"message":"value is type str, expected real"},"id":1}
Json: {'result': None, 'error': {'code': -1, 'message': 'value is type str, expected real'}, 'id': 1}