MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Richlist",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "160": {
                "pageid": 160,
                "ns": 0,
                "title": "Relay Node",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== How to Deploy a Mochimo VPS Relay Node ==\n\n=== Summary ===\nThe below steps will allow you to set up a VPS node that self-reboots\nweekly, installs the Mochimo server in a ramdisk (for high performance) creates\na local mochimo service, and automatically restarts the Mochimo server as a non\nsolving node upon reboot.\n\n=== Audience ===\nPeople who want to support the network by operating a node to relay\ntransactions / blocks.\n\n=== Minimum System Requirements ===\nUbuntu 16.04 LTS\n1 vCPU\n2 GB RAM\n10 GB Hard Disk\n\n=== Create a new user for Mochimo ===\n\n1 Log into <code>root</code> user on your VPS.\n\n2. Create a new user specific for this Mochimo relay node.\n\n<pre>adduser mochimorelay</pre>\n\n3. Enter a strong password.\n(you can return through the prompts asking for user details, they can all be blank)\n\n4. Give your new user Sudo permissions.\n\n<pre>usermod -aG sudo mochimorelay</pre>\n\n5. Switch to your new user.\n\n<pre>su - mochimorelay</pre>\n\nIf you've sucessfully created a new user with Sudo permissions your terminal should say something like:\n\n<pre>To run a command as administrator (user \"root\"), use \"sudo <command>\".\nSee \"man sudo_root\" for details.</pre>\n\nYou are now ready to start your node deployment.\n\n== Deployment Steps ==\n\n1. Create ramdisk directory.\n\n<pre>sudo mkdir /mnt/ramdisk</pre>\n\n2. Setup crontab to reboot daily.  Below script selects nano with \"1\" and sets\nthe system to reboot weekly at 6 am.\n<BR>\n(you may be prompted to press Y when using apt-get)\n\n<pre>sudo apt-get install nano\n\ncd /etc\nsudo crontab -e\n</pre>\nFile Contents:\n\n<pre>0 6 * * 1 /sbin/shutdown -r</pre>\n\n3. Install build tools, and build Mochimo\n<BR>\n(you may be prompted to press Y when using apt-get)\n\n<pre>cd \nsudo apt-get install git\nsudo apt-get install build-essential\ngit clone https://github.com/mochimodev/mochimo\ncd mochimo/src\n./makeunx bin -DCPU\n./makeunx install</pre>\n\n4. Tar the binary directory, and copy to /mochimorelay\n\n<pre>cd ..\ntar -czvf bin.tgz bin\ncp bin.tgz /home/mochimorelay/bin.tgz\ncd ..\nrm -rf mochimo</pre>\n\n5. Set the fstab to load the ramdisk on reboot\n\n<pre>sudo nano /etc/fstab</pre>\n\nFile Contents (append to bottom of file):\n\n<pre>tmpfs       /mnt/ramdisk tmpfs   nodev,nosuid,nodiratime,size=1024M</pre>\n\n6. Create the systemd system service to start Mochimo on boot.\n\n<pre>cd /etc/systemd/system\nsudo nano mochimo.service</pre>\n\nFile Contents:\n\n<pre>[Unit]\nDescription=Mochimo Server\n\n[Service]\nExecStart=/bin/bash /home/mochimorelay/start-mochimo.sh\n\n[Install]\nWantedBy=default.target</pre>\n\n7. Make the service privs 644:\n\n<pre>sudo chmod 644 mochimo.service</pre>\n\n8. Create the startup script off of /mochimorelay\n\n<pre>sudo nano /home/mochimorelay/start-mochimo.sh\n\n#! /bin/bash\nsudo cp /home/mochimorelay/bin.tgz /mnt/ramdisk\ncd /mnt/ramdisk\nsudo tar -xzvf bin.tgz\ncd bin\ncp maddr.mat maddr.dat\n./gomochi d -n -D</pre>\n\n9.  Make the startup script executable:\n\n<pre>sudo chmod +x /home/mochimorelay/start-mochimo.sh</pre>\n\n10. Return to root user, start the service, and reboot to confirm:\n\n<pre>su -\nsystemctl enable mochimo.service\nsystemctl start mochimo.service\nsudo reboot</pre>\n\n11. (Optional) Log back into your VPS to validate the mochimo.service is running:\n<pre>journalctl -u mochimo.service -f</pre>\n\n== Verifying Deployment ==\n\n1. Verify the Service is running:\n\n<pre> ps -aux | grep /mochimo </pre>\n\nThe output will list the mochimo service followed by a status.\n\n<pre>../mochimo %STATUS% </pre>\n\nStatus will start as 'quorum', then transition to 'tfval', and finally to 'Listen'. \n<br>\n\nIn 'listen' mode (may take 10-15 minutes) the node is running and accessible for sending, receiving and relaying transactions.\n<br><br>\n2. Verify your IP address on the Mochimap:\n\nFind your node on [https://www.mochimap.net/ MochiMap.net], this is a good sign that it's operating correctly.\n<br>\nIf you click your node on MochiMap, it will give you the apparent health status of your node.\n<br><br>\n3. Query the API and verify your server is peered.\n\nComplete an API call (in this example we show the URL for the Mochimo Public API, but you can maintain your own - and we recommend that you do.)  To query the network nodes browse to:\n<br>\nhttp://api.mochimo.org:8888/net/nodes\n<br>\nYour node's IP address should display in the list of \"peers\":[]"
                    }
                ]
            },
            "44": {
                "pageid": 44,
                "ns": 0,
                "title": "Resilience & Security",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "=== Check back later, this page is still being written  ===\n<br><br>\n\n__TOC__\n\n==Quantum Computer Security== \nWOTS+ Algorithm\n\n==Attack Resilience==\nThe Three Way Handshake. ACKs.\n\n==Connection Management==\nRandom Network Model - Transaction Mirroring.\n\n==Contention Resolution==\nRapid Server Initialization - Clean Boot Process, Master Chain Discovery. \nPruning Orphan Chains."
                    }
                ]
            }
        }
    }
}