get_last_headers
Documentation for eth_defi.event_reader.fast_json_rpc.get_last_headers function.
- get_last_headers()[source]
Get last HTTP reply headers of the JSON-RPC API call.
Debug for RPC providers
Gives insight for routing of proxy providers like dRPC so you can disable faulty market place providers
Example output:
{'Date': 'Wed, 09 Apr 2025 14:56:48 GMT', 'Content-Type': 'application/json', 'Content-Length': '112', 'Connection': 'keep-alive', 'access-control-allow-origin': '*', 'Content-Encoding': 'gzip', 'vary': 'Accept-Encoding', 'x-drpc-owner-id': '2580e13b-d8a6-48a3-bdaa-67bc5972c7f5', 'x-drpc-owner-tier': 'paid', 'x-drpc-provider-id': 'drpc-core-free', 'x-drpc-trace-id': '3ac007d0de35bae3d390789476db31cd', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'cf-cache-status': 'DYNAMIC', 'Server': 'cloudflare', 'CF-RAY': '92dada6e5a7aed3f-SJC'}
- Returns
Last HTTP reply headers from the JSON-RPC call.
- Return type