A tiny, full-screen terminal dashboard for a running Gridcoin Research wallet daemon (gridcoinresearchd). One static binary, zero runtime dependencies.
Shows:
- Balance (confirmed / unconfirmed / immature / total, plus an immature stake row while a stake is maturing)
- Staking status and difficulty
- Researcher stats (whether the wallet crunches or is investor-only, plus magnitude and pending research reward for crunchers)
- Wallet lock state with live unlock countdown
- Current block height
- Your wallet addresses, grouped into Mine / Others / All tabs, with labels and amounts received, and any address you do not actually own flagged so you never copy it by mistake
- Recent transactions with human-readable status (
upcoming/incoming/sending/confirmed/stake), including beacon advertisements, votes and other on-chain contracts, which the daemon otherwise reports as an anonymous send to nowhere - Transaction details (full txid, address, fee, block hash, timestamps), press
enteron a selected row - Send GRC to any address, with pre-flight address validation and on-demand wallet unlock
- Sign messages with any address you own (proves control of the address)
- Live config panel, edit network / host / port / credentials / refresh interval at runtime without restarting
Supports both mainnet and testnet via a CLI flag.
Download a pre-built binary from the Releases page. Every release is notarised on the Gridcoin blockchain via gridcoin-stamp-action: the checksums.txt hash is recorded on-chain so you can independently verify the artifacts.
curl -sSL https://github.com/gridcat/gridcoinresearch-tui/releases/latest/download/gridcoinresearch-tui_linux_amd64.tar.gz | tar -xz
./gridcoinresearch-tuiOr build from source:
git clone https://github.com/gridcat/gridcoinresearch-tui
cd gridcoinresearch-tui
make build
./gridcoinresearch-tuiZero config, reads ~/.GridcoinResearch/gridcoinresearch.conf, connects to 127.0.0.1:
./gridcoinresearch-tui # mainnet
./gridcoinresearch-tui --testnet # testnet (reads ~/.GridcoinResearch/testnet/gridcoinresearch.conf)No local Gridcoin install required:
./gridcoinresearch-tui \
--rpc-host node.example.com \
--rpc-port 15715 \
--rpc-user myuser \
--rpc-password mypassOr via env vars (recommended for the password):
export GRC_RPC_HOST=node.example.com
export GRC_RPC_USER=myuser
export GRC_RPC_PASSWORD=mypass
./gridcoinresearch-tuiIf the wallet runs in Docker, run the TUI inside its container:
docker exec -it <wallet-container> gridcoinresearch-tuiA docker exec -it session outlives the ssh connection that started it. Close
the terminal without quitting and the TUI keeps running inside the container,
with no way of knowing you left. For a session you want to keep around, use
tmux.
To stop a lost session from polling the daemon forever, the TUI sends the
terminal a device-attributes query about once a minute. Terminals answer it on
their own, and so do tmux and screen. After three unanswered queries the TUI
stops polling, and it starts again as soon as the terminal answers or you press
a key. Going days without typing doesn't matter while the terminal is attached.
If your terminal never answers the query at all, the TUI never pauses. If the
footer shows paused: terminal not answering since HH:MM, your terminal stopped
answering; press any key to resume.
Testnet paints the whole UI orange (borders, labels, values, the focused panel,
even the status colours) while mainnet keeps the neutral grey-and-blue look. Same
orange-for-testnet convention the *.gridcoin.club frontends use, so a testnet window
is unmistakable in a row of tmux panes. Status colours are warmed rather than dropped:
yellow/orange/red-orange still read as a traffic light. Toggling the network in the
config panel repaints immediately, no restart needed.
Schemes live in the Schemes map in internal/theme/theme.go; adding one is a single entry, and
every style picks it up automatically.
| Flag | Env var | Default | Notes |
|---|---|---|---|
--mainnet |
— | on | Default network. Mutually exclusive with --testnet. |
--testnet |
— | off | Use testnet conf path and default port. |
--rpc-host HOST |
GRC_RPC_HOST |
127.0.0.1 |
|
--rpc-port PORT |
GRC_RPC_PORT |
15715 mainnet / 25715 testnet |
|
--rpc-user USER |
GRC_RPC_USER |
empty | If both user and password are empty, no Authorization header is sent. |
--rpc-password PASS |
GRC_RPC_PASSWORD |
empty | Prefer env var over flag to keep it out of ps. If --rpc-user is set but no password is resolved, you'll be prompted at startup (input is masked). |
--conf PATH |
— | ~/.GridcoinResearch[/testnet]/gridcoinresearch.conf |
Best-effort; missing file is fine. |
--refresh DUR |
— | 10s |
How often to poll the daemon. |
--debug-log PATH |
— | empty | Redirect stderr to a file so crash dumps land there instead of wrecking the terminal. See Troubleshooting. |
--no-update-check |
GRC_NO_UPDATE_CHECK |
off | Disable the background release check. The manual u key still works. |
--peer-sharing on|off |
GRC_PEER_SHARING |
ask once | Opt in or out of peer sharing without being asked. Overrides the saved answer for that run and is not written back, which is what makes it safe in a script or container. |
Flags accept both single- and double-dash forms (-testnet and --testnet are equivalent), to match Go's standard flag parser. --help prints the single-dash form by convention.
Resolution order, highest wins: flag → env var → conf file → built-in default.
| Key | Action |
|---|---|
↑ / ↓ / k / j |
Move the cursor in the focused panel |
pgup / pgdn / ctrl+u / ctrl+d |
Scroll the focused panel by a page |
← / → / h / l |
Pan the My Addresses panel sideways when a row is too wide to fit |
enter |
Open details for the selected transaction |
g / G / home / end |
Jump to first / last row in the focused panel |
1 / 2 / 3 |
Filter the My Addresses panel: Mine / Others / All |
/ |
Search the active address tab by label or address; enter keeps the search and esc clears it |
+ / = / - |
Grow / shrink the My Addresses panel (moves the split with the transactions list) |
0 |
Reset the panel split to its automatic size |
s |
Open the send dialog |
m |
Open the sign-message dialog (pre-fills the address when the addresses panel is focused) |
e |
Edit the label of the selected address (only when the My Addresses panel is focused) |
n |
Add an address and label to the wallet address book |
c |
Open the live config panel |
r |
Force a refresh now |
tab |
Switch focus between the transactions and My Addresses panels |
tab / shift+tab |
Navigate fields inside a modal |
? |
Open the help overlay (all keys and what they do) |
esc |
Close a modal |
q / ctrl+c |
Quit |
Inside the send and config modals the focused field is marked with ▸ so you can tell what is active on terminals without colour support. The selected transaction row gets the same marker.
When sending, type a recipient address as usual, or press tab or ↓ to open a dropdown of labeled address-book entries. Saved destinations are validated before the amount screen just like a manually entered address.
The "My Addresses" panel lists every address listreceivedbyaddress returns for your wallet, including ones that have never received any coins. Each row shows the address plus its label, watch-only flag, and amount received. Some rows are flagged ⚠ not yours in red: these are addresses you have only labelled but do not actually own (for example, someone else's address you saved as a send target). They turn up here because listreceivedbyaddress hands back your whole address book rather than just your own keys; the flag comes straight from the daemon's own validateaddress ismine answer, so you never copy a foreign address thinking it is one of yours. Those foreign rows live under the Others tab: the panel opens on Mine (your own addresses, plus any whose ownership the daemon has not resolved yet) so they don't clutter the common case, and All shows everything together. Press 1, 2, 3 to switch tabs; each shows its own count in the header. Press / from anywhere on the dashboard to focus the address panel and search its active tab as you type; like the same search key in Vim and less, it passes straight through tmux without conflicting with tmux's prefix. The search checks both labels and addresses: label matching is case-insensitive, while address matching preserves case because Gridcoin addresses are case-sensitive. Press enter to keep the search while navigating or editing matching rows, / to change it, and esc to clear it. Rows that are too wide for the panel are clipped rather than wrapped (a muted ‹/› marks hidden content); focus the panel with tab and use ←/→ to pan sideways and read the rest. Press e on the selected address to set or change its label (an empty value clears it); the change is written to the wallet via setaccount and shown after the next refresh. Press n to add a new address-book entry: enter a valid address and a non-empty label, then the TUI saves it through the same RPC. One quirk worth knowing: when you relabel an address that is its account's current receiving address, gridcoinresearchd also generates a fresh replacement address that keeps the old label. That is Gridcoin's legacy account system rather than anything the TUI does (the Qt wallet sidesteps it only by setting labels in-process, and Gridcoin exposes no label RPC that skips the behaviour); no coins are affected, you simply end up with one extra address. At normal terminal widths the address itself always fits, so you can still mouse-select and copy it with your terminal's native shortcut. The panel shares vertical space with the transactions list: it opens at about a third of what's available, with a current/total indicator in its header when it can't show every row at once. Press +/- to grow or shrink that split and 0 to snap back to the automatic size; once you have resized it the panel holds its height (padding with blank rows) so it stays put as you switch tabs, and it can never squeeze the transactions list below three rows. Resizing the terminal taller gives both panels more room.
Press m to sign a message with one of your wallet's addresses. The resulting base64 signature can be verified by anyone via gridcoinresearchd verifymessage <address> <signature> <message>, proving you hold the private key for that address.
If the addresses panel is focused (tab to switch), the highlighted address is pre-filled. The chosen address stays visible at the top of the modal on every step, so you always know which key the signature is being produced with.
The wallet is only unlocked when it has to be. An unencrypted wallet, or one you have already unlocked yourself (e.g. for staking), skips the passphrase prompt entirely. When the TUI did do the unlock, it re-locks immediately after the signature is produced.
Edits in the config panel are session-only: they apply immediately (the RPC client is rebuilt against the new endpoint and a fresh fetch runs) but are not written to disk. Next launch re-resolves from flags/env/conf as usual. The exception is Name: a local label for the wallet, shown in the header's top border and as the terminal title (handy for telling Termux sessions apart). It is saved to state.json per network and host:port, so each wallet you run keeps its own. Toggling the network auto-updates the port field if it still held the old network's default, so you don't need to remember port numbers.
The one exception is the Peer sharing row, which is written to disk. A consent decision the program forgets on exit is not a decision, and re-asking every launch would be nagging rather than consent.
Off unless you turn it on. You are asked once, on first run, and your answer is remembered.
gridcoin.club publishes a list of reachable Gridcoin peers that new wallets use to find the network. If you opt in, the TUI periodically sends the addresses of the peers your node dialled out to. That gives the list a second vantage point: a node that answers from the list's own server may still be firewalled from where you are, and only a real wallet somewhere else can tell the difference.
A report contains:
- the IP and port of peers this node connected out to
- a random identifier your wallet generated locally, so repeat reports can be counted without identifying you
- this wallet's version
It does not contain your addresses, balances or transactions, your CPID or anything about your BOINC work, your own IP address, or your peers' version strings. Only outbound peers are shared: an inbound peer's address carries an ephemeral source port that nothing can connect back to, so sharing it would just add dead entries to a public list. Private, loopback, CGNAT and documentation addresses are filtered out before anything is sent.
Reports go to addnodes.gridcoin.club about once an hour, and only while the TUI is open. Nothing is sent in the background when the program is not running.
To change your mind, press c and toggle Peer sharing, or start with --peer-sharing=off. The saved answer lives in state.json under your OS config directory (~/.config/gridcoinresearch-tui/ on Linux); deleting that file resets both the answer and the random identifier.
- The TUI never stores your wallet passphrase. It is held in memory only for the duration of a single
sendtoaddresscall, then the wallet is immediately re-locked viawalletlock. - Pass
--rpc-passwordvia env var, not the command line: flags are visible inps. Or omit it entirely: when--rpc-userresolves but no password does, the TUI prompts for the password at startup with masked input (skipped on non-interactive stdin). - Outbound network traffic is limited to three things, all to hosts you can name: your own daemon over RPC,
api.github.comfor the release check (--no-update-checkdisables it), and, only if you opt in, peer addresses toaddnodes.gridcoin.club(see Peer sharing). Nothing else phones anywhere. - This tool talks plain HTTP JSON-RPC. Do not expose your daemon's RPC port over the public internet. Use an SSH tunnel for remote access:
ssh -L 15715:127.0.0.1:15715 user@node.example.com ./gridcoinresearch-tui --rpc-user X --rpc-password Y
gridcoinresearchd opens its RPC port only after it has loaded the block index and the wallet, so while it starts, the TUI shows a connection error. If instead the footer says daemon hasn't answered for 45s (waiting on getwalletinfo), the daemon took the request and has said nothing since. It is either busy with something long, such as another program's call, or stuck, and its debug.log shows what it did last. The TUI says so once the daemon has been quiet for 30 seconds while a dashboard call waits, and the count carries on across the 5-minute timeouts of the calls it retries. While its own address-list or transaction scan is running it stays quiet about it: those walk the whole wallet and can take minutes on a big one. no connection to the daemon means the connection itself never opened: check the host, the port and any firewall in between.
If the TUI ever dies after a long run, it leaves your terminal in a weird state: you type but nothing echoes, even though the shell still runs what you type, often after a wall of Go stack-trace text. That means it hit a fatal Go runtime error. That kind of error exits without running the normal terminal-restore, so to get a sane shell back, run reset (or stty sane).
To capture what actually happened so it can be fixed, start the TUI with --debug-log:
./gridcoinresearch-tui --debug-log ~/grctui-crash.logThat points the program's stderr at the file, so the crash dump lands there instead of being painted onto (and lost with) the full-screen display. After a crash, attach that file to a bug report. On Linux the redirect also captures fatal runtime errors; on other platforms it captures the program's own error output.
MIT
Made with ❤️ by @gridcat