Skip to content

fromUrl

fromUrl(baseUrl): Provider

Defined in: src/ZkConfig.ts:147

Create a ZK config provider that loads from an HTTP server.

This provider fetches compiled contract artifacts over HTTP. Use this in browser environments or when artifacts are hosted on a CDN.

Parameters

baseUrl

string

Base URL where ZK artifacts are hosted

Returns

Provider

A ZK config provider instance

Example

const zkConfig = Midday.ZkConfig.fromUrl('https://cdn.example.com/zk');

Since

0.3.0