MORANANETWORK
Reference

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 wallet

reaches the chain over gRPC compact blocks through the lightd gateway — 141 references

(62 lightd, 45 CompactBlock, plus the tonic transport) — and that is the path every ordinary

operation 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.rs and it is fenced: check_regtest_rpc_url refuses

any host that is not 127.0.0.1, localhost or [::1], so it can only ever reach a node on the

same 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 state
  • getnetworkinfo — version, connections, relay
  • getblockcount — current block height
  • getblockhash <height> — hash at a height
  • getblock <hash> — block contents
  • getrawtransaction <txid> true — decoded transaction
  • sendrawtransaction <hex> — broadcast a signed transaction
  • validateaddress <address> — address details and scriptPubKey

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.