Function fetchFromApi

  • Fetches data from the Onionoo API

    Type Parameters

    • T

    Parameters

    • url: string

      The URL to fetch from

    Returns Promise<T>

    The parsed JSON response

    Throws

    Error if the request fails