Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests, json
- rpcPort = 8332
- rpcUser = 'basiliq'
- rpcPassword = 'Pine@pplePizza'
- #Accessing the RPC local server
- serverURL = 'http://' + rpcUser + ':' + rpcPassword + '@localhost:' + str(rpcPort)
- headers = {'content-type': 'application/json'}
- payload = json.dumps({"method": 'listunspent', "params": [0, 999999, ['1KuWLoZuoJgz3N6sLoAwGth9XGm8YuFTGt']], "jsonrpc": "2.0"})
- response = requests.post(serverURL, headers=headers, data=payload)
- print(response.text)
- {"result":[],"error":null,"id":null}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement