### Verus MacOS: Start Mining Guide
Source: https://github.com/oink70/wiki/blob/master/index.md
A guide or script to help users start mining Verus on MacOS. It likely includes instructions on setting up mining software and configuring it for the Verus network.
```bash
# Script or commands to start mining on MacOS
# ... (mining setup commands) ...
```
--------------------------------
### Setup Verus Wallet Data Directory and Bootstrap
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin01_install_linux_cli.md
Creates the necessary directory structure for the Verus wallet data and optionally downloads a blockchain bootstrap file to accelerate initial synchronization.
```bash
cd ~
mkdir -p .komodo/VRSC
cd ~/.komodo/VRSC
wget https://bootstrap.verus.io/VRSC-bootstrap.tar.gz
tar -xvf VRSC-bootstrap.tar.gz
```
--------------------------------
### Verus Linux: Install CLI Wallet Script
Source: https://github.com/oink70/wiki/blob/master/index.md
A bash script to facilitate the installation of the Verus Command Line Interface (CLI) wallet on Linux systems. This script automates the setup process, making it easier for users to get started with mining and staking.
```bash
#!/bin/bash
# Script to install Verus CLI wallet on Linux
# ... (installation commands) ...
```
--------------------------------
### Start Verus Testnet CLI Wallet Daemon
Source: https://github.com/oink70/wiki/blob/master/how-to/how-to_join_testnet.md
This command starts the Verus daemon configured to run on the VRSCTEST chain. You can append other common parameters like -mint or -pubkey. Ensure you use the correct command prefix for your operating system (e.g., './' for Linux/macOS).
```bash
verusd -chain=VRSCTEST
```
--------------------------------
### Launch Verus Daemon using Tmux
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin01_install_linux_cli.md
Starts the Verus daemon process within a Tmux session, allowing it to run in the background. Users can specify the number of processing threads for mining.
```bash
tmux
~/verus-cli/verusd -gen -genproclimit
~/verus-cli/verusd -gen -genproclimit=24
[ctrl]&b d
```
--------------------------------
### Verusd Daemon Configuration Example (VRSC.conf)
Source: https://github.com/oink70/wiki/blob/master/faq-cli/clifaq-01_verusd_options.md
Provides an example of a VRSC.conf file, which stores configuration settings for the Verus Daemon. Options in this file can be overridden by command-line arguments. It demonstrates settings for RPC user, password, port, server mode, transaction indexing, and allowed IPs.
```ini
rpcuser=user
rpcpassword=pass
rpcport=27486
server=1
txindex=1
callowip=127.0.0.1
rpchost=127.0.0.1
addnode=195.253.48.236:27485
```
--------------------------------
### Start Verus Daemon with Public Key Argument
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos03_mine_rewards_to_a_single_verus_wallet_gui_+_cli.md
This snippet demonstrates how to start the Verus daemon from the command line, including the `-pubkey` argument to direct mining rewards to a specific address. This is one of the options for Verus CLI users.
```bash
verus startdaemon -pubkey=THELONGSTRINGCOPIED &
```
--------------------------------
### Windows CLI Command Formatting Example
Source: https://github.com/oink70/wiki/blob/master/how-to/how-to_join_testnet.md
This example demonstrates how to format commands for the Windows command line, based on the general CLI command format. It shows the substitution of single quotes with double quotes and double quotes with escaped double quotes, as described in the general remarks.
```powershell
verus -chain=VRSCTEST "[command]"
```
--------------------------------
### Start CCMiner Miner
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin06_compile_ccminer.md
Executes the compiled CCMiner application to start mining. Users need to replace the example pool address, username, and worker name with their specific details.
```bash
./ccminer -a verus -o stratum+tcp://pool.verus.io:9999 -u RVjvbZuqSGLGDm1B9BFkbHWySPKEx4tfjQ.donator -p x
```
--------------------------------
### Update and Upgrade Linux System
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin01_install_linux_cli.md
Ensures the system's package list is up-to-date and installs available upgrades. This is a fundamental first step before installing new software.
```bash
sudo apt-get update && sudo apt-get upgrade -y
```
--------------------------------
### JavaScript Navigation Menu Setup
Source: https://github.com/oink70/wiki/blob/master/index.html
Configures the navigation menu based on application stages and fetched content. It subscribes to 'init' and 'transform' stages to populate the '#md-menu' element with navigation links and handles menu visibility based on content. Dependencies: jQuery, 'marked' library.
```javascript
function i(){a.md.stage("init").subscribe(function(b){a.md.NavigationDfd.done(function(){b()}).fail(function(){b()})}),a.md.stage("transform").subscribe(function(b){if(""===r){var c=a.md.getLogger();return c.info("no navgiation.md found, not using a navbar"),void b()}var d=marked(r),e=a("
"+d+"
");e.each(function(b,c){"SCRIPT"===c.tagName&&a("script").first().before(c)});var f=e.eq(0);f.find("p").each(function(b,c){var d=a(c);d.replaceWith(d.html())}),a("#md-menu").append(f.html()),b()}),a.md.stage("bootstrap").subscribe(function(b){h(a("#md-menu")),b()}),a.md.stage("postgimmick").subscribe(function(b){var c=a("#md-menu a").length,d=a("#md-menu .navbar-brand").eq(0).toptext().trim().length>0;!d&&1>=c&&a("#md-menu").hide(),b()})}
```
--------------------------------
### JavaScript Initialization and Stage Setup
Source: https://github.com/oink70/wiki/blob/master/index.html
Initializes application stages, including 'init', 'load', 'transform', etc. It also defines a global 'a.md.stage' function to retrieve a stage by name and resets stages. Dependencies include jQuery.
```javascript
function(a){"use strict";function b(){a.md.stages=\[a.Stage("init"),a.Stage("load"),a.Stage("transform"),a.Stage("ready"),a.Stage("skel_ready"),a.Stage("bootstrap"),a.Stage("pregimmick"),a.Stage("gimmick"),a.Stage("postgimmick"),a.Stage("all_ready"),a.Stage("final_tests")],a.md.stage=function(b){var c=a.grep(a.md.stages,function(a){return a.name===b});return 0!==c.length?c\[0\]:void a.error("A stage by name "+b+" does not exist")}}function c(){var b=a.md.stages;a.md.stages=\[\];a(b).each(function(b,c){a.md.stages.push(a.Stage(c.name))})}
```
--------------------------------
### Install Verus Dependencies and Tmux
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin01_install_linux_cli.md
Installs required libraries for the Verus wallet (libcurl3, g++-multilib) and Tmux, a terminal multiplexer that allows running processes in the background.
```bash
sudo apt-get install libcurl3 g++-multilib -y
sudo apt-get install tmux -y
```
--------------------------------
### Get Verus CLI Help
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos10_useful_cli_commands.md
Displays comprehensive help information for all Verus CLI commands. This is the primary resource for understanding command syntax and options.
```bash
verus help
```
--------------------------------
### Verusd Daemon Command-Line Usage
Source: https://github.com/oink70/wiki/blob/master/faq-cli/clifaq-01_verusd_options.md
Illustrates the basic command-line syntax for starting the Verus Daemon. Options can be appended directly after the command to configure its behavior. This is the primary method for launching and controlling the daemon.
```bash
verusd [options]
```
--------------------------------
### Create and Configure New User
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin01_install_linux_cli.md
Establishes a new non-root user account with sudo privileges, enhancing system security. It includes creating the user, adding them to the sudo group, and switching to the new user.
```bash
sudo adduser newusername
sudo usermod -aG sudo newusername
su - newusername
sudo ls -la /root
```
--------------------------------
### Download and Extract Verus CLI Wallet
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin01_install_linux_cli.md
Downloads the Verus CLI wallet binaries from GitHub and extracts them to the system. It also includes commands to navigate to the wallet directory and fetch necessary parameters.
```bash
wget https://github.com/VerusCoin/VerusCoin/releases/download/v0.9.3/Verus-CLI-Linux-v0.9.3-amd64.tgz
tar -xvf Verus-CLI-Linux-v0.9.3-amd64.tgz
tar -xvf Verus-CLI-Linux-v0.9.3-amd64.tar.gz
cd verus-cli
./fetch-params
```
--------------------------------
### Verus Desktop Installation Paths (Windows)
Source: https://github.com/oink70/wiki/blob/master/faq-windows/winfaq-03_verus_desktop_locations.md
This snippet shows the default installation directories for Verus Desktop on Windows, based on the installation scope (all users vs. current user).
```windows-batch
:: For All Users
%ProgramFiles%\Verus-Desktop
:: For Only Me
%USERPROFILE%\AppData\Local\Programs\Verus-Desktop
```
--------------------------------
### Install Missing Linux Libraries with apt-get
Source: https://github.com/oink70/wiki/blob/master/faq-arm/armfaq-01_libgomp.so.1.md
Installs the `libgomp1` and `zlib1g-dev` packages, which are required for certain executables to run on Debian-based systems. This command resolves 'error while loading shared libraries' for `libgomp.so.1` and `libz.so`.
```bash
sudo apt-get install libgomp1 zlib1g-dev
```
--------------------------------
### Configure NHEQminer for Low Priority
Source: https://github.com/oink70/wiki/blob/master/faq-windows/winfaq-02_low_priority_mining.md
This snippet shows how to modify the `start.bat` file for NHEQminer to run the mining process with low priority. It utilizes `cmd.exe /c start /Low` to achieve this. The original command is wrapped to include the low priority flag and specify the executable path.
```batch
%windir%\system32\cmd.exe /c start "NHEQminer VRSC" /Low "%THIS_DIR%\nheqminer.exe" -v -l %PoolHost%:%Port% -u %PublicVerusCoinAddress%.%WorkerName% -t %Threads% %1 %2 %3 %4 %5 %6 %7 %8 %9
```
--------------------------------
### Colorbox Event Handling
Source: https://github.com/oink70/wiki/blob/master/index.html
Illustrates how to use Colorbox's event hooks to trigger custom actions before and after the lightbox opens or closes. Examples include logging messages to the console.
```javascript
$(".eventbox").colorbox({
onOpen: function() {
console.log('Colorbox opened');
},
onClose: function() {
console.log('Colorbox closed');
},
onComplete: function() {
console.log('Colorbox content loaded');
}
});
```
--------------------------------
### Configure CCMiner for Low Priority
Source: https://github.com/oink70/wiki/blob/master/faq-windows/winfaq-02_low_priority_mining.md
This snippet demonstrates how to adjust the `run.verushhash.bat` file for CCMiner to execute with low priority. The command is modified to use `cmd.exe /c start /Low`, specifying the desired window title, low priority, and the full path to the `ccminer.exe` executable.
```batch
C:\Windows\System32\cmd.exe /c start "ccminerCPUv3.5 VerusPool" /Low "c:\Miners\CCminer 2.0 CPU Release 3.5\ccminer.exe" -a verus -o stratum+tcp://pool.verus.io:9999 -u RVjvbZuqSGLGDm1B9BFkbHWySPKEx4tfjQ.Donator -t 16
```
--------------------------------
### Verify File Signature using Verus CLI
Source: https://github.com/oink70/wiki/blob/master/how-to/how-to_check_signatures.md
This command verifies the signature of a downloaded file using the Verus CLI wallet. It requires the verifier's address or identity, the signature itself, and the path to the file being verified. This is a crucial step to ensure the integrity of downloaded wallet software.
```bash
./verus verifyfile "address or identity" "signature" "filepath/filename"
```
--------------------------------
### VRSC TipBot Rain Command Example
Source: https://github.com/oink70/wiki/blob/master/q-a/veruscoin-q-a-reward-20200728.html
This snippet demonstrates a common command format used by the VRSC TipBot for distributing cryptocurrency to multiple users. It shows the bot's response to a 'rain' command, indicating the total amount rained and the per-user distribution.
```plaintext
!vrsctip rain 5 @Q&A
```
--------------------------------
### Bash Script for Encrypting and Backing Up VRSC Wallet.dat
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin05_daily_cloud_backup.md
This bash script automates the process of backing up the VRSC wallet.dat file. It copies the wallet, encrypts it using GPG with AES256, removes the unencrypted copy, and then cleans up old backups. The script requires `gnupg2` to be installed and allows for manual passphrase input or hardcoding. Ensure you customize source, destination, and passphrase variables.
```bash
#!/bin/bash
# Customize the SOURCE and the DEST folders
SOURCE_FOLDER=/home/XXXXX/.komodo/VRSC/
DEST_FOLDER=/home/XXXX/backup/
BCK_DATE=date +%Y-%m-%d.%H:%M
SOURCE_FILE=wallet.dat
DEST_FILE=$SOURCEFILE"$BCK_DATE"
ENCRYPT_EXT=".gpg"
# all echo are for test purposes, feel free to delete them
echo check variable
echo SOURCE - $SOURCE_FOLDER
echo SOURCE_FILE - $SOURCE_FILE
echo DEST FILE - $DEST_FILE
echo DEST - $DEST_FOLDER
echo TO_BE_DEL - $DEST_FOLDER$SOURCE_FILE
sleep 1
cp $SOURCE_FOLDER$SOURCE_FILE $DEST_FOLDER$DEST_FILE
sleep 1
# Customize the passphrase!!
gpg2 --batch --yes -c --cipher-algo AES256 --passphrase="XXXXXX" $DEST_FOLDER$DEST_FILE
sleep 1
rm $DEST_FOLDER$DEST_FILE
# Keep only last 6 days - BE SURE to fully understand how it works, as every "rm" command!
find $DEST_FOLDER/wallet* -type f -mtime +6 -exec rm {} ;
```
--------------------------------
### Mining System Configuration and Performance
Source: https://github.com/oink70/wiki/blob/master/q-a/veruscoin-q-a-questions-20200728.html
This entry details a mining setup including CPU model (Intel Xeon Phi 7210), clock speed, cache, cores, power consumption, and mining software (nheqminer 0.7.1). It also specifies the operating system (Ubuntu) and containerization (Docker), along with the hashing algorithm (verushash 2.0). This information is relevant for understanding mining performance and hardware compatibility.
```text
Intel Xeon Phi 7210 1300 256 1 54,00 0,21 16,23% nheqminer 0.7.1 Ubuntu docker Vycid#8625
on verushash 2.0
```
--------------------------------
### Configure VerusCoin Miner Settings (Shell Script)
Source: https://github.com/oink70/wiki/blob/master/faq-macos/mac-faq03-mining_guide.md
This script configures the VerusCoin CLI miner by setting the mining pool host, port, your public VerusCoin address, a worker name, and the number of threads to use. Ensure you replace placeholder values with your actual address and desired worker name.
```shell
#!/bin/bash
PoolHost=pool.verus.io
Port=9999
PublicVerusCoinAddress=RVjvbZuqSGLGDm1B9BFkbHWySPKEx4tfjQ
WorkerName=MacOS
Threads=7
```
--------------------------------
### Configure Export Directory for Non-Verus Chains
Source: https://github.com/oink70/wiki/blob/master/how-to/how-to_backup_my_wallet.md
For non-Verus chains like Komodo and Zcash, an 'exportdir' parameter must be added to the coin's configuration file before starting the wallet. This specifies the directory where wallet export files will be saved. Ensure the correct base directory (komodo or zcash) and coin designation are used.
```ini
# Example for Komodo:
exportdir=
# Example for Zcash:
exportdir=
```
--------------------------------
### Initialize Wiki Application (jQuery)
Source: https://github.com/oink70/wiki/blob/master/index.html
Initializes the wiki application by setting up configuration, loading navigation, and preparing the stage for various application events. It handles AJAX requests for configuration and navigation, and binds hash change events.
```javascript
function j(){a.md.ConfigDfd.done(function(){b()}).fail(function(){var c=a.md.getLogger();c.info("No config.json found, using default settings"),b()})})}function k(){a.md.stage("init").subscribe(function(b){a("#md-all").empty();var c='
';a("#md-all").prepend(a(c)),b()})}function l(b){a.md.mainHref=b,e(),k(),a.md.stage("ready").subscribe(function(b){a.md.initializeGimmicks(),a.md.registerLinkGimmicks(),b()}),a.each(a.md.gimmicks,function(b,c){void 0!==c.load&&a.md.stage("load").subscribe(function(a){c.load(),a()})}),a.md.stage("ready").subscribe(function(b){a.md("createBasicSkeleton"),b()}),a.md.stage("bootstrap").subscribe(function(b){a.mdbootstrap("bootstrapify"),h(a("#md-content"),a.md.baseUrl),b()}),m()}function m(){a.md.stage("init").done(function(){a.md.stage("load").run()}),a.md.stage("load").done(function(){a.md.stage("transform").run()}),a.md.stage("transform").done(function(){a.md.stage("ready").run()}),a.md.stage("ready").done(function(){a.md.stage("skel_ready").run()}),a.md.stage("skel_ready").done(function(){a.md.stage("bootstrap").run()}),a.md.stage("bootstrap").done(function(){a.md.stage("pregimmick").run()}),a.md.stage("pregimmick").done(function(){a.md.stage("gimmick").run()}),a.md.stage("gimmick").done(function(){a.md.stage("postgimmick").run()}),a.md.stage("postgimmick").done(function(){a.md.stage("all_ready").run()}),a.md.stage("all_ready").done(function(){a("html").removeClass("md-hidden-load"),"function"==typeof window.callPhantom&&window.callPhantom({}),a.md.stage("final_tests").run()}),a.md.stage("final_tests").done(function(){c(),a("body").append(''),a("#start-tests").hide()}),a.md.stage("init").run()}function n(){var b;b=window.location.hash.substring(window.location.hash.startsWith("#!")?2:1),b=decodeURIComponent(b);var c=b.indexOf("#");-1!==c?(a.md.inPageAnchor=b.substring(c+1),a.md.mainHref=b.substring(0,c)):a.md.mainHref=b}function o(){var a="",b=window.location.hash||"";""===b||"#"===b||"#!"===b?a="#![index.md":b.startsWith("#!")&&b.endsWith("/")&&(a=b+"index.md"),a&&(window.location.hash=a)}var p=a.md.getLogger();b();var q={};a.md.publicMethods=a.extend({},a.md.publicMethods,q);var r="";a.md.NavigationDfd=a.Deferred();var s={url:"navigation.md",dataType:"text"};a.ajax(s).done(function(b){r=b,a.md.NavigationDfd.resolve()}).fail(function(){a.md.NavigationDfd.reject()}),a.md.ConfigDfd=a.Deferred(),a.ajax({url:"config.json",dataType:"text"}).done(function(b){try{var c=JSON.parse(b);a.md.config=a.extend(a.md.config,c),p.info("Found a valid config.json file, using configuration")}catch(d){p.error("config.json was not JSON parsable: "+d)}a.md.ConfigDfd.resolve()}).fail(function(b,c){p.error("unable to retrieve config.json: "+c),a.md.ConfigDfd.reject()}),a(document).ready(function(){j(),i(),n(),o(),a(window).bind("hashchange",function(){window.location.reload(!1)}),l(a.md.mainHref)})}(jQuery)
```
--------------------------------
### Initialize Gimmicks and Load Scripts
Source: https://github.com/oink70/wiki/blob/master/index.html
Initializes the gimmick system by first finding all active link triggers, then running any one-time gimmick functions, and finally loading the required scripts associated with the active triggers.
```javascript
$.md.initializeGimmicks = function() {
findActiveLinkTrigger(), runGimmicksOnce(), loadRequiredScripts()
}
```
--------------------------------
### Prepare Link with Protocol Handling
Source: https://github.com/oink70/wiki/blob/master/index.html
Constructs a URL for a given path, intelligently prepending the correct protocol (http, https, or file). It respects `forceSSL` and `forceHTTP` options, and defaults to using the current window's protocol if neither is specified.
```javascript
$.md.prepareLink = function(a, b) {
b = b || {};
var c = window.location.protocol;
return b.forceSSL ? "https://" + a : b.forceHTTP ? "http://" + a : "file:" === c ? "http://" + a : "//" + a
}
```
--------------------------------
### Register CSS with License and Stage
Source: https://github.com/oink70/wiki/blob/master/index.html
Registers a CSS file to be loaded. It checks the license, specifies the stage at which the CSS should be applied (defaulting to 'skel_ready'), and allows for an optional callback function to be executed after the CSS is appended to the ``.
```javascript
$.md.registerCss = function(a, b, c) {
var d = c.license,
e = c.stage || "skel_ready",
f = c.callback;
checkLicense(d, a);
var g = '';
$.md.stage(e).subscribe(function(a) {
$("head").append(g),
void 0 !== f ? f(a) : a()
})
}
```
--------------------------------
### Install CUDA Toolkit for GPU Mining
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin06_compile_ccminer.md
Downloads and installs the NVIDIA CUDA Toolkit version 10.2, which is required for compiling the GPU-miner variant of CCMiner. This step is specific to systems with NVIDIA GPUs.
```bash
wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run
sudo sh cuda_10.2.89_440.33.01_linux.run
```
--------------------------------
### Install CCMiner Dependencies (Debian)
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin06_compile_ccminer.md
Installs essential development libraries and tools required for compiling CCMiner on Debian-based Linux distributions. These include libraries for curl, SSL, jansson, and build essentials.
```bash
sudo apt-get install libcurl4-openssl-dev libssl-dev libjansson-dev automake autotools-dev build-essential git
```
--------------------------------
### Install Debian Libraries for Verus Wallet
Source: https://github.com/oink70/wiki/blob/master/faq-arm/armfaq-02_requirements.md
Installs essential libraries required for running the Verus Wallet on Debian-based systems. These libraries, `libgomp1` and `zlib1g-dev`, are crucial for the wallet's functionality and performance.
```bash
sudo apt update && sudo apt install -y libgomp1 zlib1g-dev
```
--------------------------------
### Markdown Parser Initialization and Main Function
Source: https://github.com/oink70/wiki/blob/master/index.html
Provides the main entry point for parsing markdown text. It initializes a `Lexer` and a `Parser` instance, then uses the `Parser` to process the tokenized input. Options can be passed to customize the parsing behavior. This function acts as a high-level API for the markdown processing.
```javascript
c.parse=function(a,b){var d=new c(b);return d.parse(a)},c.prototype.parse=function(a){this.inline=new b(a.links,this.options),this.tokens=a.reverse();for(var c="";this.next();)c+=this.tok();return c}
```
--------------------------------
### Import Verus Wallet (CLI/Desktop)
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos20_i_followed_the_procedure_in_faq_19_and_am_still_having_problems_with_my_wallet.md
Command to import a Verus wallet from an exported file containing private keys. The path to the exported wallet file needs to be specified. This command is used with Verus Desktop, Agama CLI, Linux CLI, or Windows CLI.
```bash
./verus z_importwallet
```
```powershell
verus.bat z_importwallet
```
```text
run z_importwallet
```
--------------------------------
### Get Verus Balance
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos10_useful_cli_commands.md
Retrieves the current VRSC balance of your wallet. This command provides a quick overview of your available funds.
```bash
verus getbalance
```
--------------------------------
### Colorbox Slideshow Functionality
Source: https://github.com/oink70/wiki/blob/master/index.html
Enables and configures the automatic slideshow feature for Colorbox. This includes setting the slideshow speed and whether it starts automatically.
```javascript
$(".slideshow").colorbox({
slideshow: true,
slideshowSpeed: 2000,
slideshowAuto: true
});
```
--------------------------------
### Get New Verus Private Address
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos10_useful_cli_commands.md
Generates a new private (z-address) for enhanced privacy in transactions. These addresses are used for shielded operations.
```bash
verus z_getnewaddress
```
--------------------------------
### Bootstrapify Page Elements using jQuery Plugin
Source: https://github.com/oink70/wiki/blob/master/index.html
This jQuery plugin, 'mdbootstrap', provides a 'bootstrapify' method to initialize various UI enhancements for the page. It calls functions to structure content, add menus, format images, and embed external media, leveraging jQuery and Bootstrap. It subscribes to MDwiki stages for execution.
```javascript
a.mdbootstrap=function(b){return a.mdbootstrap.publicMethods[b]?a.mdbootstrap.publicMethods[b].apply(this,Array.prototype.slice.call(arguments,1)):void a.error("Method "+b+" does not exist on jquery.mdbootstrap")},a.mdbootstrap.events=[],a.mdbootstrap.bind=function(b,c){a(document).bind(b,c),a.mdbootstrap.events.push(b)},a.mdbootstrap.trigger=function(b){a(document).trigger(b)};var o="",p={bootstrapify:function(){h(),g(),i(),k(),a("table").addClass("table").addClass("table-bordered"),a.md.stage("pregimmick").subscribe(function(b){a.md.config.useSideMenu!==!1&&g(),m(),n(),b()}),a.md.stage("postgimmick").subscribe(function(a){l(),j(),a()})}};a.mdbootstrap.publicMethods=a.extend({},a.mdbootstrap.publicMethods,p)}(jQuery)
```
--------------------------------
### Verus CLI: Unshield Coin Rewards for Staking
Source: https://github.com/oink70/wiki/blob/master/index.md
Explains how to use the Verus CLI to unshield coin rewards, making them available for staking. This is a necessary step for users who want to participate in Proof-of-Stake consensus with their earned rewards.
```bash
verus walletprocess -unshield
```
--------------------------------
### GET /api/
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos07_what_are_my_vrsc_worth.md
Retrieves cryptocurrency price or volume data. By default, it fetches the VRSC price in USD, weighted by 24-hour volume across all exchanges.
```APIDOC
## GET /api/
### Description
Retrieves cryptocurrency price or volume data. By default, it fetches the VRSC price in USD, weighted by 24-hour volume across all exchanges.
### Method
GET
### Endpoint
/api/
### Parameters
#### Query Parameters
- **currency** (string) - Optional - The fiat code (e.g., USD, CAD) or cryptocurrency (e.g., BTC) to display the price in. Defaults to USD.
- **ticker** (string) - Optional - The cryptocurrency ticker symbol (e.g., VRSC, ARRR). Defaults to VRSC.
- **data** (string) - Optional - Specifies the type of data to retrieve. Accepts 'volume' or 'price'. Defaults to 'price'.
- **exch** (string) - Optional - The name of a supported exchange (e.g., digitalprice, cryptobridge). If not specified, the price is an average across all supported exchanges.
### Request Example
```
https://veruspay.io/api/
https://veruspay.io/api/?exch=digitalprice¤cy=cad
https://veruspay.io/api/?currency=btc
https://veruspay.io/api/?currency=cad
https://veruspay.io/api/?exch=cryptobridge&data=volume
https://veruspay.io/api/?exch=cryptobridge&data=volume¤cy=btc
https://veruspay.io/api/?currency=cad&ticker=arrr
```
### Response
#### Success Response (200)
- **price** (number) - The current price of the specified ticker in the requested currency.
- **volume** (number) - The 24-hour trading volume of the specified ticker on the specified exchange (if applicable).
#### Response Example
```json
{
"price": 1.234567
}
```
```json
{
"volume": 1000000
}
```
```
--------------------------------
### Register a Script with Options
Source: https://github.com/oink70/wiki/blob/master/index.html
Creates a `ScriptInfo` object containing the module, source URL, and options for a script, and then adds it to the `registeredScripts` array. This function is used to pre-register scripts that can be loaded later.
```javascript
$.md.registerScript = function(a, b, c) {
var d = new ScriptInfo({ module: a, src: b, options: c });
registeredScripts.push(d)
}
```
--------------------------------
### Get Verus Balance for Specific Address
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos10_useful_cli_commands.md
Fetches the VRSC balance for a specific address, which can be a z-, i-, or P-address. This is useful for checking balances of individual accounts.
```bash
verus z_getbalance ""
```
--------------------------------
### Get New Verus Public Address
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos10_useful_cli_commands.md
Generates a new public address for receiving VRSC coins. This is a fundamental command for setting up a new receiving point in your wallet.
```bash
verus getnewaddress
```
--------------------------------
### Windows CLI: Send Coins (Unshielding)
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos17_unshield_coin_rewards_and_get_them_staking_in_cli.md
This is the Windows command prompt equivalent for sending Verus coins. It demonstrates the necessary character substitutions (' to " and " to \") and the omission of the leading './' required for native Windows command execution. Ensure placeholders are correctly replaced.
```cmd
verus z_sendmany "[{\"address\":\"\",\"amount\":<95.9998>}]"
```
--------------------------------
### Get ARRR Average Price in CAD
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos07_what_are_my_vrsc_worth.md
Retrieves the average price of ARRR ( a different ticker) in CAD, weighted by 24-hour volume. Requires both 'currency' and 'ticker' parameters.
```HTTP
https://veruspay.io/api/?currency=cad&ticker=arrr
```
--------------------------------
### Import Multiple Public Address WIFs into Verus Desktop CLI
Source: https://github.com/oink70/wiki/blob/master/how-to/how-to_convert-seed-to-wif.md
This command imports multiple public (transparent) addresses in a batch. Use the specified command for all WIFs except the last one, and then use the command with `true` for the final WIF to trigger a chain rescan. Replace `` with your actual WIF.
```bash
run importprivkey "" "" false
run importprivkey "" "" true
```
--------------------------------
### Get VRSC Price on Specific Exchange in CAD
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos07_what_are_my_vrsc_worth.md
Fetches the VRSC price from a specified exchange (e.g., digitalprice) and converts it to CAD. Requires the 'exch' and 'currency' parameters.
```HTTP
https://veruspay.io/api/?exch=digitalprice¤cy=cad
```
--------------------------------
### Get Verus Wallet Information
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos10_useful_cli_commands.md
Retrieves detailed information about your Verus wallet, including immature and staking balances. This command offers insights into your wallet's status and holdings.
```bash
verus getwalletinfo
```
--------------------------------
### Run Gimmicks Once
Source: https://github.com/oink70/wiki/blob/master/index.html
Executes the `once` function for each gimmick registered in `$.md.gimmicks` if the `once` property is defined. This is typically used for one-time initialization tasks for gimmicks.
```javascript
function runGimmicksOnce() {
$.each($.md.gimmicks, function(a, b) {
void 0 !== b.once && b.once()
})
}
```
--------------------------------
### Get Verus Total Balance (Detailed)
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos10_useful_cli_commands.md
Provides a more detailed balance report, including information potentially related to immature and staking balances. Useful for a comprehensive financial overview.
```bash
verus z_gettotalbalance
```
--------------------------------
### Verus Desktop Daemon Locations (Windows)
Source: https://github.com/oink70/wiki/blob/master/faq-windows/winfaq-03_verus_desktop_locations.md
This snippet indicates the location of the Verus Desktop daemons within the installation directory. These daemons include komodod, verusd, and zcashd.
```windows-cmd
%ProgramFiles%\Verus-Desktop\resources\app\assets\bin\win64\
```
--------------------------------
### Verus CLI: Consolidate Wallet.dat Files
Source: https://github.com/oink70/wiki/blob/master/index.md
Demonstrates how to consolidate multiple wallet.dat files into a single file using the Verus CLI. This is useful for users who have accumulated several wallet files over time and wish to manage them more efficiently.
```bash
verus walletprocess -consolidate
```
--------------------------------
### Create Sticky Navigation Menu with jQuery
Source: https://github.com/oink70/wiki/blob/master/index.html
This snippet creates a sticky navigation menu for the page using jQuery and its affix plugin. It tracks scroll events to highlight the active section in the menu and dynamically adds menu items based on page anchors. Dependencies include jQuery and its affix plugin.
```javascript
function g(){var b=a("#md-page-menu");if(!b.length)return;var c=a(".md-inpage-anchor");if(!c.length)return;var d=a("");d.css("top",70);var e=a('
');var f=e.find("ul");d.append(e),c.each(function(c,g){var h=a(g),i=a("");i.attr("href",a.md.util.getInpageAnchorHref(h.toptext())),i.click(function(b){b.preventDefault();var c=a(this),d=a.md.util.getInpageAnchorText(c.attr("href"));a.md.scrollToInPageAnchor(d)});i.text(h.toptext());var j=a('');j.append(i),f.append(j)}),a(window).scroll(function(){var c=a(window).scrollTop();b.css("top",70+c);var g=a("#md-page-menu a");g.each(function(b,c){var d=a(c),e=a.md.util.getInpageAnchorText(d.attr("href"));var f=a("#"+e);if(f.length){var g=f.offset().top-a(window).scrollTop();if(g<=100&&g>=-10){d.addClass("active")}else{d.removeClass("active")}}});var h=g.filter(".active");if(h.length){var i=h.offset().top-a(window).scrollTop();if(i>100||i<-10){h.removeClass("active")}}}),a("#md-left-column").append(d)}
```
--------------------------------
### Get VRSC Price in USD (Default)
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos07_what_are_my_vrsc_worth.md
Retrieves the current price of VRSC in USD, weighted against 24-hour volume across all supported exchanges. This is the default behavior when no options are specified.
```HTTP
https://veruspay.io/api/
```
--------------------------------
### Disable SSH Root Login
Source: https://github.com/oink70/wiki/blob/master/faq-linux/faq-lin01_install_linux_cli.md
Enhances security by disabling direct root login via SSH. This requires editing the SSH daemon configuration file and restarting the service.
```bash
sudo nano /etc/ssh/sshd_config
# Change PermitRootLogin yes to PermitRootLogin no
sudo systemctl restart sshd
```
--------------------------------
### Import Single Private Address WIF into Verus Desktop CLI
Source: https://github.com/oink70/wiki/blob/master/how-to/how-to_convert-seed-to-wif.md
This command imports a single private address WIF into the Verus Desktop wallet. The process may take time and the GUI might appear unresponsive. Ensure you replace `` with your actual WIF.
```bash
run z_importkey "" "yes" 1
```
--------------------------------
### Initialize Colorbox with Default Settings
Source: https://github.com/oink70/wiki/blob/master/index.html
Basic initialization of the Colorbox jQuery plugin. This applies the default lightbox behavior to all elements with the class 'colorbox'.
```javascript
$(document).ready(function() {
$(".colorbox").colorbox();
});
```
--------------------------------
### Get VRSC Average Price in CAD
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos07_what_are_my_vrsc_worth.md
Retrieves the average price of VRSC in CAD, weighted by 24-hour volume across supported exchanges. Requires the 'currency' parameter set to 'cad'.
```HTTP
https://veruspay.io/api/?currency=cad
```
--------------------------------
### Manage Verus Daemon and Binaries
Source: https://github.com/oink70/wiki/blob/master/faq-arm/armfaq-03_updating.md
This section covers essential commands for managing the Verus daemon process and its binary files during an update. It includes checking if the daemon is running using `top`, stopping it with `./verus stop`, renaming old binaries for backup, unpacking the new version's binaries, and cleaning up old files after a successful update.
```shell
# Check if Verus daemon is running
top
# Start Verus daemon if not running
./verusd
# Stop the Verus daemon
./verus stop
# Rename old binaries (replace version numbers)
mv verus verus-v0.7.3-9
mv verusd verusd-v0.7.2-9
# Unpack the new version's binaries
tar -xvf Verus-CLI-Linux-v0.7.3-10-arm64.tar.gz
# List files to confirm unpacking
ls -la
# Delete old binaries after successful update (or move them)
rm verus verus-v0.7.3-9
rm verus verusd verus-v0.7.3-9
```
--------------------------------
### Get VRSC Average Price in BTC
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos07_what_are_my_vrsc_worth.md
Calculates the average price of VRSC in BTC, weighted by 24-hour volume across supported exchanges. Requires the 'currency' parameter set to 'btc'.
```HTTP
https://veruspay.io/api/?currency=btc
```
--------------------------------
### Import Single Public Address WIF into Verus Desktop CLI
Source: https://github.com/oink70/wiki/blob/master/how-to/how-to_convert-seed-to-wif.md
This command imports a single public (transparent) address WIF into the Verus Desktop wallet. The process may take time and the GUI might appear unresponsive. Ensure you replace `` with your actual WIF.
```bash
run importprivkey "" "" true
```
--------------------------------
### Get VRSC Volume on Specific Exchange in BTC
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos07_what_are_my_vrsc_worth.md
Retrieves the 24-hour trading volume of VRSC on a specific exchange (e.g., cryptobridge) with the result in BTC. Requires the 'exch', 'data', and 'currency' parameters.
```HTTP
https://veruspay.io/api/?exch=cryptobridge&data=volume¤cy=btc
```
--------------------------------
### Verus Linux: PHP Staking Interface
Source: https://github.com/oink70/wiki/blob/master/index.md
A PHP-based interface for interacting with Verus coinshielding nodes via the command line. This allows for programmatic control and monitoring of staking operations.
```php
```
--------------------------------
### Get VRSC Volume on Specific Exchange (USD)
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos07_what_are_my_vrsc_worth.md
Fetches the 24-hour trading volume of VRSC on a specific exchange (e.g., cryptobridge) in the default USD currency. Requires the 'exch' and 'data' parameters.
```HTTP
https://veruspay.io/api/?exch=cryptobridge&data=volume
```
--------------------------------
### Register Gimmick Links
Source: https://github.com/oink70/wiki/blob/master/index.html
Finds all anchor tags containing "gimmick:" in their text content. For each found link, it parses the gimmick details and subscribes it to its corresponding stage using `subscribeLinkTrigger` if a matching `linkTrigger` is registered.
```javascript
$.md.registerLinkGimmicks = function() {
var a = $("a:icontains(gimmick:)");
a.each(function(a, b) {
var c = $(b),
d = getGimmickLinkParts(c);
$.each(linkTriggers, function(a, b) {
d.trigger === b.trigger && subscribeLinkTrigger(c, d, b)
})
})
}
```
--------------------------------
### Configure Colorbox for Specific Content Types
Source: https://github.com/oink70/wiki/blob/master/index.html
Demonstrates how to configure Colorbox to handle different content types like images, iframes, and inline HTML. It shows how to set options such as width, height, and scrolling behavior.
```javascript
$(".inline").colorbox({
inline: true,
width: "50%",
height: "50%"
});
$(".iframe").colorbox({
iframe: true,
width: "80%",
height: "80%"
});
$(".photo").colorbox({
photo: true
});
```
--------------------------------
### Get Block Information via Verus API
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos15_how_can_i_tell_the_difference_between_staked_and_mined_coins.md
Fetch detailed block information using the Verus Explorer API. By appending a blockhash to the API endpoint, you can determine if a block was minted or mined.
```plaintext
https://explorer.verus.io/api/getblock?hash=BLOCKHASH
```
--------------------------------
### Verus CLI: Get Total Balance
Source: https://github.com/oink70/wiki/blob/master/faq-allos/faq-allos17_unshield_coin_rewards_and_get_them_staking_in_cli.md
Verifies the total balance across all your Verus addresses. This command is useful for confirming that unshielding operations have been completed successfully and that your balances are updated as expected.
```bash
./verus z_gettotalbalance
```
--------------------------------
### Initialize Colorbox Gallery with jQuery
Source: https://github.com/oink70/wiki/blob/master/index.html
This snippet initializes the Colorbox plugin for image galleries. It targets elements with the class '.md-image-group' and applies Colorbox to images within these groups, enabling features like slideshows and responsive sizing. It requires the Colorbox jQuery plugin.
```javascript
var b={name:"colorbox",load:function(){a.md.stage("gimmick").subscribe(function(b){a.gimmicks("colorbox"),b()})}};a.md.registerGimmick(b);var c={colorbox:function(){var b;b=a(this instanceof jQuery?this:".md-image-group");var c=0;return b.each(function(){var b=a(this),d="gallery-group-"+c++;b.find("a.md-image-selfref img").parents("a").colorbox({rel:d,opacity:.75,slideshow:!0,maxWidth:"95%",maxHeight:"95%",scalePhotos:!0,photo:!0,slideshowAuto:!1})})}};a.gimmicks.methods=a.extend({},a.fn.gimmicks.methods,c)}(jQuery)
```
--------------------------------
### Backup Verus Wallet (CLI)
Source: https://github.com/oink70/wiki/blob/master/how-to/how-to_backup_my_wallet.md
Creates a backup of the Verus wallet to a specified file. This method provides full access to all addresses but does not export private keys directly. The command requires a filename without an extension. Verify the backup file exists and matches the size of your wallet.dat.
```bash
# Linux/MacOS CLI:
./verus backupwallet ""
# Windows CLI:
verus backupwallet ""
```
--------------------------------
### Start and Check Verus Wallet Version
Source: https://github.com/oink70/wiki/blob/master/faq-arm/armfaq-03_updating.md
This code demonstrates how to restart the Verus daemon with the new version and then check the wallet's current version information. The `getwalletinfo` command is used to confirm that the update has been applied successfully.
```shell
# Start the Verus daemon with the new version
./verusd
# Check the wallet version
./verus getwalletinfo
```
--------------------------------
### Load Script with Stages and Callbacks
Source: https://github.com/oink70/wiki/blob/master/index.html
Loads a JavaScript script dynamically. It checks the license, subscribes to stage events for loading and completion, and executes a callback function. The script can be loaded via URL or injected inline. It utilizes jQuery's Deferred for asynchronous operations.
```javascript
function loadScript(a) {
var b = a.module,
c = a.src,
d = a.options,
e = d.license || "OTHER",
f = d.loadstage || "skel_ready",
g = d.finishstage || "pregimmick",
h = d.callback,
i = $.Deferred();
checkLicense(e, b), log.debug("subscribing " + b.name + " to start: " + f + " end in: " + g), $.md.stage(f).subscribe(function(a) {
c.startsWith("//") || c.startsWith("http") ? $.getScript(c, function() {
void 0 !== h ? h(a) : (log.debug("module" + b.name + " script load done: " + c), a()), i.resolve()
}) : (insertInlineScript(c), log.debug("module" + b.name + " script inject done"), i.resolve(), a())
}), $.md.stage(g).subscribe(function(a) {
i.done(function() {
a()
})
})
}
```