A service class for interacting with fungible token (FT) related functionality.

Hierarchy

  • L1XTokenFTService

Constructors

Properties

#client: JSONRPCLib

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

Represents an instance of the L1XCoreStubService, which provides access to core L1X functionality.

#defaultBaseContractAddress: string = ""

Represents a default base contract address for fungible tokens (FT).

#options: ProviderAttrib

Represents the options for cluster provider information associated with the L1XProvider.

Memberof

L1XProvider

Instance

See

ProviderAttrib

Represents an instance of the L1XVMService, which provides access to core L1X functionality.

Methods

  • Handles fallback values for data.

    Parameters

    • data: any

      The data to be checked for fallback.

    • Optional fallbackValue: any

      The fallback value to be used if data is falsy.

    Returns any

    The original data if not falsy, otherwise the fallback value.

  • Makes a read-only call to a smart contract function.

    Parameters

    Returns Promise<string>

    A Promise that resolves with the result of the call, converted from hex to string.

Generated using TypeDoc