Off-Narrative-Labs / Tuxedo

Write UTXO-based Substrate Runtimes
https://off-narrative-labs.github.io/Tuxedo/
Apache License 2.0
56 stars 17 forks source link

CLI Wallet -> Indexer #192

Open JoshOrndorff opened 6 months ago

JoshOrndorff commented 6 months ago

It occurred to me while on a call with @altimario and his team that our current CLI wallet is not that far off from a (POC) indexer. It actually already syncs a local index of relevant UTXOs.

Imagine we add an RPC server to the wallet that can provide the same kind of info that the wallet cli subcommands currently can. This would be useful for a lot of dApps.

This will be especially important to ease a growing pain for people coming from EVM, FRAME, or other account-based systems. They are used to getting complete info about the current state over a single RPC call. A UTXO indexer can do that, but a node can't.