mirror of
https://github.com/autistic-symposium/blockchain-data-engineering-toolkit.git
synced 2025-05-07 17:25:05 -04:00
💾
This commit is contained in:
parent
65596b1a3e
commit
b90d4b6ffd
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue