Hierarchy

  • BaseWrapper
    • ContractWrapper

Constructors

Properties

contract: ContractModule

Get contract ABI

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