To help developers here is the list of all available Dogecoin Core RPC Commands and how to setup your own Dogecoin Server to communicate with the Dogecoin Blockchain and how you can execute remote commands using CURL
How to setup a Dogecoin Core RPC Server to communicate with the Doge Blockchain?
Step 1: Download and install Dogecoin Core here: https://github.com/dogecoin/dogecoin/releases/
Step 2: On your instalation DATA directory create a file called dogecoin.conf and add the following:
on uacomment bellow your can name your node or even add a https://TipMyNode.com Hash to receive dogecoin Tips
uacomment= add your name or https://TipMyNode.com Hash Here to receive doge Tips
Add a RPC username
rpcuser= ADD-A-SECRET-USERNAME
Add a RPC Password
rpcpassword=ADD-A-SECRET-PASSWORD
Default port for RPC is 22555 you showl also setup on your firewall and router
rpcport=22555
Start the RPC Server
server=1
Listen to RPC Commands
listen=1
The rpcallowip bellow, you can replicate and add more local or remote IPs that can have access to your RPC server
rpcallowip=127.0.0.1
This will allow to search and decode transactions
txindex=1
ZMQ below will allow Gigawallet to interact
zmqpubhashtx=tcp://127.0.0.1:28332
zmqpubhashblock=tcp://127.0.0.1:28332
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28332
Data Directory to save the dogecoin.conf Located in
Linux $HOME/.dogecoin
macOS $HOME/Library/Application Support/Dogecoin
Windows %APPDATA%\Dogecoin
Step 3: If you setup your Firewall and Router to the Dogecoin RPC Port 22555, you are ready to communicate remotely with the BlockChain and build applications
Example how to execute a CURL command to your hown Dogecoin Server
curl --user USER:PASS --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getbestblockhash","params":[]}' -H 'content-type: text/plain;' http://127.0.0.1:22555/
List of all Available Dogecoin Core RPC commands available on 1.14.6
Blockchain
getbestblockhash
getblock "blockhash" ( verbose )
getblockchaininfo
getblockcount
getblockhash height
getblockheader "hash" ( verbose )
getchaintips
getdifficulty
getmempoolancestors txid (verbose)
getmempooldescendants txid (verbose)
getmempoolentry txid
getmempoolinfo
getrawmempool ( verbose )
gettxout "txid" n ( include_mempool )
gettxoutproof ["txid",...] ( blockhash )
gettxoutsetinfo
preciousblock "blockhash"
pruneblockchain
verifychain ( checklevel nblocks )
verifytxoutproof "proof"
Control
getinfo
getmemoryinfo
help ( "command" )
stop
Generating
generate nblocks ( maxtries auxpow )
generatetoaddress nblocks address (maxtries auxpow)
Mining
createauxblock <address>
getauxblock (hash auxpow)
getblocktemplate ( TemplateRequest )
getmininginfo
getnetworkhashps ( nblocks height )
prioritisetransaction <txid> <priority delta> <fee delta>
submitauxblock <hash> <auxpow>
submitblock "hexdata" ( "jsonparametersobject" )
Network
addnode "node" "add|remove|onetry"
clearbanned
disconnectnode "address"
getaddednodeinfo ( "node" )
getconnectioncount
getnettotals
getnetworkinfo
getpeerinfo
listbanned
ping
setban "subnet" "add|remove" (bantime) (absolute)
setmaxconnections
setnetworkactive true|false
Rawtransactions
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime )
decoderawtransaction "hexstring"
decodescript "hexstring"
fundrawtransaction "hexstring" ( options )
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
estimatesmartfee nblocks
estimatesmartpriority nblocks
signmessagewithprivkey "privkey" "message"
validateaddress "address"
verifymessage "address" "signature" "message"
Wallet
abandontransaction "txid"
addmultisigaddress nrequired ["key",...] ( "account" )
addwitnessaddress "address"
backupwallet "destination"
bumpfee "txid" ( options )
dumpprivkey "address"
dumpwallet "filename"
getaccount "address"
getaccountaddress "account"
getaddressesbyaccount "account"
getbalance ( "account" minconf include_watchonly )
getnewaddress ( "account" )
getrawchangeaddress
getreceivedbyaccount "account" ( minconf )
getreceivedbyaddress "address" ( minconf )
gettransaction "txid" ( include_watchonly )
getunconfirmedbalance
getwalletinfo
importaddress "address" ( "label" rescan p2sh )
importmulti "requests" "options"
importprivkey "dogecoinprivkey" ( "label" ) ( rescan )
importprunedfunds
importpubkey "pubkey" ( "label" rescan )
importwallet "filename"
keypoolrefill ( newsize )
listaccounts ( minconf include_watchonly)
listaddressgroupings
listlockunspent
listreceivedbyaccount ( minconf include_empty include_watchonly)
listreceivedbyaddress ( minconf include_empty include_watchonly)
listsinceblock ( "blockhash" target_confirmations include_watchonly)
liststucktransactions ( verbose include_watchonly )
listtransactions ( "account" count skip include_watchonly)
listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
lockunspent unlock ([{"txid":"txid","vout":n},...])
move "fromaccount" "toaccount" amount ( minconf "comment" )
removeprunedfunds "txid"
rescan ( "height" )
sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] )
sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount )
setaccount "address" "account"
settxfee amount
signmessage "address" "message"
walletlock
walletpassphrase "passphrase" timeout
walletpassphrasechange "oldpassphrase" "newpassphrase"