Represents a service for interacting with L1X core functionality through JSON-RPC communication. This service provides methods for querying chain state, account state, transaction receipts, events, and more.

Hierarchy

Constructors

Properties

#client: JSONRPCLib

The JSON-RPC client used for communication with the L1X core.

isClientConnected: boolean = false

A boolean indicating whether the client is connected to the L1X core.

Methods

  • Private

    Handles fallback values for data, providing a default if data is undefined or null.

    Parameters

    • data: any

      The data to handle fallback for.

    • Optional fallbackValue: any

      The fallback value to use if data is undefined or null.

    Returns any

    • The original data or the fallback value if data is undefined or null.
  • Private

    Handles transformation of transaction types, applying necessary value transformations.

    Parameters

    • transaction: any

      The transaction object to transform.

    Returns any

    • The transformed transaction object.
  • Parameters

    Returns {
        contract_instance_address: any[];
        max_pool_balance: string;
        max_stake: string;
        min_pool_balance: string;
        min_stake: string;
        staking_period: string;
    }

    • contract_instance_address: any[]
    • max_pool_balance: string
    • max_stake: string
    • min_pool_balance: string
    • min_stake: string
    • staking_period: string
  • Parameters

    Returns {
        arguments: any[];
        contract_instance_address: any[];
        deposit: string;
        function_name: any[];
    }

    • arguments: any[]
    • contract_instance_address: any[]
    • deposit: string
    • function_name: any[]
  • WIP: Retrieves stake information based on the provided attributes.

    Parameters

    • attrib: GetStakeArg

      The attributes for stake retrieval.

    Returns Promise<any>

    • A promise that resolves to the retrieved stake information.

Generated using TypeDoc