Hierarchy

  • BaseWrapper
    • CoreScannerWrapper

Constructors

  • Create a new CoreScannerWrapper instance

    Parameters

    • config: ApiConfig = ...

      API configuration options

      API configuration options. Contains settings for connecting to the Conflux Core Scanner API.

      • target: ConfluxTarget

        Target network environment

      • OptionalapiKey?: string

        API key for authentication

      • Optionalhost?: string

        Custom API host URL

    Returns CoreScannerWrapper

Properties

Account module for balance and transaction queries

contract: ContractWrapper

Contract module for contract verification and source code

NFT module for NFT balances and transfers

Statistics module for network metrics

Utilities module for method decoding and other tools

Methods

  • Format a timestamp value to a human-readable date string.

    Parameters

    • value: string | number

      The timestamp to format

    Returns string

    Formatted date string

  • Format a CFX value with appropriate decimal places and units.

    Parameters

    • value: string

      The CFX value to format

    Returns string

    Formatted CFX value

  • Format a gas value with appropriate units.

    Parameters

    • value: string

      The gas value to format

    Returns string

    Formatted gas value

  • Format a numeric value with appropriate separators.

    Parameters

    • value: string | number

      The number to format

    Returns string

    Formatted number string

  • Format a value with specified decimal places.

    Parameters

    • value: string

      The value to format

    • decimals: number

      Number of decimal places

    Returns string

    Formatted value with specified decimals