Protected
baseBase URL for the API endpoints
Protected
Optional
apiOptional API key for authenticated requests
Protected
loggerLogger instance for debugging and error tracking
Protected
fetchProtected
Makes an API request with the given parameters. Handles parameter sanitization, API key inclusion, and error handling.
API endpoint to call
Query parameters
Promise resolving to the API response
Get block number by Unix timestamp
Base API class for making HTTP requests to the Conflux Core API. Provides common functionality for API endpoints including request handling and error management.
CoreApi