api/v2/block - Dogecoin

This endpoint returns block information with a paged list of the transactions it contains. The block can be selected by height or by hash.

Parameters

ParameterTypeLocationRequiredDescription
blockIdstringpathYesBlock height or block hash
pageintegerqueryNo1-based page index over the block's transactions

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/block/afd10312739304ad5809a454bf723dd2f48fedc08600695fee147a23567be1cf?page=1'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/block/afd10312739304ad5809a454bf723dd2f48fedc08600695fee147a23567be1cf?page=1'
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/block/afd10312739304ad5809a454bf723dd2f48fedc08600695fee147a23567be1cf?page=1')

print(response.json())

Response

json{
    "page": 1,
    "totalPages": 1,
    "itemsOnPage": 1000,
    "hash": "afd10312739304ad5809a454bf723dd2f48fedc08600695fee147a23567be1cf",
    "previousBlockHash": "b1b6e89d831683c62b79af87de01df41caa6914fa977e5877027b14d99f0f8f6",
    "nextBlockHash": "2ce761c3dff30841f1435165b3315ddf163243477d7bf1969f84e2608ac3a855",
    "height": 6378930,
    "confirmations": 43,
    "size": 55958,
    "time": 1789703885,
    "version": 6422788,
    "merkleRoot": "3033dfe05f5377ca20680dbba85eefd14adbf932ddece22d06980538e8d14809",
    "nonce": "0",
    "bits": "1967ad65",
    "difficulty": "41425662.4408129",
    "txCount": 70,
    "txs": [
        {
            "txid": "d0dd61c93cd4a571030c15b5f6a94466a8f7246b986dd318d656c910e6e5a8ed",
            "blockHeight": 6378930,
            "confirmations": 43,
            "blockTime": 1789703885,
            "value": "499999999659500",
            "valueIn": "500000000000000",
            "fees": "340500"
        }
    ]
}

Response Parameters

FieldTypeDescription
hashstringBlock hash
previousBlockHashstringHash of the preceding block
heightintegerBlock height
confirmationsintegerNumber of confirmations
timeintegerBlock timestamp
sizeintegerBlock size in bytes
merkleRootstringMerkle root of the block's transactions
noncestringBlock nonce. Always 0 on Dogecoin, which is merge-mined with Litecoin
bitsstringCompact difficulty target
difficultystringProof-of-work difficulty at this block
txCountintegerTotal number of transactions in the block
txsarrayTransactions on the requested page

Dogecoin targets a one-minute block interval, so heights advance about ten times faster than Bitcoin. A confirmation depth copied from a Bitcoin integration settles in roughly a tenth of the wall-clock time; choose depth by the time you need.

Use Cases

  • Explorers: Render a block and its transactions
  • Chain Walking: Follow previousBlockHash to traverse the chain
  • Reconciliation: Scan a block's transactions for addresses of interest

Error Handling

HTTP StatusMessageDescription
400Bad requestA path or query parameter is malformed
403ForbiddenMissing or invalid ACCESS-TOKEN
404Not foundNo indexed data exists for the request
500Internal errorThe indexer failed to process the request