api/v2/tx - Dogecoin

This endpoint returns a normalized transaction by its id, with inputs, outputs, addresses, values, and confirmation data in the indexer's unified schema.

Parameters

ParameterTypeLocationRequiredDescription
txidstringpathYesThe transaction id
spendingbooleanqueryNoInclude spending transaction data for outputs when available

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tx/d0dd61c93cd4a571030c15b5f6a94466a8f7246b986dd318d656c910e6e5a8ed'

example.js

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

example.py

pythonimport requests

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

print(response.json())

Response

json{
    "txid": "d0dd61c93cd4a571030c15b5f6a94466a8f7246b986dd318d656c910e6e5a8ed",
    "version": 1,
    "vin": [
        {
            "txid": "9af546f78a4cae9031954de80203cff6100c9c22744a4827738713595a1c588a",
            "sequence": 4294967295,
            "n": 0,
            "addresses": [
                "DL4iyB4jtVNtwPsti24ron4prY2UZoUjG3"
            ],
            "isAddress": true,
            "value": "500000000000000"
        }
    ],
    "vout": [
        {
            "value": "180647818052655",
            "n": 0,
            "spent": true,
            "hex": "76a914986ae75df449ca5e04503c0baa69bbeca93fcf6188ac",
            "addresses": [
                "DK31KDnpWXT5DyhZgrYY86VdQ92pp7hXmP"
            ],
            "isAddress": true
        }
    ],
    "blockHash": "afd10312739304ad5809a454bf723dd2f48fedc08600695fee147a23567be1cf",
    "blockHeight": 6378930,
    "confirmations": 32,
    "blockTime": 1789703885,
    "size": 225,
    "value": "499999999659500",
    "valueIn": "500000000000000",
    "fees": "340500"
}

Response Parameters

FieldTypeDescription
txidstringThe transaction id
vinarrayInputs with addresses and values
voutarrayOutputs with values, scripts, and destination addresses
vout[].spentbooleanTrue when the output has already been spent
blockHashstringHash of the containing block. Absent while unconfirmed
blockHeightintegerBlock height, or -1 while unconfirmed
confirmationsintegerNumber of confirmations. 0 while unconfirmed
sizeintegerSerialized size in bytes
valuestringTotal output value in koinu
valueInstringTotal input value in koinu
feesstringFee paid in koinu

Dogecoin has no SegWit, so there is no vsize field; size is the only size reported and fee rates are per byte. Empty fields are omitted rather than returned as null, so lockTime and rbf are absent unless set.

Use Cases

  • Transaction Views: Render a normalized transaction in a wallet or explorer
  • Payment Confirmation: Read confirmations to confirm a received payment
  • Fee Inspection: Read the computed fee for a transaction
  • Spend Tracking: Check whether outputs are already spent

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