Developer Documentation & RPC Reference

Complete technical guide, consensus rules, daemon REST/JSON-RPC API specifications, CLI operations, and NIST FIPS 204 (ML-DSA-65) post-quantum transaction architectures.

Version 1.0.13 Network: ARMX-TESTNET-1 Signatures: NIST FIPS 204 (ML-DSA-65) Consensus: ArmaxHash v2 + Armax-ASERT-AW + TxBinaryV1 (#20,000+)
Public API Gateway

The core daemon REST/RPC API is bound strictly to local loopback (127.0.0.1:19333). The public Testnet Explorer gateway (https://testnet.explorer.armax-coin.cloud) exposes allowlisted read endpoints, raw signed transaction broadcast (POST /tx/new), and rate-limited faucet claims. See the Explorer HTTP API Docs →; node-admin and wallet-control RPCs are never exposed publicly.

1. Overview & Network Topology

Armaxcoin is an autonomous Layer-1 blockchain featuring NIST FIPS 204 (ML-DSA-65) post-quantum digital signatures, Proof-of-Work consensus and wallet clients that do not transmit user wallet keys. The optional faucet is a separately funded server-side wallet service. The ecosystem consists of 5 primary native binaries:

Binary Role Primary Port / Interface
armcoind Full node daemon, P2P mesh gossiping, and consensus engine P2P: 19335 • RPC: 19333 (loopback)
armminer CPU Proof-of-Work solver (ArmaxHash v2) Communicates with daemon over HTTP RPC
armwallet Offline keystore generator & BIP-39 mnemonic derivation CLI standalone (air-gapped capable)
armsend Offline transaction signer & broadcast utility CLI standalone • signs with Argon2id encrypted keys
armgui Desktop Wallet GUI v2 (Windows WebView2 + System Tray / Linux & macOS loopback UI) 127.0.0.1:18088 (1-click embedded node)
Public Gateway Scope: Core daemon RPC stays loopback-only (127.0.0.1:19333). The public gateway exposes read queries, raw signed transaction relay (/tx/new), and Turnstile-gated faucet claims; all other mutating RPCs remain disabled.

2. Quickstart & Installation

Download the official release archive for your operating system from the Downloads page. Verify the canonical SHA256SUMS digest, extract the archive, and launch the node.

# 1. Download and extract Linux release
curl -LO https://github.com/armaxcoincore/armax-coin/releases/download/v1.0.13/armax-v1.0.13-linux-amd64.tar.gz
tar -xzf armax-v1.0.13-linux-amd64.tar.gz

# 2. Start full node on testnet (rolling upgrade from v1.0.10 to v1.0.12; use -resync only from <= v1.0.9)
./armcoind -network testnet

# 3. Check node height and sync status in another terminal
curl -s http://127.0.0.1:19333/status

3. Operating a Full Node (armcoind)

armcoind operates the blockchain state machine, validates transactions, verifies PoW hashes, and relays blocks over an encrypted TLS 1.3 mesh.

Daemon CLI Flags

Flag Default Description
-network testnet Network profile (testnet for ARMX-TESTNET-1; mainnet fails closed while MainnetLaunched = false; explicit regtest for local tests)
-local-mainnet false Run isolated loopback-only local Mainnet rehearsal (no public seeds or external P2P)
-p2pport 19335 TCP port for encrypted peer-to-peer gossip protocol
-rpcbind 127.0.0.1 Binding interface for RPC endpoints. Strictly loopback for security.
-rpcport 19333 HTTP port for REST and JSON-RPC query handlers
-peers seed servers Comma-separated initial bootstrap peer addresses. Default connects to all 3 geographically distributed seeds: testnet-seed1.armax-coin.cloud:19335 (Asia), testnet-seed2.armax-coin.cloud:19335 (Asia), and testnet-seed3.armax-coin.cloud:19335 (USA).
-noseeds false Disable configured and default seed peers (also exempts node from external peer Sync Gate)
-datadir ~/.armax Directory containing blockchain.db (BoltDB), peers cache, and logs
-mine false Enable background CPU mining (also requires -miner reward address)
-version false Print core binary version string (e.g. armcoind v1.0.13) and exit

4. CPU Mining Operations

Armaxcoin uses ArmaxHash v2 (active from block 2,500) combined with the continuous ASERT-AW difficulty algorithm.

Recommended: Mine on Official Mining Pool (Zero Node Setup) PPLNS • 0% FEE

Home miners do not need to run or synchronize a local armcoind full node. Connect directly to the Stratum mining pool server (plain TCP stratum+tcp:// or TLS 1.2+ stratum+ssl:// / stratum+tls://). By default, armminer automatically selects optimal physical CPU cores and initializes an integrated armaxhash.V2JobHasher zero-allocation prefix cache (override with -threads N):

# Stratum Pool Mining (auto-selects physical cores; optional TLS via stratum+ssl://):
./armminer -stratum stratum+tcp://pool.armax-coin.cloud:3333 -miner YOUR_ARMX1_ADDRESS
Pool URL: pool.armax-coin.cloud • Stratum Port: 3333 (TCP & TLS stratum+ssl:// supported) • Payout Model: PPLNS

Solo Mining via Local Full Node

If running a local full node (armcoind), armminer solo mines via /getblocktemplate (or delegates via -remote to POST /mine). When the node responds with HTTP 503 Service Unavailable during initial peer sync, armminer automatically pauses and waits until sync completes so stale blocks are never mined:

# Start Solo CPU miner (omit -threads for auto physical-core default, or set -threads 4):
./armminer -network testnet -daemon http://127.0.0.1:19333 -miner YOUR_ARMX1_ADDRESS -threads 4
Coinbase Reward Maturity: Each successfully mined block awards 60.00 ARMX initially; the subsidy halves every 1,050,000 blocks. Coinbase outputs require 10 confirmations on testnet (100 on mainnet) before they become spendable in standard transactions.

5. Keystore & Wallet Management (armwallet)

The armwallet binary generates post-quantum NIST FIPS 204 (ML-DSA-65) keypairs and stores them encrypted at rest using Argon2id (64 MiB RAM, 3 iterations, 2-way parallelism) in wallet.json.

# 1. Generate new post-quantum wallet and 24-word recovery seed:
./armwallet -network testnet -create -wallet my_wallet.json

# 2. Show the wallet address, then check its balance:
./armwallet -address -wallet my_wallet.json
./armwallet -balance $YOUR_ARMX_ADDRESS

5.1 Multisig Custody (Mainnet and Regtest only, v1.0.13)

armwallet multisig builds and signs ML-DSA-65 M-of-N accounts (sig_alg 0x02, 2 ≤ M ≤ 3, M ≤ N ≤ 4) without any cosigner key leaving its machine. The account address is SHA-256(0x02 || M || N || sorted public keys). Multisig is active from height 1 on Mainnet and Regtest and is disabled on Testnet (v1.0.12 nodes cannot parse it).

# Each cosigner, offline: export a public key
./armwallet multisig pubkey -wallet cosigner1.json

# Coordinator: build a 2-of-3 descriptor
./armwallet multisig create -m 2 -pubkey @c1.hex -pubkey @c2.hex -pubkey @c3.hex -out treasury.desc

# Propose, sign on each cosigner machine, combine, broadcast
./armwallet multisig propose -descriptor treasury.desc -to ax1... -amount 100 -nonce 1 -out p.json
./armwallet multisig sign -in p.json -wallet cosigner1.json -out s1.json
./armwallet multisig combine -in s1.json -in s2.json -out tx.json
./armwallet multisig broadcast -in tx.json -daemon http://127.0.0.1:19332

6. Transaction Sender CLI (armsend)

The armsend tool prepares transactions, attaches the sender's current nonce, signs the double-SHA256 digest using ML-DSA-65 private keys, and broadcasts a JSON transaction to the node's mempool via POST /tx/new.

# Transfer 5.0 tARMX with an example 11,000-Armoid fee for a 10,761-byte transaction:
./armsend -daemon http://127.0.0.1:19333 \
  -to armx1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqplwcdd \
  -amount 5.0 \
  -fee 0.00011
Network guard (v1.0.13). New keystores record their network. armsend, armwallet and armgui refuse a recipient address, keystore or daemon (X-Network-ID) from another network before the passphrase is tried. Older keystores without a tag are treated as Testnet keystores. For a deliberate recovery only, set ARMX_ALLOW_FOREIGN_NETWORK_KEYSTORE=1; a warning is printed.

7. Desktop Graphical Interface (armgui v2)

armgui is Armaxcoin's Desktop Wallet GUI v2 engineered across Windows (pure-Go WebView2 native desktop window with Minimize-to-System-Tray and zero Electron/CGO runtime dependencies) as well as Linux / WSL (~/.config/ArmaxCoin fallback & host browser interop) and macOS (loopback web UI on 127.0.0.1:18088).

  • 1-Click Embedded Node: Automatically launches an embedded background armcoind daemon across Windows, Linux, and macOS if no local RPC node is running.
  • Multi-Wallet & Local Cache: Seamlessly switch between encrypted Argon2id keystores (wallet.json), inspect local bbolt cached history powered by incremental /history?format=paged, and preview exact ML-DSA-65 fees.
  • Waiting for Sync CPU Miner & Themes: Built-in solo mining queue automatically holds mining until P2P sync completes (with automatic compatibility fallback for v1.0.11 nodes), rendered in Light or Dark (armax_explorer) themes.
# Launch Desktop Wallet GUI v2 (supported flags: -network, -port, -rpc, -rpcport, -p2pport, -datadir, -info, -version, -no-browser):
./armgui -network testnet
./armgui -version

8. Daemon REST / JSON-RPC API Reference

Public blockchain read queries (/stats, /chain, /block, /tx, /balance, /history, /mempool, /peers, /supply) and raw transaction broadcast (POST /tx/new) are served by the standalone Explorer service. Local node operators retain direct loopback-only access to armcoind RPC on 127.0.0.1:19333.

REST API https://testnet.explorer.armax-coin.cloud/api-docs Public Explorer Gateway

Full request/response schemas, rate limits, CORS headers, and curl examples for all public Explorer REST endpoints are maintained on the Explorer API documentation portal.

Open Explorer API Documentation →
GET /getblocktemplate?miner=<armx1...> PoW Mining Template

Supplies mining clients with candidate block headers, parent hash, height, target, and pending mempool transactions for PoW evaluation. Enforces the Node Sync Gate: while P2P initial sync is incomplete (regtest, -local-mainnet, and -noseeds exempt), the node responds with HTTP 503 Service Unavailable:

{
  "status": "syncing",
  "syncing": true,
  "synced": false,
  "local_height": 12000,
  "best_peer_height": 20500,
  "sync_progress": 58.54,
  "message": "Initial sync in progress; mining paused until sync completes",
  "error": "Initial sync in progress"
}
Field (v1.0.13)Meaning
pow_algo_nameAlgorithm the candidate block must use (e.g. ArmaxHash v2)
treasury_activetrue only on Mainnet blocks #1–#108,000 once the treasury address is set. Always false on Testnet.
treasury_address, treasury_valueWhen active, the miner must add tx[1] paying exactly treasury_value (20% of the subsidy) to treasury_address, right after the coinbase.
coinbasevalueMaximum value of tx[0]; excludes the treasury share while the split is active.

/stats also reports pow_algo, pow_algo_name, algorithm and candidate_pow_algo_name, separate from daa_engine.

POST /tx/new Mempool Submission

Submits a fully signed post-quantum transaction to the local mempool. If valid, gossips to connected P2P mesh peers. (Tip: post-Block #20,000 TxBinaryV1 transactions only require 6,000 Armoids fee).

curl -X POST http://127.0.0.1:19333/tx/new \
  -H "Content-Type: application/json" \
  -d '{
    "sender": "armx1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqplwcdd",
    "sender_pub": "01020304...3904_HEX_CHARS...",
    "recipient": "armx1qrecipient00000000000000000000000000000000000000000000000",
    "amount": 1000000000,
    "fee": 6000,
    "nonce": 5,
    "signature": "a1b2c3d4...6618_HEX_CHARS...",
    "sig_alg": 1
  }'
Success Response (200 OK):
{"status": "success", "message": "Transaction accepted into mempool"}
Error Response (400 Bad Request):
{"status": "error", "message": "Invalid transaction nonce: expected 5, got 3"}
POST /mine Loopback-Only CPU Mining RPC

Loopback daemon only (never exposed on the public explorer gateway). Executes a single synchronized CPU PoW mining round on the local node (requires HTTP Basic auth or X-Mine-Key, rejects cross-origin browser requests, enforces DNS rebinding host checks, enforces the HTTP 503 Node Sync Gate, and performs deterministic cancel-drain handoff when restarting jobs).

curl -X POST http://127.0.0.1:19333/mine \
  -u rpcuser:rpcpass \
  -H "Content-Type: application/json" \
  -d '{"miner": "armx1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqplwcdd", "threads": 4}'
POST /mine/stop Loopback-Only Abort Mining Job

Loopback daemon only (never exposed on the public explorer gateway). Cleanly cancels any active /mine job via CancelActiveMining() (used by armgui’s Stop Mining button and automated scripts). Requires RPC credentials or X-Mine-Key.

curl -X POST http://127.0.0.1:19333/mine/stop -u rpcuser:rpcpass
# Response: {"status": "stopped", "active": true} (or "idle" / false)

9. Transaction Format & ML-DSA-65 Canonical Encoding

Armaxcoin transactions use NIST FIPS 204 (ML-DSA-65) post-quantum lattice cryptography. Unlike classical ECDSA (secp256k1 ~71 bytes), post-quantum keys and signatures require significantly larger parameter sets:

Field Type Size / Encoding Description
sender string 63 chars (Bech32) Sender address prefixed with armx1
sender_pub string 3,904 hex chars (1,952 bytes) ML-DSA-65 public key matrix commitments
recipient string 63 chars (Bech32) Destination address prefixed with armx1
amount int64 Armoids (> 0) Base units (1 ARMX = 100,000,000 Armoids)
fee int64 Armoids Size-based minimum: 1,000 Armoids per started kilobyte of serialized transaction size
nonce int64 Strict increment Replay protection; strictly sender nonce + 1
signature string 6,618 hex chars (3,309 bytes) NIST FIPS 204 ML-DSA-65 digital signature
sig_alg byte 0x01 (int 1) Algorithm identifier (1 = ML-DSA-65)

Canonical Signing Serialization

The transaction digest committed to during signing is computed as a double-SHA256 (SHA-256d) over the formatted ASCII record:

Record = "${NetworkID}:${sig_alg}:${sender_lower}:${sender_pub}:${recipient_lower}:${amount}:${fee}:${nonce}"
TxDigest = SHA256(SHA256(Record))

10. Limits & Error Codes

Node limits since v1.0.13: up to 38 inbound and 12 outbound peers, an 8 MiB maximum P2P frame (32 MiB aggregate large-frame budget), at most 25 orphan transactions per peer, and per-subnet rate limiting of inbound connections before TLS (/24 IPv4, /48 IPv6). Mainnet P2P accepts only the hybrid X25519MLKEM768 / SecP256r1MLKEM768 TLS 1.3 key exchange.

Error Code / Message HTTP Root Cause Resolution
Invalid transaction nonce 400 Submitted nonce does not equal current confirmed nonce + 1 Query /balance?address=... to fetch latest nonce
Insufficient spendable funds 400 Balance is below amount + fee or funds are locked immature coinbase Wait for coinbase maturity (10/100 blocks) or reduce amount
Invalid ML-DSA-65 signature 400 Signature failed NIST FIPS 204 mathematical verification Ensure exact canonical serialization string and matching keypair
Transaction fee too low 400 Fee is below the size-based relay minimum (1,000 Armoids per started kilobyte) Provide at least 6,000 Armoids under TxBinaryV1 (Block #20,000+, ~5,320 B) or 11,000 Armoids for legacy JSON (~10,761 B)
Oversized payload 413 JSON exceeds maximum allowed transaction size Verify no uncompressed metadata is bundled
Initial sync in progress (Sync Gate) 503 P2P initial block sync is still underway on /getblocktemplate or POST /mine Wait for synced: true on /stats; armminer and armgui pause and resume automatically

11. Security Model & Custody Boundaries

Armaxcoin enforces strict security and key isolation boundaries:

  • User Keystore Zero Custody: Explorer, public web interfaces, and node RPC services never store, transmit, or process end-user private keys or seed phrases; users retain exclusive custody of their keys. (Note: If an operator activates the optional testnet faucet service, the server manages a separate, dedicated faucet wallet and passphrase solely to sign automated testnet coin distributions via armsend).
  • Air-Gapped Signing: Transactions can be prepared and signed on offline machines using armsend or armwallet and broadcast as pre-computed JSON.
  • Encrypted Mesh: Node-to-node communication across port 19335 enforces TLS 1.3 with Trust-On-First-Use (TOFU) peer pinning.
  • Memory-Hard KDF: Local disk keystores are protected with Argon2id (64 MiB RAM, 3 iterations, 2-way parallelism) to resist parallel dictionary attacks.

12. Frequently Asked Questions (FAQ)

Q: Why are Armaxcoin cryptographic payloads ~5.3 KB and JSON transactions ~10.8 KB while Bitcoin transactions are ~250 bytes?

Classical blockchains use ECDSA or Schnorr signatures based on discrete logarithms, which can be broken by Shor's algorithm on a quantum computer. Armaxcoin uses NIST FIPS 204 (ML-DSA-65) module-lattice cryptography. Lattice hardness requires larger public keys (1,952 bytes) and signatures (3,309 bytes), totalling 5,261 bytes of raw cryptographic payload. When serialized as JSON wire transactions, the measured reference transaction is approximately 10,761 bytes.

Q: Can I run a full node on a Raspberry Pi?

Yes, 64-bit ARM builds are supported. Verification latency depends on the CPU architecture, Go toolchain, and transaction mix; 2 GB RAM is the minimum requirement, while 4 GB+ RAM is recommended for optimal operation during initial block download.

Q: Are mining pool protocols (Stratum) supported?

Yes. Both direct solo mining via /getblocktemplate and pooled Stratum mining are supported. The public testnet Stratum pool is live at stratum+tcp://pool.armax-coin.cloud:3333 (dashboard at pool.armax-coin.cloud) with PPLNS accounting. Additionally, armminer supports TLS-encrypted pool connections via stratum+ssl:// and stratum+tls://.

13. Technical Glossary

Armoid

The atomic base unit of Armaxcoin. 1 ARMX = 100,000,000 Armoids (8 decimal precision).

ML-DSA-65

Module-Lattice Digital Signature Algorithm standardized under NIST FIPS 204 (Security Category 3, ~128 bits post-quantum security).

LWMA-1 & Armax-ASERT-AW DAA

Difficulty adjustment algorithms: LWMA-1 (window N = 60) governed blocks 0..13,334; Armax-ASERT-AW (pure-integer aserti3-2d, τ = 3,600s) activated at Block #13,335 with 4-hour surge cap and TEDR anti-stall boost.

TOFU

Trust-On-First-Use: P2P nodes record peer cryptographic TLS certificate hashes on first contact to prevent man-in-the-middle attacks.

MTP & Timestamp Consensus Rules

Median Time Past: Consensus rule requiring each new block's timestamp to exceed the median of past blocks (MTP-11 before block #8,000; MTP-55 from block #8,000 via C1 hard fork). In addition, C2 enforces strictly non-decreasing timestamps (block.Timestamp >= prev.Timestamp), Anti-Stall TEDR activated at block #13,293 to resolve sudden difficulty freezes, and Block #20,000 (TxBinaryV1) unified C6 (10-minute future timestamp limit) with binary block size accounting (expanding 2 MB block capacity from 185 to 375 user ML-DSA-65 transactions).

HTLC

Hashed Time-Lock Contract: Experimental on-chain primitives defined in core for research into future cross-chain atomic swaps and Layer-2 payment channels (not currently active in consensus).