Skip to main content

Installation

Install the SDK for your environment: Web SDK:
Node.js SDK:

Basic Usage

1. Initialize the Client

Web SDK:
Node.js SDK:

2. Create a Trace

Web SDK:
Node.js SDK:

3. Update the Trace

As your application flow progresses, add more data: Web SDK:
Node.js SDK:

Complete Example

Here’s a real-world example tracking a blockchain transaction: Web SDK:
Node.js SDK:

Using sendTransaction

If you configure a provider, you can use sendTransaction() on the trace to capture tx hints and errors automatically:

Using MiradorProvider

For a zero-config approach, wrap your wallet provider to automatically capture all transactions:
MiradorProvider works with ethers.js, viem, and any library that accepts an EIP-1193 provider. See the Provider guide for integration examples.

Auto-Flushing

Both the Web SDK and Node.js SDK automatically batch and send trace data at the end of the current JavaScript tick (microtask). You can also call flush() manually at any time to send pending data immediately.

Next Steps