mirror of
https://github.com/jwinterm/cryptonoteRPCwalletGUI.git
synced 2026-10-17 05:51:33 +02:00
Major update to cryptonoteRPCwalletGUI
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
serverURL = 'http://localhost:8082/json_rpc'
|
||||
|
||||
payload = json.dumps({
|
||||
"jsonrpc": "2.0",
|
||||
"method": "store",
|
||||
"params": {}
|
||||
})
|
||||
|
||||
|
||||
def checkwalletrpccall():
|
||||
headers = {'content-type': 'application/json'}
|
||||
resp = requests.get(serverURL, headers=headers, data=payload)
|
||||
output = json.loads(resp.text)
|
||||
print output
|
||||
|
||||
# return output[u'result'][u'balance'], output[u'result'][u'unlocked_balance']
|
||||
|
||||
if __name__ == "__main__":
|
||||
checkwallet()
|
||||
Reference in New Issue
Block a user