Skip to main content
@miradorlabs/web-sdk is Mirador’s browser SDK. It is actively supported and is the recommended way to instrument front-end web3 applications.
For server-side services, use a standard OpenTelemetry SDK instead. The Node.js SDK is deprecated.

When to use it

Use the Web SDK when your telemetry starts in the browser and involves a wallet:
  • You need the transaction lifecycle from user intent through wallet signature to on-chain confirmation, including the steps that never reach your backend (wallet prompts, user rejections, chain switches).
  • You want zero-config capture by wrapping an EIP-1193 provider, rather than hand-instrumenting every call site.
  • You want automatic browser environment metadata attached to each trace.
If you only need standard browser telemetry (page loads, fetch/XHR timing) without wallet capture, the OpenTelemetry JS browser SDK works against the same OTLP endpoint.

Features

Install

Or load it from a CDN with no bundler. See Installation for the UMD global and module formats.

Quick example

Wrap a provider instead, and every transaction is captured automatically:

Relationship to OpenTelemetry

Both paths feed the same trace pipeline, so a browser trace and an OTel backend trace can be correlated into one flow. The Web SDK’s web3.* hint methods and OTel’s mirador.* enrichment events trigger the same backend enrichment. A typical setup: Web SDK in the browser for the wallet half, OpenTelemetry on the server for the API half, joined by a shared trace ID.

Learn more

Installation

Package managers, CDN, module formats, browser support

Core concepts

Traces, spans, events, attributes, and plugins

Provider guide

Zero-config capture with ethers.js and viem

API reference

Client, Trace, Span, and type definitions