Skip to main content

DAHR API Reference

DAHR Class

The DAHR (Data Agnostic HTTPS Relay) class handles proxied HTTP requests with attestation. Each instance maintains its own session and provides attestation for requests made through the Demos network.

Methods

createDahr() Creates a new DAHR instance:
startProxy() Each startProxy call creates one on-chain web2Request transaction that stores only hashes of the response (body and headers), not the full data. After the transaction is confirmed and broadcast, the SDK returns its txHash. Makes a proxied request:
Returns All proxy requests return an IWeb2Result: