Dogecoin JSON-RPC API

The Dogecoin JSON-RPC API exposes the Dogecoin Core node interface: methods for reading blocks and transactions, inspecting individual unspent outputs, building and signing raw transactions, and reading node and mining state. Requests POST a JSON-RPC 2.0 body to the endpoint; the method is selected by the body.

This is the node interface. It has no address index, so it cannot answer "what is the balance of this address" or "what are the unspent outputs of this address". Those queries belong on the Blockbook add-on, which is provisioned as its own endpoint.

Base URL

bashhttps://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

Request Format

Every request is a POST carrying a JSON-RPC 2.0 body:

bashcurl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "getblockcount",
    "params": [],
    "id": "getblock.io"
}'

Available Methods

Blockchain information

MethodDescription
getblockchaininfoReturns state information about blockchain processing
getbestblockhashReturns the hash of the current chain tip
getblockcountReturns the number of blocks in the longest blockchain
getdifficultyReturns the current mining difficulty
getchaintipsReturns information about all known tips in the block tree
getinfoReturns an object containing various state info about the node
getconnectioncountReturns the number of connections to other nodes
getmemoryinfoReturns information about the node's memory usage
helpLists every command the node exposes, or describes one

Block retrieval

MethodDescription
getblockReturns block data for a given block hash
getblockhashReturns the hash of the block at a given height
getblockheaderReturns a block header without its transactions

Transaction methods

MethodDescription
getrawtransactionReturns the raw transaction data for a given transaction id
decoderawtransactionDecodes a hex-encoded raw transaction and returns it as JSON
createrawtransactionCreates a raw transaction spending the given inputs
signrawtransactionSigns inputs for a serialized, hex-encoded raw transaction
sendrawtransactionBroadcasts a signed transaction and returns its id
decodescriptDecodes a hex-encoded script

Mempool methods

MethodDescription
getrawmempoolReturns the transaction ids of everything in the memory pool
getmempoolinfoReturns details on the active state of the memory pool
getmempoolentryReturns mempool data for a single queued transaction
getmempoolancestorsReturns the unconfirmed transactions a transaction depends on
getmempooldescendantsReturns the unconfirmed transactions that depend on one

UTXO and proofs

MethodDescription
gettxoutReturns details about a single unspent transaction output
gettxoutproofReturns a merkle proof that transactions were included in a block

Mining methods

MethodDescription
getmininginfoReturns mining-related information
getnetworkhashpsReturns the estimated network hashes per second
getblocktemplateReturns the data needed to construct a candidate block

Utility methods

MethodDescription
validateaddressValidates a Dogecoin address and returns information
verifymessageVerifies a signed message

Dogecoin Core is based on an older Bitcoin Core release, so methods added to Bitcoin Core later are not available here. The PSBT family (createpsbt, decodepsbt, combinepsbt, finalizepsbt, converttopsbt), signrawtransactionwithkey, getblockstats, testmempoolaccept, and getrpcinfo are absent; use createrawtransaction and signrawtransaction in place of the PSBT workflow. Methods specific to other forks, such as Bitcoin Cash Node's getfinalizedblockhash, do not exist on Dogecoin either.

Call help with no parameter to get the authoritative list from the node itself.

Wallet methods are not available

Dogecoin Core's wallet RPC methods — listunspent, listtransactions, getbalance, sendtoaddress, getnewaddress, dumpprivkey, importprivkey, walletpassphrase, and the rest — operate on a wallet loaded on the node itself. Shared nodes carry no user wallets, so these methods are disabled and are not documented here.

Address-level questions are answered by the Blockbook add-on instead:

Dogecoin Core wallet methodBlockbook REST equivalent
listunspent/api/v2/utxo/{address}
listtransactions/api/v2/address/{address}?details=txs
getbalance/api/v2/address/{address}?details=basic
getreceivedbyaddress/api/v2/address/{address}?details=basic
gettransaction/api/v2/tx/{txid}

gettxout reports a single outpoint that the caller already knows. It cannot list the outputs belonging to an address, which is the query most integrations actually need. Use the Blockbook UTXO endpoint for that.

Support