How ukaiukai164-a11y/monero-ts works
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: MoneroWalletRpc.ts Wallet RPC client · MoneroWalletFull.ts Full wallet · MoneroDaemonRpc.ts Daemon RPC client · MoneroTxQuery.ts Transaction query
Components 26
Public API
- Library entry point
index.ts
Monero Services
- Daemon API
src/main/ts/daemon/MoneroDaemon.ts - Daemon RPC client
src/main/ts/daemon/MoneroDaemonRpc.ts - Sync and chain notifications
src/main/ts/daemon/model/MoneroDaemonListener.ts
Wallet Implementations
- Wallet RPC client
src/main/ts/wallet/MoneroWalletRpc.ts - Full wallet
src/main/ts/wallet/MoneroWalletFull.ts - Wallet interface
src/main/ts/wallet/MoneroWallet.ts
Domain Models
- Block and chain models
src/main/ts/daemon/model/MoneroBlock.ts - Transaction model
src/main/ts/daemon/model/MoneroTx.ts - Output model
src/main/ts/daemon/model/MoneroOutput.ts - Wallet transaction
src/main/ts/wallet/model/MoneroTxWallet.ts - Transaction query
src/main/ts/wallet/model/MoneroTxQuery.ts - Transfer query
src/main/ts/wallet/model/MoneroTransferQuery.ts - Output query
src/main/ts/wallet/model/MoneroOutputQuery.ts - Outgoing transfer
src/main/ts/wallet/model/MoneroOutgoingTransfer.ts - Wallet output
src/main/ts/wallet/model/MoneroOutputWallet.ts - Transaction configuration
src/main/ts/wallet/model/MoneroTxConfig.ts
Runtime Support
- RPC connection
src/main/ts/common/MoneroRpcConnection.ts - HTTP client
src/main/ts/common/HttpClient.ts - Connection manager
src/main/ts/common/MoneroConnectionManager.ts - WASM and worker runtime
src/main/ts/common/LibraryUtils.ts - WebAssembly bridge
src/main/cpp/monero_wasm_bridge.cpp
Other components
- Monero application
- Monero daemon
- Monero wallet backend
- Wallet RPC service
Connections 26
- 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
src/main/ts/wallet/MoneroWalletRpc.ts - Full wallet → Wallet interface: implements
src/main/ts/wallet/MoneroWalletFull.ts - Full wallet → WASM and worker runtime: uses runtime
src/main/ts/wallet/MoneroWalletFull.ts - Full wallet → Daemon RPC client: uses daemon RPC
src/main/ts/wallet/MoneroWalletFull.ts - Daemon RPC client → Daemon API: uses API
src/main/ts/daemon/MoneroDaemonRpc.ts - RPC connection → HTTP client: sends HTTP
src/main/ts/common/MoneroRpcConnection.ts - Connection manager → RPC connection: manages
src/main/ts/common/MoneroConnectionManager.ts - WASM and worker runtime → WebAssembly bridge: invokes bindings
- Daemon RPC client → Block and chain models: returns chain data
src/main/ts/daemon/MoneroDaemonRpc.ts - Block and chain models → Transaction model: deserializes transactions
src/main/ts/daemon/model/MoneroBlock.ts - Transaction model → Output model: contains outputs
src/main/ts/daemon/model/MoneroTx.ts - Wallet transaction → Outgoing transfer: models transfers
src/main/ts/wallet/model/MoneroTxWallet.ts - Wallet transaction → Wallet output: models outputs
src/main/ts/wallet/model/MoneroTxWallet.ts - Transaction query → Transfer query: filters transfers
src/main/ts/wallet/model/MoneroTxQuery.ts - Transaction query → Output query: filters outputs
src/main/ts/wallet/model/MoneroTxQuery.ts - Wallet RPC client → Transaction query: queries transactions
src/main/ts/wallet/MoneroWalletRpc.ts - Wallet RPC client → Transaction configuration: configures sends
src/main/ts/wallet/MoneroWalletRpc.ts - Full wallet → Sync and chain notifications: emits sync events
- Daemon API → Sync and chain notifications: notifies chain changes
src/main/ts/daemon/MoneroDaemon.ts - HTTP client → WASM and worker runtime: uses utilities
src/main/ts/common/HttpClient.ts