This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
did:3:bafyreiepg4a6pahmhecncuw2ul543zkle4l4yrrxzzu3fclwrmkifbyofy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder