Creates an instance of CoreScanner with all available modules.
Configuration object for the scanner
API configuration options. Contains settings for connecting to the Conflux Core Scanner API.
Target network environment
OptionalapiKey?: stringAPI key for authentication
Optionalhost?: stringCustom API host URL
ProtectedbaseBase URL for the API endpoints
Protected OptionalapiOptional API key for authenticated requests
ProtectedloggerLogger instance for the scanner
ReadonlyaccountModule for account-related operations
ReadonlycontractModule for smart contract operations
ReadonlynftModule for NFT-related operations
ReadonlystatisticsModule for statistics and metrics
ReadonlyutilsModule for utility functions
ProtectedfetchProtectedMakes 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
Main scanner class that provides access to all Conflux Core API modules. Extends the base API class with specific module implementations.
CoreScanner