Skip to content

Instantly share code, notes, and snippets.

View metaspartan's full-sized avatar
🫕
Cooking

Carsen Klock metaspartan

🫕
Cooking
View GitHub Profile
#########
# denariusd daemon addnode ban with port, or switch denariusd to denarius.daemon for snap
#########
#!/bin/bash
#. config.conf
#. rpc.sh
wallet_ip=$(denariusd getpeerinfo | jq -r '.[].addr' | awk '!seen[$0]++')
while IFS= read -r
//npm install discord.js node-fetch
//get blockheight from Chainz CryptoID and update Bots Name as Blockheight
const Discord = require('discord.js');
const fetch = require('node-fetch');
const config = require("./config.json");
var chainzApi = "https://chainz.cryptoid.info/d/api.dws?q=getblockcount"
const client = new Discord.Client();
@metaspartan
metaspartan / denarius.io prices
Created February 17, 2021 16:39
denarius.io prices
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script>
fetch('https://api.coingecko.com/api/v3/coins/denarius?tickers=true&market_data=true&community_data=true&developer_data=true&sparkline=false')
.then((response) => {
return response.text();
})
.then((myContent) => {
var market = JSON.parse(myContent);
var info = market["market_data"]["current_price"]["usd"];
document.getElementById('dprice').innerHTML = info.toFixed(2);
@metaspartan
metaspartan / ddns_update_data_denarius.py
Created February 10, 2021 01:20 — forked from buzzkillb/ddns_update_data_denarius.py
ddns_update_data_denarius.py
from denariusrpc.authproxy import AuthServiceProxy, JSONRPCException
#DDNS to update data
ddns_update_name = 'api:python_example'
ddns_update_value = 'example value update'
ddns_update_expiration = 9999
# rpc_user and rpc_password are set in the denarius.conf file
rpc_connection = AuthServiceProxy("http://%s:%s@127.0.0.1:32369"%("rpcusername", "rpcpassword"))
#create new Denarius DDNS name based on name, value and expiration
from denariusrpc.authproxy import AuthServiceProxy, JSONRPCException
#DDNS to create data
ddns_create_name = 'api:python_example'
ddns_create_value = 'example value'
ddns_create_expiration = 9999
# rpc_user and rpc_password are set in the denarius.conf file
rpc_connection = AuthServiceProxy("http://%s:%s@127.0.0.1:32369"%("rpcusername", "rpcpassword"))
#!/bin/bash
#############
#The goal is to take all the addresses in a wallet over minimumbalance user sets and send equal amounts of lowest D per
#all those addresses and send to that many new addresses, like a very very crude coinjoin on your own wallet.
#To try you need snap installed, load QT and run. Use a test wallet with 2 small D addresses to see what happens.
#############
# daemon location
denariusdaemon=/snap/bin/denarius.daemon
#combine inputs and send to a given address, for single address specifically for yiimp 0 input lag
#!/bin/bash
. config.conf
. rpc.sh
#this is meant to clean a mining pool Denarius address as it will retie addresses together searching for a D input greater than txfee from change address and main wallet
#auto finds ZERO inputs to send, gets txfee, finds input with D > txfee and sends back on itself
#####################
#wget https://raw.githubusercontent.com/buzzkillb/bash-denariusrpc/master/rpc.sh
import struct
import base58
import hashlib
import ecdsa
import codecs
import binascii
from hashlib import sha256
#For Python 3, tested on stock ubuntu 20.04
#pip3 install each import above
@metaspartan
metaspartan / did:3:bafyreiepg4a6pahmhecncuw2ul543zkle4l4yrrxzzu3fclwrmkifbyofy
Created September 18, 2020 06:52
did:3:bafyreiepg4a6pahmhecncuw2ul543zkle4l4yrrxzzu3fclwrmkifbyofy
did:3:bafyreiepg4a6pahmhecncuw2ul543zkle4l4yrrxzzu3fclwrmkifbyofy
#!/bin/bash
#Revolver - Cycle through single daemon to ping the network as fast as possible
#genkeylist.txt is a copy of your masternode.conf or fortunastake.conf in same directory this script runs from
# daemon location
denariusdaemon=/usr/local/bin/denariusd
# debug.log location
debuglog=~/.denarius/debug.log
# denarius.conf location
denariusconf=~/.denarius/denarius.conf