Function bp

  • The function an env on the provided network, postfix, and environment variables.

    Type Parameters

    • T = string

    Parameters

    • net: "ETH"

      The net parameter is a variable representing the network.

    • postfix: string

      The postfix parameter is a string that will be appended to the base topic before returning the final topic string.

    • env: undefined | string = ...

      The env parameter is a string that represents the environment in which the topic is being generated. It is optional and defaults to the value of the CRYPTO_AIO_ENV environment variable from the process environment.

    Returns T

    The function returns a string that is formatted as `CRYPTO_AIO_[${env}]${net}${postfix}