mirror of
https://github.com/autistic-symposium/blockchain-data-engineering-toolkit.git
synced 2025-04-25 10:19:13 -04:00
💾
This commit is contained in:
parent
65596b1a3e
commit
b90d4b6ffd
@ -145,6 +145,7 @@ def send_rpc_request(url, method, params=None) -> dict:
|
||||
|
||||
params = params or []
|
||||
data = {'jsonrpc': '2.0', 'method': method, 'params': params, 'id': 1}
|
||||
log_debug(f'Querying {url} with {data}')
|
||||
|
||||
try:
|
||||
response = requests.post(url, headers={'Content-Type': 'application/json'}, json=data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user