Skip to content

Instantly share code, notes, and snippets.

@TravisMullen
Created January 1, 2018 03:20
Show Gist options
  • Save TravisMullen/560af7107872ffa3d2da7c91e040ede0 to your computer and use it in GitHub Desktop.
Save TravisMullen/560af7107872ffa3d2da7c91e040ede0 to your computer and use it in GitHub Desktop.
PIVX Commands
== Blockchain ==
getbestblockhash
getblock "hash" ( verbose )
getblockchaininfo
getblockcount
getblockhash index
getblockheader "hash" ( verbose )
getchaintips
getdifficulty
getmempoolinfo
getrawmempool ( verbose )
gettxout "txid" n ( includemempool )
gettxoutsetinfo
verifychain ( numblocks )
== Control ==
getinfo
help ( "command" )
stop
== Generating ==
getgenerate
gethashespersec
setgenerate generate ( genproclimit )
== Mining ==
getblocktemplate ( "jsonrequestobject" )
getmininginfo
getnetworkhashps ( blocks height )
prioritisetransaction <txid> <priority delta> <fee delta>
reservebalance ( reserve amount )
submitblock "hexdata" ( "jsonparametersobject" )
== Network ==
addnode "node" "add|remove|onetry"
getaddednodeinfo dns ( "node" )
getconnectioncount
getnettotals
getnetworkinfo
getpeerinfo
ping
== Pivx ==
checkbudgets
createmasternodekey
getbudgetinfo ( "proposal" )
getbudgetprojection
getbudgetvotes "proposal-name"
getmasternodecount
getmasternodeoutputs
getmasternodescores ( blocks )
getmasternodestatus
getmasternodewinners ( blocks "filter" )
getnextsuperblock
getpoolinfo
listmasternodeconf ( "filter" )
listmasternodes ( "filter" )
masternode "command"...
masternodeconnect "address"
masternodecurrent
masternodedebug
mnbudget "command"... ( "passphrase" )
mnbudgetrawvote "masternode-tx-hash" masternode-tx-index "proposal-hash" yes|no time "vote-sig"
mnbudgetvote "local|many|alias" "votehash" "yes|no" ( "alias" )
mnfinalbudget "command"... ( "passphrase" )
mnsync "status|reset"
Obfuscation is not supported any more. User Zerocoin
preparebudget "proposal-name" "url" payment-count block-start "pivx-address" monthy-payment
spork <name> [<value>]
startmasternode "local|all|many|missing|disabled|alias" lockwallet ( "alias" )
submitbudget "proposal-name" "url" payment-count block-start "pivx-address" monthy-payment "fee-tx"
== Rawtransactions ==
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}
decoderawtransaction "hexstring"
decodescript "hex"
getrawtransaction "txid" ( verbose )
sendrawtransaction "hexstring" ( allowhighfees )
signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
== Util ==
createmultisig nrequired ["key",...]
estimatefee nblocks
estimatepriority nblocks
validateaddress "pivxaddress"
verifymessage "pivxaddress" "signature" "message"
== Wallet ==
addmultisigaddress nrequired ["key",...] ( "account" )
autocombinerewards true|false ( threshold )
backupwallet "destination"
bip38decrypt "pivxaddress"
bip38encrypt "pivxaddress"
dumpprivkey "pivxaddress"
dumpwallet "filename"
encryptwallet "passphrase"
getaccount "pivxaddress"
getaccountaddress "account"
getaddressesbyaccount "account"
getbalance ( "account" minconf includeWatchonly )
getnewaddress ( "account" )
getrawchangeaddress
getreceivedbyaccount "account" ( minconf )
getreceivedbyaddress "pivxaddress" ( minconf )
getstakesplitthreshold
getstakingstatus
gettransaction "txid" ( includeWatchonly )
getunconfirmedbalance
getwalletinfo
importaddress "address" ( "label" rescan )
importprivkey "pivxprivkey" ( "label" rescan )
importwallet "filename"
keypoolrefill ( newsize )
listaccounts ( minconf includeWatchonly)
listaddressgroupings
listlockunspent
listreceivedbyaccount ( minconf includeempty includeWatchonly)
listreceivedbyaddress ( minconf includeempty includeWatchonly)
listsinceblock ( "blockhash" target-confirmations includeWatchonly)
listtransactions ( "account" count from includeWatchonly)
listunspent ( minconf maxconf ["address",...] )
lockunspent unlock [{"txid":"txid","vout":n},...]
move "fromaccount" "toaccount" amount ( minconf "comment" )
multisend <command>
sendfrom "fromaccount" "topivxaddress" amount ( minconf "comment" "comment-to" )
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" )
sendtoaddress "pivxaddress" amount ( "comment" "comment-to" )
sendtoaddressix "pivxaddress" amount ( "comment" "comment-to" )
setaccount "pivxaddress" "account"
setstakesplitthreshold value
settxfee amount
signmessage "pivxaddress" "message"
== Zerocoin ==
exportzerocoins include_spent ( denomination )
getarchivedzerocoin
getzerocoinbalance
importzerocoins importdata
listmintedzerocoins
listspentzerocoins
listzerocoinamounts
mintzerocoin <amount>
reconsiderzerocoins
resetmintzerocoin <extended_search>
resetspentzerocoin
spendzerocoin <amount> <mintchange [true|false]> <minimizechange [true|false]> <securitylevel [1-100]> <address>
@TravisMullen
Copy link
Author

pivx-cli getstakingstatus | jq -r '.["staking status"]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment