Function getNativeBalance

  • Get the native balance of the node.

    Parameters

    • payload: {
          apiEndpoint: string | URL;
          apiToken: string;
          timeout?: number;
      }
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<string>

    A Promise that resolves with a string representing the native balance.

    Throws

    An error that occurred while processing the request.