# ukaiukai164-a11y/monero-ts architecture

> Architecture diagram of the GitHub repository ukaiukai164-a11y/monero-ts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ukaiukai164-a11y/monero-ts
- Repository: https://github.com/ukaiukai164-a11y/monero-ts

## Overview

monero-ts is a TypeScript library for Monero applications, with RPC clients and WebAssembly-backed client-side wallets. The main workflow is to connect to a daemon or wallet service, operate through a common wallet API, and inspect or query typed chain and wallet data. The graph also preserves connection management, worker/WASM support, notifications, and documented wallet capabilities. Relationships are limited to README statements and the supplied source excerpts or SOURCE INDEX; some capability branches are documented but their implementation details were not sampled.

Main entry points: [`src/main/ts/wallet/MoneroWalletRpc.ts`](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/MoneroWalletRpc.ts) (Wallet RPC client), [`src/main/ts/wallet/MoneroWalletFull.ts`](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/MoneroWalletFull.ts) (Full wallet), [`src/main/ts/daemon/MoneroDaemonRpc.ts`](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/MoneroDaemonRpc.ts) (Daemon RPC client), [`src/main/ts/wallet/model/MoneroTxQuery.ts`](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTxQuery.ts) (Transaction query)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Public API"]
  node_exports["Library entry point<br/>[index.ts]"]
end

subgraph group_services["Monero Services"]
  node_daemon["Daemon API<br/>[MoneroDaemon.ts]"]
  node_daemonrpc["Daemon RPC client<br/>[MoneroDaemonRpc.ts]"]
  node_notifications["Sync and chain notifications"]
end

subgraph group_wallets["Wallet Implementations"]
  node_rpcwallet["Wallet RPC client<br/>[MoneroWalletRpc.ts]"]
  node_fullwallet["Full wallet"]
  node_walletapi["Wallet interface<br/>[MoneroWallet.ts]"]
end

subgraph group_models["Domain Models"]
  node_chainmodels["Block and chain models<br/>[MoneroBlock.ts]"]
  node_txmodel["Transaction model<br/>[MoneroTx.ts]"]
  node_outputmodel["Output model<br/>[MoneroOutput.ts]"]
  node_txwallet["Wallet transaction<br/>[MoneroTxWallet.ts]"]
  node_txquery["Transaction query<br/>[MoneroTxQuery.ts]"]
  node_transferquery["Transfer query"]
  node_outputquery["Output query"]
  node_outgoing["Outgoing transfer"]
  node_outputwallet["Wallet output"]
  node_txconfig["Transaction configuration<br/>[MoneroTxConfig.ts]"]
end

subgraph group_runtime["Runtime Support"]
  node_rpcconnection["RPC connection"]
  node_http["HTTP client<br/>[HttpClient.ts]"]
  node_connectionmgr["Connection manager"]
  node_libraryutils["WASM and worker runtime<br/>[LibraryUtils.ts]"]
  node_wasmbridge["WebAssembly bridge"]
end

node_app(("Monero application"))
node_daemonservice["Monero daemon"]
node_walletbackend["Monero wallet backend"]
node_externalwallet["Wallet RPC service"]

node_app -->|"uses"| node_exports
node_app -->|"connects to"| node_daemonrpc
node_app -->|"connects to"| node_rpcwallet
node_app -->|"creates"| node_fullwallet
node_daemonrpc -->|"sends RPC"| node_daemonservice
node_rpcwallet -->|"sends RPC"| node_externalwallet
node_rpcwallet -->|"implements"| node_walletapi
node_fullwallet -->|"implements"| node_walletapi
node_fullwallet -->|"uses runtime"| node_libraryutils
node_fullwallet -->|"uses daemon RPC"| node_daemonrpc
node_daemonrpc -->|"uses API"| node_daemon
node_rpcconnection -->|"sends HTTP"| node_http
node_connectionmgr -->|"manages"| node_rpcconnection
node_libraryutils -.->|"invokes bindings"| node_wasmbridge
node_daemonrpc -->|"returns chain data"| node_chainmodels
node_chainmodels -->|"deserializes transactions"| node_txmodel
node_txmodel -->|"contains outputs"| node_outputmodel
node_txwallet -->|"models transfers"| node_outgoing
node_txwallet -->|"models outputs"| node_outputwallet
node_txquery -->|"filters transfers"| node_transferquery
node_txquery -->|"filters outputs"| node_outputquery
node_rpcwallet -->|"queries transactions"| node_txquery
node_rpcwallet -->|"configures sends"| node_txconfig
node_fullwallet -->|"emits sync events"| node_notifications
node_daemon -->|"notifies chain changes"| node_notifications
node_http -->|"uses utilities"| node_libraryutils

click node_exports "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/index.ts"
click node_daemon "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/MoneroDaemon.ts"
click node_daemonrpc "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/MoneroDaemonRpc.ts"
click node_rpcwallet "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/MoneroWalletRpc.ts"
click node_fullwallet "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/MoneroWalletFull.ts"
click node_walletapi "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/MoneroWallet.ts"
click node_chainmodels "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/model/MoneroBlock.ts"
click node_txmodel "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/model/MoneroTx.ts"
click node_outputmodel "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/model/MoneroOutput.ts"
click node_txwallet "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTxWallet.ts"
click node_txquery "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTxQuery.ts"
click node_transferquery "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTransferQuery.ts"
click node_outputquery "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroOutputQuery.ts"
click node_outgoing "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroOutgoingTransfer.ts"
click node_outputwallet "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroOutputWallet.ts"
click node_txconfig "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTxConfig.ts"
click node_rpcconnection "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/common/MoneroRpcConnection.ts"
click node_http "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/common/HttpClient.ts"
click node_connectionmgr "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/common/MoneroConnectionManager.ts"
click node_libraryutils "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/common/LibraryUtils.ts"
click node_wasmbridge "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/cpp/monero_wasm_bridge.cpp"
click node_notifications "https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/model/MoneroDaemonListener.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_exports toneBlue
class node_daemon,node_daemonrpc,node_notifications toneAmber
class node_rpcwallet,node_fullwallet,node_walletapi toneMint
class node_chainmodels,node_txmodel,node_outputmodel,node_txwallet,node_txquery,node_transferquery,node_outputquery,node_outgoing,node_outputwallet,node_txconfig toneRose
class node_rpcconnection,node_http,node_connectionmgr,node_libraryutils,node_wasmbridge,node_app,node_daemonservice,node_walletbackend,node_externalwallet toneIndigo
```

## Components

### Public API

- [Library entry point](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/index.ts): `index.ts`

### Monero Services

- [Daemon API](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/MoneroDaemon.ts): `src/main/ts/daemon/MoneroDaemon.ts`
- [Daemon RPC client](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/MoneroDaemonRpc.ts): `src/main/ts/daemon/MoneroDaemonRpc.ts`
- [Sync and chain notifications](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/model/MoneroDaemonListener.ts): `src/main/ts/daemon/model/MoneroDaemonListener.ts`

### Wallet Implementations

- [Wallet RPC client](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/MoneroWalletRpc.ts): `src/main/ts/wallet/MoneroWalletRpc.ts`
- [Full wallet](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/MoneroWalletFull.ts): `src/main/ts/wallet/MoneroWalletFull.ts`
- [Wallet interface](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/MoneroWallet.ts): `src/main/ts/wallet/MoneroWallet.ts`

### Domain Models

- [Block and chain models](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/model/MoneroBlock.ts): `src/main/ts/daemon/model/MoneroBlock.ts`
- [Transaction model](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/model/MoneroTx.ts): `src/main/ts/daemon/model/MoneroTx.ts`
- [Output model](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/daemon/model/MoneroOutput.ts): `src/main/ts/daemon/model/MoneroOutput.ts`
- [Wallet transaction](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTxWallet.ts): `src/main/ts/wallet/model/MoneroTxWallet.ts`
- [Transaction query](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTxQuery.ts): `src/main/ts/wallet/model/MoneroTxQuery.ts`
- [Transfer query](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTransferQuery.ts): `src/main/ts/wallet/model/MoneroTransferQuery.ts`
- [Output query](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroOutputQuery.ts): `src/main/ts/wallet/model/MoneroOutputQuery.ts`
- [Outgoing transfer](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroOutgoingTransfer.ts): `src/main/ts/wallet/model/MoneroOutgoingTransfer.ts`
- [Wallet output](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroOutputWallet.ts): `src/main/ts/wallet/model/MoneroOutputWallet.ts`
- [Transaction configuration](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/wallet/model/MoneroTxConfig.ts): `src/main/ts/wallet/model/MoneroTxConfig.ts`

### Runtime Support

- [RPC connection](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/common/MoneroRpcConnection.ts): `src/main/ts/common/MoneroRpcConnection.ts`
- [HTTP client](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/common/HttpClient.ts): `src/main/ts/common/HttpClient.ts`
- [Connection manager](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/common/MoneroConnectionManager.ts): `src/main/ts/common/MoneroConnectionManager.ts`
- [WASM and worker runtime](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/ts/common/LibraryUtils.ts): `src/main/ts/common/LibraryUtils.ts`
- [WebAssembly bridge](https://github.com/ukaiukai164-a11y/monero-ts/blob/master/src/main/cpp/monero_wasm_bridge.cpp): `src/main/cpp/monero_wasm_bridge.cpp`

### Other components

- **Monero application**
- **Monero daemon**
- **Monero wallet backend**
- **Wallet RPC service**

## Connections

- Monero application → Library entry point: uses
- Monero application → Daemon RPC client: connects to
- Monero application → Wallet RPC client: connects to
- Monero application → Full wallet: creates
- Daemon RPC client → Monero daemon: sends RPC
- Wallet RPC client → Wallet RPC service: sends RPC
- Wallet RPC client → Wallet interface: implements (evidence: `src/main/ts/wallet/MoneroWalletRpc.ts`)
- Full wallet → Wallet interface: implements (evidence: `src/main/ts/wallet/MoneroWalletFull.ts`)
- Full wallet → WASM and worker runtime: uses runtime (evidence: `src/main/ts/wallet/MoneroWalletFull.ts`)
- Full wallet → Daemon RPC client: uses daemon RPC (evidence: `src/main/ts/wallet/MoneroWalletFull.ts`)
- Daemon RPC client → Daemon API: uses API (evidence: `src/main/ts/daemon/MoneroDaemonRpc.ts`)
- RPC connection → HTTP client: sends HTTP (evidence: `src/main/ts/common/MoneroRpcConnection.ts`)
- Connection manager → RPC connection: manages (evidence: `src/main/ts/common/MoneroConnectionManager.ts`)
- WASM and worker runtime → WebAssembly bridge: invokes bindings
- Daemon RPC client → Block and chain models: returns chain data (evidence: `src/main/ts/daemon/MoneroDaemonRpc.ts`)
- Block and chain models → Transaction model: deserializes transactions (evidence: `src/main/ts/daemon/model/MoneroBlock.ts`)
- Transaction model → Output model: contains outputs (evidence: `src/main/ts/daemon/model/MoneroTx.ts`)
- Wallet transaction → Outgoing transfer: models transfers (evidence: `src/main/ts/wallet/model/MoneroTxWallet.ts`)
- Wallet transaction → Wallet output: models outputs (evidence: `src/main/ts/wallet/model/MoneroTxWallet.ts`)
- Transaction query → Transfer query: filters transfers (evidence: `src/main/ts/wallet/model/MoneroTxQuery.ts`)
- Transaction query → Output query: filters outputs (evidence: `src/main/ts/wallet/model/MoneroTxQuery.ts`)
- Wallet RPC client → Transaction query: queries transactions (evidence: `src/main/ts/wallet/MoneroWalletRpc.ts`)
- Wallet RPC client → Transaction configuration: configures sends (evidence: `src/main/ts/wallet/MoneroWalletRpc.ts`)
- Full wallet → Sync and chain notifications: emits sync events
- Daemon API → Sync and chain notifications: notifies chain changes (evidence: `src/main/ts/daemon/MoneroDaemon.ts`)
- HTTP client → WASM and worker runtime: uses utilities (evidence: `src/main/ts/common/HttpClient.ts`)
