DGB Blockbook
Status
Status page returns current status of Blockbook and connected backend.
Method: GET
https://dgbbook.nownodes.io/api/
Example response: 200
{
"blockbook": {
"coin": "DigiByte",
"host": "a97852263b31",
"version": "devel",
"gitCommit": "1f10bd2b",
"buildTime": "2023-04-24T07:33:57+00:00",
"syncMode": true,
"initialSync": false,
"inSync": true,
"bestHeight": 19117916,
"lastBlockTime": "2024-04-17T11:43:49.190807908Z",
"inSyncMempool": true,
"lastMempoolTime": "2024-04-17T11:43:31.464460201Z",
"mempoolSize": 0,
"decimals": 8,
"dbSize": 34488643739,
"about": "Blockbook - blockchain indexer for Trezor Suite https://trezor.io/trezor-suite. Do not use for any other purpose."
},
"backend": {
"chain": "main",
"blocks": 19117916,
"headers": 19117916,
"bestBlockHash": "00000000000000029edd76585df864142d79197bbf01ff04e1e533062d65b04c",
"sizeOnDisk": 31542613115,
"version": "7170200",
"subversion": "/DigiByte:7.17.2(dgb-bitcore)/",
"protocolVersion": "70017"
}
}
Get block hash
Method: GET
https://dgbbook.nownodes.io/api/v2/block-index/<block height>
Example response: 200
{
"blockHash": "00000000000000029edd76585df864142d79197bbf01ff04e1e533062d65b04c"
}
Get transaction
Get transaction returns "normalized" data about transaction, which has the same general structure for all supported coins. It does not return coin specific fields (for example information about Zcash shielded addresses).
Method: GET
https://dgbbook.nownodes.io/api/v2/tx/<txid>
Example response: 200
{
"txid": "349cd7dc12227ffd9e165aeeabed0eb0d963d7c16d01ac778fa9c8fcfa0ee268",
"version": 1,
"vin": [
{
"n": 0,
"isAddress": false,
"coinbase": "04ceb6230104a6ad1f6608fabe6d6d0000000000000000000000000000000000000000000000000000000000000000010000000000000005380e36fa030000f802122f4d696e696e672d44757463682f2d313132"
}
],
"vout": [
{
"value": "35109693213",
"n": 0,
"hex": "76a9146a8ee79b37bba6f86b14263aab410f91afafe14288ac",
"addresses": [
"DErXMnY9PjeDm6WHn7ZwBVnCUQDbNEEtQ4"
],
"isAddress": true
},
{
"value": "0",
"n": 1,
"hex": "6a24aa21a9ed56d3f3706989d3e910751f2d56e983e6e87274205aba72f7342cbc9bfb73bdf8",
"addresses": [
"OP_RETURN aa21a9ed56d3f3706989d3e910751f2d56e983e6e87274205aba72f7342cbc9bfb73bdf8"
],
"isAddress": false
}
],
"blockHash": "2d726f31c606fc85f0d9bb85b5388a358ab948a37959eaf1ce2dc57fdc1669b0",
"blockHeight": 19117774,
"confirmations": 153,
"blockTime": 1713352101,
"value": "35109693213",
"valueIn": "0",
"fees": "0",
"hex": "010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff5404ceb6230104a6ad1f6608fabe6d6d0000000000000000000000000000000000000000000000000000000000000000010000000000000005380e36fa030000f802122f4d696e696e672d44757463682f2d31313200000000021d67b32c080000001976a9146a8ee79b37bba6f86b14263aab410f91afafe14288ac0000000000000000266a24aa21a9ed56d3f3706989d3e910751f2d56e983e6e87274205aba72f7342cbc9bfb73bdf80120000000000000000000000000000000000000000000000000000000000000000000000000"
}
Get transaction specific
Returns transaction data in the exact format as returned by backend, including all coin specific fields:
Method: GET
https://dgbbook.nownodes.io/api/v2/tx-specific/<txid>
Example response: 200
{
"txid": "349cd7dc12227ffd9e165aeeabed0eb0d963d7c16d01ac778fa9c8fcfa0ee268",
"hash": "a2826ce5c8d17ba6f1aa75c43218fc0608c6d5500cee78d28ec5adf28b53ddc2",
"version": 1,
"size": 252,
"vsize": 225,
"weight": 900,
"locktime": 0,
"vin": [
{
"coinbase": "04ceb6230104a6ad1f6608fabe6d6d0000000000000000000000000000000000000000000000000000000000000000010000000000000005380e36fa030000f802122f4d696e696e672d44757463682f2d313132",
"sequence": 0
}
],
"vout": [
{
"value": 351.09693213,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 6a8ee79b37bba6f86b14263aab410f91afafe142 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9146a8ee79b37bba6f86b14263aab410f91afafe14288ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"DErXMnY9PjeDm6WHn7ZwBVnCUQDbNEEtQ4"
]
}
},
{
"value": 0.00000000,
"n": 1,
"scriptPubKey": {
"asm": "OP_RETURN aa21a9ed56d3f3706989d3e910751f2d56e983e6e87274205aba72f7342cbc9bfb73bdf8",
"hex": "6a24aa21a9ed56d3f3706989d3e910751f2d56e983e6e87274205aba72f7342cbc9bfb73bdf8",
"type": "nulldata"
}
}
],
"hex": "010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff5404ceb6230104a6ad1f6608fabe6d6d0000000000000000000000000000000000000000000000000000000000000000010000000000000005380e36fa030000f802122f4d696e696e672d44757463682f2d31313200000000021d67b32c080000001976a9146a8ee79b37bba6f86b14263aab410f91afafe14288ac0000000000000000266a24aa21a9ed56d3f3706989d3e910751f2d56e983e6e87274205aba72f7342cbc9bfb73bdf80120000000000000000000000000000000000000000000000000000000000000000000000000",
"blockhash": "2d726f31c606fc85f0d9bb85b5388a358ab948a37959eaf1ce2dc57fdc1669b0",
"confirmations": 155,
"time": 1713352101,
"blocktime": 1713352101
}
Get address
Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.
Method: GET
https://dgbbook.nownodes.io/api/v2/address/<address>[?page=<page>&pageSize=<size>&from=<block height>&to=<block height>&details=<basic|tokens|tokenBalances|txids|txs>&contract=<contract address>&secondary=usd]
Example response: 200
{
"page": 1,
"totalPages": 307,
"itemsOnPage": 1000,
"address": "DErXMnY9PjeDm6WHn7ZwBVnCUQDbNEEtQ4",
"balance": "68502073800049",
"totalReceived": "10931930896240393",
"totalSent": "10863428822440344",
"unconfirmedBalance": "0",
"unconfirmedTxs": 0,
"txs": 306917,
"txids": [
"09f701e8e6b9c056cedba1e5ba0e6be7a4b07930a77147942b0b29f174bc56cd",
"b79842e717ccc63dcccb50c9abc6fbaa7d82dfd18f72bb38b4bfd2da377880fb",
"0ace0b443038abc7d1f3d4e69729f74218aa6d27da2858df568643bc85b301a8",
"658f38c02bd24fd73a9a79f8228def1060aefd57d68095f8a3d33560b30dfcfc",
"cb2a36b8876e2080b78b0804f6184e3d87321270110990e2cb330f9b56c4653b",
"2ed53606b22ff3a12369c9b4f1294c8b1a09761dc88b740b2bd594ee7eddbac3",
"d035442d1ae31306e62f38c55f1eb02e600d993a1397a7ddc586d920e8ae50f2",
"531a9d7cbe0ee4ae3a2f2759f5a54cbabcdd15288c8ab0d72ae729ba2120e806",
"071500bb3543232e231a7e188ae19bc182dd72aa774bd8273c0f8267b20fa96b",
"0814704c51c1f1748f1301dc5a7c4764f5df67fd6c3242e147354379e5fb8438",
"407231b9aba51b372ce0775cf523198e860d30d934d14e959d36cf6e5b78101f",
"3355a8543e875bb1fc8b4add008e7a1f4e57b651abe4332ab1cc7c2c52d8ddaa",
"20856b1b23e78ee3293dada5f23e183c31508914647149cdf8b07496864ae182",
"b30d35ec35fdba2854e1d9724911dee7fd03e21145183375403d4c14530bce99",
"349cd7dc12227ffd9e165aeeabed0eb0d963d7c16d01ac778fa9c8fcfa0ee268",
"6b8de99ca8735d06ff29c4874412dc25b8472019c420e3b384945e8ad6252947",
"1bb5c8a2f942ddcd37430ab8887fd736ba7ea04fc4fc096e6dfdf3f55131252d",
"d7b8803c3706e9bce2da29e35f434d402997e7c0e4b7b31db0a55f6fe4cfeff0",
"a42639e7e0b9d6a88204fe261c9537cfe50f11e39c3d9cc7ea41399a2bc36883",
"eb0a16268b7c5eb1d5c84301910f721ddb3aa85c33fad5df116d034c4bbadb42",
"ee22f0908b41b7df97565d375a6c72b3c997dd1caa3b0bd64e3adeca7a32de17",
"85a997a4a258f536c0976dd752cd387d2516dd3e0ea7f01ce8e86b104451e9f2",
"03a90c12a5baf74ce25c4d2a2bf7409a2cdf644bb6d5c4203ba3ba8a74f7a96d",
"22f138016b1e625a5be31cd05c93a46ce4773bb1b7307aa6c8ea9546be07c026",
"40784b4eec1b543ec075dface546210a4044e00d8fc040ac3d76c036be0660ef",
"6827cd8e1459afa3a844bbe18fff1c47cc43c323e204a5e976f339571dd792e3",
"9aca962d8ab9cb4af25dbb808325e245b4150187d0bf7b5c4682da19bfa9750b",
"947518cc1964b3f44c79656383ab03688f797a5901f0ec91c1707306cae484d2",
"a9ddea65e2b661b9f34c29af0ffc2929cae9f10cf8d1da3f084b23747232a914",
"a2580a4dd2e08dd26f6390b6b615fbf4a251d080867f17ba95d3a3a6a392c42c",
"7ee8173c586d8779f32f4410a3993955c0dfd38cab493b59f26556d809a09374",
"0466fea703a5a4c108d921b898e35f6905974bb708eac76a1bcaa82485906445",
"2b606ae62fae14a8409ef6f72de90104b31c8daeef1348bf925e2b707fe2fadc",
"3ccf61f6ed895812eb47b62d0267ae59ebbb0878e8ce27f0ed002697ef2b57a0",
"4fc313261d217735e010fcc3fb41f8b224b8fe354f447f4ec905eee7e48a2562",
"8a877dfcbec2b169f31dbb8152b76c2581164500a9d7b16df6dc367ee9e4d5e1",
"7498da5e4069f994ba2e310707d49f25766a1e811f7c8b44e51199887ad03218",
"d4cd9c2a82d59c88cbac718ff71dd076f80ac694577e911a9ab3fca75f56bc93",
...
Get xpub
Returns balances and transactions of an xpub or output descriptor, applicable only for Bitcoin-type coins.
Method: GET
https://dgbbook.nownodes.io/api/v2/xpub/<xpub|descriptor>[?page=<page>&pageSize=<size>&from=<block height>&to=<block height>&details=<basic|tokens|tokenBalances|txids|txs>&tokens=<nonzero|used|derived>&secondary=eur]
Example response: 200
{
"page": 1,
"totalPages": 1,
"itemsOnPage": 1000,
"address": "xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB",
"balance": "0",
"totalReceived": "0",
"totalSent": "0",
"unconfirmedBalance": "0",
"unconfirmedTxs": 0,
"txs": 0
}
Get utxo
Returns array of unspent transaction outputs of address or xpub, applicable only for Bitcoin-type coins. By default, the list contains both confirmed and unconfirmed transactions. The query parameter confirmed=true disables return of unconfirmed transactions. The returned utxos are sorted by block height, newest blocks first. For xpubs or output descriptors, the response also contains address and derivation path of the utxo.
Unconfirmed utxos do not have field height, the field confirmations has value 0 and may contain field lockTime, if not zero.
Coinbase utxos have field coinbase set to true, however due to performance reasons only up to minimum coinbase confirmations limit (100). After this limit, utxos are not detected as coinbase.
Method: GET
https://dgbbook.nownodes.io/api/v2/utxo/<address|xpub|descriptor>[?confirmed=true]
Example response: 200
[
{
"txid": "09f701e8e6b9c056cedba1e5ba0e6be7a4b07930a77147942b0b29f174bc56cd",
"vout": 0,
"value": "35109346241",
"height": 19117909,
"confirmations": 24,
"coinbase": true
},
{
"txid": "0ace0b443038abc7d1f3d4e69729f74218aa6d27da2858df568643bc85b301a8",
"vout": 0,
"value": "35109346241",
"height": 19117860,
"confirmations": 73,
"coinbase": true
},
{
"txid": "658f38c02bd24fd73a9a79f8228def1060aefd57d68095f8a3d33560b30dfcfc",
"vout": 0,
"value": "35109721659",
"height": 19117851,
"confirmations": 82,
"coinbase": true
},
{
"txid": "cb2a36b8876e2080b78b0804f6184e3d87321270110990e2cb330f9b56c4653b",
"vout": 0,
"value": "35109348241",
"height": 19117846,
"confirmations": 87,
"coinbase": true
},
{
"txid": "2ed53606b22ff3a12369c9b4f1294c8b1a09761dc88b740b2bd594ee7eddbac3",
"vout": 0,
"value": "35109346241",
"height": 19117842,
"confirmations": 91,
"coinbase": true
},
{
"txid": "d035442d1ae31306e62f38c55f1eb02e600d993a1397a7ddc586d920e8ae50f2",
"vout": 0,
"value": "35109430112",
"height": 19117840,
"confirmations": 93,
"coinbase": true
},
...
Get block
Returns information about block with transactions, subject to paging.
Method: GET
https://dgbbook.nownodes.io/api/v2/block/<block height|block hash>
Example response: 200
{
"page": 1,
"totalPages": 1,
"itemsOnPage": 1000,
"hash": "547d997554e249cd4d05f4ffcc70970fe6a9a31d7ae600fb42931a4ca542d028",
"previousBlockHash": "b762692b6471e8fa55b0210e9c73b6997c70a94fea9ffe7db1877c02b499ccb1",
"nextBlockHash": "f51a52992471953e5b0bfe5962c3c3443398e5bbda84d4a0da956bdc62dad31d",
"height": 19117909,
"confirmations": 25,
"size": 332,
"time": 1713354044,
"version": 536872962,
"merkleRoot": "09f701e8e6b9c056cedba1e5ba0e6be7a4b07930a77147942b0b29f174bc56cd",
"nonce": "2250779942",
"bits": "1a080b1b",
"difficulty": "2085809.505720589",
"txCount": 1,
"txs": [
{
"txid": "09f701e8e6b9c056cedba1e5ba0e6be7a4b07930a77147942b0b29f174bc56cd",
"vin": [
{
"n": 0,
"isAddress": false,
"value": "0"
}
],
"vout": [
{
"value": "35109346241",
"n": 0,
"addresses": [
"DErXMnY9PjeDm6WHn7ZwBVnCUQDbNEEtQ4"
],
"isAddress": true
},
{
"value": "0",
"n": 1,
"addresses": [
"OP_RETURN aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf9"
],
"isAddress": false
}
],
"blockHash": "547d997554e249cd4d05f4ffcc70970fe6a9a31d7ae600fb42931a4ca542d028",
"blockHeight": 19117909,
"confirmations": 25,
"blockTime": 1713354044,
"value": "35109346241",
"valueIn": "0",
"fees": "0"
}
]
}
Send transaction
Sends new transaction to backend.
Method: GET
https://dgbbook.nownodes.io/api/v2/sendtx/<hex tx data>
Example response: 200
{
"result": "7c3be24063f268aaa1ed81b64776798f56088757641a34fb156c4f51ed2e9d25"
}
or in case of error
{
"error": {
"message": "error message"
}
}
Tickers list
Returns a list of available currency rate tickers (secondary currencies) for the specified date, along with an actual data timestamp.
Method: GET
https://dgbbook.nownodes.io/api/v2/tickers-list/?timestamp=<timestamp>
Example response: 200
{
"ts": 1692331231,
"available_currencies": [
"aed",
"ars",
"aud",
"bch",
"bdt",
"bhd",
"bits",
"bmd",
"bnb",
"brl",
"btc",
"cad",
"chf",
"clp",
"cny",
"czk",
"dkk",
"dot",
"eos",
"eth",
"eur",
"gbp",
"hkd",
"huf",
"idr",
"ils",
"inr",
"jpy",
"krw",
"kwd",
"link",
"lkr",
"ltc",
"mmk",
"mxn",
"myr",
"ngn",
"nok",
"nzd",
"php",
"pkr",
"pln",
"rub",
"sar",
"sats",
"sek",
"sgd",
"thb",
"try",
"twd",
"uah",
"usd",
"vef",
"vnd",
"xag",
"xau",
"xdr",
"xlm",
"xrp",
"yfi",
"zar"
]
}
Balance history
Returns a balance history for the specified XPUB or address.
Method: GET
https://dgbbook.nownodes.io/api/v2/balancehistory/<XPUB|address>?from=<dateFrom>&to=<dateTo>[&fiatcurrency=<currency>&groupBy=<groupBySeconds>]
Example response: 200
[
{
"time": 1678532400,
"txs": 1,
"received": "40624163084",
"sent": "0",
"sentToSelf": "0",
"rates": {
"aed": 0.03123519,
"ars": 1.71,
"aud": 0.01291917,
"bch": 0.00007787,
"bdt": 0.892148,
"bhd": 0.00320719,
"bits": 0.423881,
"bmd": 0.00850469,
"bnb": 0.00003084,
"brl": 0.04436984,
"btc": 4.23881e-7,
"cad": 0.01178708,
"chf": 0.00782483,
"clp": 6.78,
"cny": 0.058735,
"czk": 0.188882,
"dkk": 0.059491,
"dot": 0.00159034,
"eos": 0.00870357,
"eth": 0.00000595,
"eur": 0.00798825,
"gbp": 0.00706722,
"hkd": 0.066761,
"huf": 3.06,
"idr": 131.84,
"ils": 0.0304957,
"inr": 0.697091,
"jpy": 1.15,
"krw": 11.23,
"kwd": 0.00261123,
"link": 0.00141627,
"lkr": 2.75,
"ltc": 0.00012622,
"mmk": 17.77,
"mxn": 0.157281,
"myr": 0.03843696,
"ngn": 3.9,
"nok": 0.090729,
"nzd": 0.01387389,
"php": 0.469289,
"pkr": 2.38,
"pln": 0.03739641,
...
Last updated