RPC Reference
This page is for NODE OPERATORS. It is not the path your wallet takes.
Measured 2026-08-09 across the 471 Rust sources of
components/morana-wallet-rs: the walletreaches the chain over gRPC compact blocks through the lightd gateway — 141 references
(62
lightd, 45CompactBlock, plus the tonic transport) — and that is the path every ordinaryoperation uses.
Direct JSON-RPC does appear, and an earlier revision of this note said it did not. That was wrong.
It lives in
crates/wallet-core/src/api_ext.rsand it is fenced:check_regtest_rpc_urlrefusesany host that is not
127.0.0.1,localhostor[::1], so it can only ever reach a node on thesame machine. The other 27 matches in the tree are end-to-end tests that start a node themselves.
The website holds no node credentials at all, and a gate enforces that.
If you are using the wallet over the network, nothing on this page applies to you.
The Morana node exposes a Bitcoin-Core-style JSON-RPC interface. Call it over HTTP with basic auth using your rpcuser/rpcpassword.
Example request
curl --user USER:PASSWORD \
--data-binary '{"jsonrpc":"1.0","id":"x","method":"getblockchaininfo","params":[]}' \
-H 'content-type: application/json' \
http://127.0.0.1:18332/
Common methods
getblockchaininfo— chain, height, difficulty, sync stategetnetworkinfo— version, connections, relaygetblockcount— current block heightgetblockhash <height>— hash at a heightgetblock <hash>— block contentsgetrawtransaction <txid> true— decoded transactionsendrawtransaction <hex>— broadcast a signed transactionvalidateaddress <address>— address details andscriptPubKey
Address formats
- Transparent (mainnet):
mor1q…· (testnet):tmor1q…· (regtest):morrt1q… - Native SegWit v0 P2WPKH (BIP84), Bitcoin-compatible BIP143 signing.
Keep RPC bound to localhost. Never expose it to the public internet.