• Calls a Data Proxy Node the same way httpFetch does, but checks the signature and

    Parameters

    • url: string

      The URL of the Data Proxy Node you want to access

    • publicKey: null | string = null

      Optional: The public key of the proxy node, verifies if the signature came from this public key

    • options: HttpFetchOptions = ...

      Optional: Allows you to set headers, method, body

    Returns HttpResponse

    Promise with information about the response

    Example

    const response = proxyHttpFetch("https://swapi.dev/api/planets/1/");

    if (response.ok) {
    const data = response.bytes.toUtf8String();
    // Do something with data
    } else {
    // Error occured
    }