Selfnode

Use Ethereum without telling anyone who you are: a private wallet, explorer and swap app.

Selfnode

Created At

ETHGlobal Mumbai

Project Description

Almost every wallet sends your IP address, every address you look up and every trade you're about to make to an RPC provider, and explorers and swap apps add Etherscan's and Uniswap's servers on top. Selfnode is a wallet, block explorer and swap app where none of them learn who you are.

Private mode is the default: every RPC call, including label lookups and every transaction broadcast, goes through Anon-RPC, the Ethereum Foundation's standard, over the Nox anonymity network. If Nox fails, Selfnode switches to Nym (or Tor, if you set a gateway), tells you, and switches back when Nox recovers. It never falls back to a direct connection unless you approve that one request. Verified mode checks answers against Ethereum consensus with the Helios light client; it connects directly, and the app says so. My node mode reads from your own node, and the desktop app for macOS and Windows can download, verify and run a pruned Nethermind + Nimbus node for you. Transactions are still broadcast through Anon-RPC, so your node's peers don't learn your IP.

Selfnode includes a wallet (Sepolia, multiple wallets and accounts, keys encrypted on your device, a plain-English preview before every signature), an Etherscan-style explorer (Sepolia and mainnet, read-only: live blocks and transactions, address activity, ENS names) with address labels, scam warnings and decoded function names, and Uniswap v4 swaps quoted on-chain, with no Uniswap API and no API keys. The labels are an open dataset we mirrored into Arkiv, so any wallet or explorer can query it without asking us; a public Data page lets anyone browse it. There's no Selfnode backend: the app is static files, and a copy is also served from Swarm, so it keeps working if our domain disappears. A Privacy page sets out exactly what each third party learns in each mode.

How it's Made

A pnpm monorepo in TypeScript: a shared core (transport router, wallet, explorer, swap and labels), a React + Vite web app served as static files from a Cloudflare Worker with a strict CSP, and an Electron desktop app. No backend.

Anon-RPC: the @anon-rpc/browser-harness worker is passed to viem as its fetch. One router serves the whole app and counts every answered request by route; failed or retried attempts are counted separately. In a scripted end-to-end session on the live production site (create a wallet, receive funds, swap both ways), 111 of 115 calls (96.5%) went through Anon-RPC. The other 4 were the disclosed bootstrap reads (2 for Nox, 2 for Nym, which starts in the background as the failover backup), and none went direct. If a network fails, the router switches to the next one (Nox → Nym → Tor): reads retry, broadcasts don't (a signed transaction may already be out), and every switch is shown and counted. It retries with backoff while a network makes its first connection, checks the preferred network again every few minutes and switches back when it recovers. Each network's worker-code hash is pinned, and a change needs the user's approval.

Uniswap: v4 swaps on Sepolia with viem only (no SDK, no Trading API). Quotes are eth_calls to the v4 Quoter over Anon-RPC, and Universal Router calldata is hand-encoded, with Permit2 and exact-amount approvals. Along the way we found that the deployed Sepolia Universal Router predates the current source and expects a different swap-struct layout, and that with empty hookData both layouts simulate successfully, so testing can't tell you which is right. We confirmed it by checking the deployed bytecode for error selectors (details in FEEDBACK.md).

Arkiv: an idempotent importer mirrors MIT-licensed token lists (2,105), address labels and MyEtherWallet's scam list (796), and function names (444 at first import, ranked by real mainnet usage and covering 68.4% of sampled calls; 462 and 72.6% after the latest refresh) into Arkiv's Rabdi testnet. Every entry records its source, licence and exact source commit, and the full licence texts are stored on Arkiv too. A GitHub Action refreshes it daily. Dataset snapshots and a copy of the web app are stored on Swarm, uploaded through our own Bee light node with our own postage batch, and referenced from Arkiv with SHA-256 hashes. The app reads labels through Anon-RPC and warns before you sign a transaction to a flagged address.

Desktop: Electron with a sandboxed, context-isolated window and a validated IPC bridge. The node manager downloads only official, checksum-verified Nethermind and Nimbus releases (Nimbus is checked twice), runs them pruned with RPC bound to 127.0.0.1, includes pre-flight and disk-space checks, and shows each client's real sync stage. We chose two minority clients to support client diversity. Graceful shutdown on Windows sends a real console Ctrl+C, verified in CI.

background image mobile

Join the mailing list

Get the latest news and updates