Skip to content

Instantly share code, notes, and snippets.

@justanwar
justanwar / spark-rpc.md
Last active October 28, 2025 09:05
List of Spark RPCs for making/receiving payments

The main two: mint and spend

mintspark {"address":{amount,memo...}}

Mints (privatize/anonymise) transparent balance. The amount is added to the wallet's private balance. Target address can be own wallet's or external wallet's.

spendspark {"address":{amount,subtractfee...}, "address":{amount,memo,subtractfee...}}

Spends private balance (unshields, if to a transparent address. Mints, if to a Spark/private address).Target address can be own wallet's or external wallet's.

@justanwar
justanwar / rem_islock.sh
Last active September 30, 2025 04:17
rem_islock.sh
firo-cli removeislock fb5e6efe2d3c633c2176b3dc84cf151fb6a29f5419067992387cc55fa7b3d7cb
firo-cli removeislock 794d98433d94a8c616856ea7f4f5f87d1d3080ec5737a143a4a16c3b1a359f9d
firo-cli removeislock 70fd365cfecc4be66586476a9074809887ac9c767c957e38647ec0020c296de0
firo-cli removeislock a2abd1093d8d8dea46ec25735ba7134cae34baf95c2fe2b1827ca0e06645c2e2
firo-cli removeislock 654c08867ef9d0755f26d9ee7ef7b1a03a010409794b13d25fecacc4ef936119
firo-cli removeislock 521ea34b6d326c74fbcae71c4ad5a6ff4d497542cc64d0bcc61727cc83e62184
firo-cli invalidateblock 6e5c8ca003d5386558fefce1c1dae134e8f9b4770bc6eee74539c0e405344a4f
firo-cli reconsiderblock bce69b1f20fea873b219c5a63f986498b45d0a678f1ee27a70fd91ebffca7c9a
firo-cli reconsiderblock a6b78772b21693ea841f8871a260c9c4397f00c5f44db10257925670bf38a69c
firo-cli clearbanned

Keybase proof

I hereby claim:

  • I am justanwar on github.
  • I am anwarp (https://keybase.io/anwarp) on keybase.
  • I have a public key ASAwlyeIwK6UczPAAdWYxnh-q_Emm0jn4SAdXbPkRGzq5Ao

To claim this, I am signing this object:

@justanwar
justanwar / zcoin
Last active September 2, 2019 05:55
Logrotate Zcoin's debug file
# An example of a logrotate file for Zcoin's debug.log
# This assumes that Zcoin data directory is in the default location. Please modify accordingly.
# The file should be created at /etc/logrotate.d/zcoin
/home/username/.zcoin/debug.log {
daily
missingok
rotate 28
compress
copytruncate
# Install monit if not installed
sudo apt install monit
# Edit monit control file
sudo nano /etc/monit/monitrc
# Uncomment the following lines
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
@justanwar
justanwar / update_zcoin_mns.yml
Last active December 20, 2019 10:35 — forked from goodc0re/update_zcoin_mns.yml
Ansible playbook to update a zcoin masternode on Ubuntu, update Ubuntu with apt and reboot if needed
# update_zcoin_mns.yml
---
- hosts: zcoin_masternodes
vars_files: vault.yml
become: yes
become_method: sudo
tasks:
- name: Download zcoin binary
become: no
get_url: