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
Optional
apiKey?: stringAPI key for authentication
Optional
host?: stringCustom API host URL
Protected
baseBase URL for the API endpoints
Protected
Optional
apiOptional API key for authenticated requests
Protected
loggerLogger instance for the scanner
Readonly
accountModule for account-related operations
Readonly
contractModule for smart contract operations
Readonly
nftModule for NFT-related operations
Readonly
statisticsModule for statistics and metrics
Readonly
utilsModule for utility functions
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
Main scanner class that provides access to all Conflux Core API modules. Extends the base API class with specific module implementations.
CoreScanner