I have used that api. First of all I made witness node and wallet which runs on port 8090 and 8092 respectively, then connect to that api with above code. Import desired private key into cli_wallet(with command line) and run above code, this code can transfer funds from one account to another. In this code you mentioned localhost. My first question is how can I connect to remote host? My second question is how can I import private key through python code then transfer funds to other account? Or is there any rpc api of graphene for transferring funds. I used following code but it is not working. Can anybody tell me what is missing in that code?
import json
from grapheneapi import GrapheneAPI
if __name__ == '__main__':
client = GrapheneAPI("wss://bitshares.openledger.info/ws", 443, "", "")
res = client.transfer("fromaccount", "toaccount", "10", "BTS", "Sending 10 BTS", True);