Blockchain transaction tracing graph components for React.
Trace, visualize, and analyze on-chain transaction flows.
- Risk-scored nodes — color-coded risk levels (high / medium / low / unknown) with entity tags
- Path highlighting — click any node to trace the fund flow from root, dimming unrelated edges
- Smooth bezier edges — labeled with transfer amount, token, and timestamp (to the second)
- Two renderers — ReactFlow (DOM-based, up to 500 nodes) and Sigma.js (WebGL, 500+ nodes)
- Dark / Light mode — auto-detects
document.documentElement.classListfordarkclass - Interactive — expand nodes on-demand, delete nodes, zoom / pan / fit-view
- AI-agent friendly — REST API with self-registration, MCP-compatible tool definitions
pnpm add @trustin/txgraphimport { GraphExplorer } from '@trustin/txgraph'
<GraphExplorer
nodes={nodes}
edges={edges}
stats={stats}
onNodeSelect={(node) => console.log(node)}
onNodeExpand={(address) => fetchMore(address)}
onNodeDelete={(address) => remove(address)}
/>txgraph/
packages/react/ # @trustin/txgraph — core React components
examples/local-demo/ # Vite demo app connected to TrustIn API
docs/ # VitePress documentation site
# Install dependencies
pnpm install
# Build the core package
pnpm build
# Run the demo (requires VITE_TRUSTIN_API_KEY in examples/local-demo/.env)
pnpm dev:demo
# Run the docs site
pnpm dev:docs| Layer | Description | Link |
|---|---|---|
| Layer 1 | Use TrustIn Online Explorer at v2.trustin.info | Guide |
| Layer 2 | AI Agent API — self-register and trace addresses | Guide |
| Layer 3 | Run the demo locally with your own API key | Guide |
| Layer 4 | Install @trustin/txgraph and build your own UI |
Guide |
Full documentation: blackman99.github.io/txgraph
MIT