For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dogecoin JSON-RPC API

GetBlock provides fast and reliable access to Dogecoin nodes via JSON-RPC API. Connect to the Dogecoin network without running your own infrastructure.

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

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

Request Format

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

curl --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

Method
Description

Returns state information about blockchain processing

Returns the hash of the current chain tip

Returns the number of blocks in the longest blockchain

Returns the current mining difficulty

Returns information about all known tips in the block tree

Returns an object containing various state info about the node

Returns the number of connections to other nodes

Returns information about the node's memory usage

Lists every command the node exposes, or describes one

Block retrieval

Method
Description

Returns block data for a given block hash

Returns the hash of the block at a given height

Returns a block header without its transactions

Transaction methods

Method
Description

Returns the raw transaction data for a given transaction id

Decodes a hex-encoded raw transaction and returns it as JSON

Creates a raw transaction spending the given inputs

Signs inputs for a serialized, hex-encoded raw transaction

Broadcasts a signed transaction and returns its id

Decodes a hex-encoded script

Mempool methods

Method
Description

Returns the transaction ids of everything in the memory pool

Returns details on the active state of the memory pool

Returns mempool data for a single queued transaction

Returns the unconfirmed transactions a transaction depends on

Returns the unconfirmed transactions that depend on one

UTXO and proofs

Method
Description

Returns details about a single unspent transaction output

Returns a merkle proof that transactions were included in a block

Mining methods

Method
Description

Returns mining-related information

Returns the estimated network hashes per second

Returns the data needed to construct a candidate block

Utility methods

Method
Description

Validates a Dogecoin address and returns information

Verifies 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 method
Blockbook 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}

Support

Last updated

Was this helpful?