api/v2/utxo - Dogecoin

This endpoint returns the unspent transaction outputs for an address, extended public key, or descriptor. These outputs are the inputs available when constructing a spending transaction.

Both confirmed and unconfirmed outputs are returned by default. Results are sorted by block height, newest first.

Parameters

ParameterTypeLocationRequiredDescription
addressOrXpubstringpathYesAddress, extended public key, or descriptor. URL-encode descriptors
confirmedbooleanqueryNoWhen true, return only confirmed outputs. Default false
gapintegerqueryNoDerivation gap limit for xpub inputs, capped by the server

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/utxo/DRv9o4XUK1DhNiuKPadPwkQNkPgtcniBFF?confirmed=true'

example.js

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

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/utxo/DRv9o4XUK1DhNiuKPadPwkQNkPgtcniBFF?confirmed=true')

print(response.json())

Response

json[
    {
        "txid": "4c5519699240ed1f23e1ec46ea4bc85f019982f6ef48afdb7698054230a4b76e",
        "vout": 0,
        "value": "1000000",
        "height": 6378960,
        "confirmations": 2
    },
    {
        "txid": "8d99a37f27d702b35bcc74dfea0d1a006a67c20571e1de660a30defc16316c8f",
        "vout": 1,
        "value": "248941280401251",
        "height": 6378956,
        "confirmations": 6
    }
]

Response Parameters

FieldTypeDescription
txidstringTransaction id of the output
voutintegerOutput index within the transaction
valuestringOutput value in koinu
heightintegerBlock height at which the output was confirmed. Omitted when unconfirmed
confirmationsintegerNumber of confirmations. 0 for unconfirmed outputs
addressstringOwning address. Returned only for xpub and descriptor queries
pathstringDerivation path of the owning address. Only for xpub and descriptor queries
coinbasebooleanTrue for coinbase outputs, up to the coinbase maturity limit

An address query returns no address or path; those fields appear only for xpub and descriptor queries, where they identify which derived address owns each output.

This endpoint replaces the Dogecoin Core listunspent wallet RPC, which is disabled on shared nodes because those nodes carry no user wallets.

Use Cases

  • Coin Selection: Read spendable outputs when building a transaction
  • Balance Construction: Sum output values to compute a spendable balance
  • Wallet Funding: Find the UTXOs behind a wallet before spending
  • Confirmed Filtering: Restrict to confirmed outputs for settlement flows

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