Am currently sending RPC calls to bitcoind in Python3 in series using JSON:
import json, requests
def pull(command, foo):
headers = {'content-type': 'application/json'}
payload = json.dumps({"method": command, "params": [foo], "jsonrpc": "2.0"})
response = requests.get(serverURL, headers=headers, data=payload)
return(response.json()['result'])
Ex:
pull('getblock', BLOCKHASH)
and hope to improve call speeds by doing batch RPC calls.
Is this possible and how so?