Status
Status page returns current status of Blockbook and connected backend.
Method: GET
Copy https://dcr-blockbook.nownodes.io/api/
Example response: 200
Copy {
"blockbook" : {
"coin" : "Decred" ,
"host" : "85b8e696bc35" ,
"version" : "devel" ,
"gitCommit" : "1d8497b" ,
"buildTime" : "2022-11-01T12:31:35+00:00" ,
"syncMode" : true ,
"initialSync" : false ,
"inSync" : true ,
"bestHeight" : 861377 ,
"lastBlockTime" : "2024-04-16T13:09:55.054555167Z" ,
"inSyncMempool" : true ,
"lastMempoolTime" : "2024-04-16T13:13:42.86176381Z" ,
"mempoolSize" : 26 ,
"decimals" : 8 ,
"dbSize" : 20905861451 ,
"about" : "Blockbook - blockchain indexer for Trezor wallet https://trezor.io/. Do not use for any other purpose."
} ,
"backend" : {
"chain" : "mainnet" ,
"blocks" : 861378 ,
"headers" : 861378 ,
"bestBlockHash" : "a517a24e2d6b8afca91cf9f18396be16d357b01c11a950e9e837e2230cb46f06" ,
"difficulty" : "437292230" ,
"sizeOnDisk" : 861378 ,
"version" : "1080100" ,
"protocolVersion" : "9"
}
}
Get block hash
Method: GET
Copy https://dcr-blockbook.nownodes.io/api/v2/block-index/<block height>
Example response: 200
Copy {
"blockHash" : "a3ec48137c45c67c19d1470383f12875eaae746be9c71d4ec448bf23b23df422"
}
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
Copy https://dcr-blockbook.nownodes.io/api/v2/tx/<txid>
Example response: 200
Copy {
"txid" : "a0411c8b2291cdf8325c98905f1de226e0e754942bc75d8593811034ca31e8f9" ,
"version" : 3 ,
"vin" : [
{
"sequence" : 4294967295 ,
"n" : 0 ,
"isAddress" : true ,
"coinbase" : "00002f646372642f"
}
] ,
"vout" : [
{
"value" : "0" ,
"n" : 0 ,
"hex" : "6a0ca8240d009389f7fcddef7d1d" ,
"addresses" : [
"OP_RETURN a8240d009389f7fcddef7d1d"
] ,
"isAddress" : true
} ,
{
"value" : "11027658" ,
"n" : 1 ,
"hex" : "76a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac" ,
"addresses" : [
"DsmCWHCbq2qnWLxefUraZ1yV85GF2spqSTh"
] ,
"isAddress" : true
}
] ,
"blockHash" : "db71e777cc456d7a0f3ff9cdedad820aa36fe72fd774f63cb1d3d43019d1f2b3" ,
"blockHeight" : 861352 ,
"confirmations" : 27 ,
"blockTime" : 1713265319 ,
"value" : "11027658" ,
"valueIn" : "0" ,
"fees" : "0" ,
"hex" : "03000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff02000000000000000000000e6a0ca8240d009389f7fcddef7d1dca44a8000000000000001976a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac000000000000000001ab3376000000000000000000ffffffff0800002f646372642f"
}
Get transaction specific
Returns transaction data in the exact format as returned by backend, including all coin specific fields:
Method: GET
Copy https://dcr-blockbook.nownodes.io/api/v2/tx-specific/<txid>
Example response: 200
Copy {
"hex" : "03000000010000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff02000000000000000000000e6a0ca8240d009389f7fcddef7d1dca44a8000000000000001976a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac000000000000000001ab3376000000000000000000ffffffff0800002f646372642f" ,
"txid" : "a0411c8b2291cdf8325c98905f1de226e0e754942bc75d8593811034ca31e8f9" ,
"version" : 3 ,
"locktime" : 0 ,
"vin" : [
{
"coinbase" : "00002f646372642f" ,
"stakebase" : "" ,
"txid" : "" ,
"vout" : 0 ,
"tree" : 0 ,
"sequence" : 4294967295 ,
"amountin" : 0.07746475 ,
"blockheight" : 0 ,
"blockindex" : 4294967295 ,
"scriptsig" : null
}
] ,
"vout" : [
{
"value" : 0 ,
"n" : 0 ,
"version" : 0 ,
"scriptPubKey" : {
"asm" : "OP_RETURN a8240d009389f7fcddef7d1d" ,
"hex" : "6a0ca8240d009389f7fcddef7d1d" ,
"type" : "nulldata"
}
} ,
{
"value" : 0.11027658 ,
"n" : 1 ,
"version" : 0 ,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 ddf4f6b49d6135ce52cdacd12f7883f7c420c50e OP_EQUALVERIFY OP_CHECKSIG" ,
"hex" : "76a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac" ,
"reqSigs" : 1 ,
"type" : "pubkeyhash" ,
"addresses" : [
"DsmCWHCbq2qnWLxefUraZ1yV85GF2spqSTh"
]
}
}
] ,
"expiry" : 0 ,
"confirmations" : 27 ,
"time" : 1713265319 ,
"blocktime" : 1713265319 ,
"blockheight" : 861352 ,
"blockhash" : "db71e777cc456d7a0f3ff9cdedad820aa36fe72fd774f63cb1d3d43019d1f2b3"
}
Get address
Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.
Method: GET
Copy https://dcr-blockbook.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
Copy {
"page" : 1 ,
"totalPages" : 10 ,
"itemsOnPage" : 1000 ,
"address" : "DsmCWHCbq2qnWLxefUraZ1yV85GF2spqSTh" ,
"balance" : "468401458" ,
"totalReceived" : "65649241396" ,
"totalSent" : "65180839938" ,
"unconfirmedBalance" : "0" ,
"unconfirmedTxs" : 0 ,
"txs" : 9632 ,
"txids" : [
"07af777d0bdad94c84a1d53affba9048028f33cc1058ecbaef3087eae91df829" ,
"a6acf3a5c9b378cfc71d0fcecfb05b3a2aa0aff289990e17db8d9a1a02a1171e" ,
"9546dc3c5b3779403c467cddcc4351b1e714c7fed93bbca02ab22cba10876565" ,
"44607ea40d1cb815e27caa6ffcb46c67059fb3c08241b5ead1cf194784df4d65" ,
"22dc5403781ca3bba3c8b167fde07e3748e301cefb410115f3880bda03371dd1" ,
"12411084702ffb4318337b0691adb8bbd0857d0088c83410d1db6945db52c04c" ,
"e1aa1446e6e0cfa81308480339796143e6e4e178f850d3bc1ec092f037b8655c" ,
"60733dfad48950b4e77a85c625c1b23c2cd5dc35b7c3e705e638dd0a46c90faa" ,
"a0411c8b2291cdf8325c98905f1de226e0e754942bc75d8593811034ca31e8f9" ,
"dfe842a2dad41b86e5e45d4267a5bdf1a41f0201b07a5336a53cdcb69d1fd533" ,
"49585326554ab88b02e6a2e3fec2cde5ba853b073d4de2c44282bc8edb2c4507" ,
"813ab55bc230b5c0d202b48f035831d0947eb13305dfefeed69678edcc91e9cc" ,
"f83fce04c1c9555a0175fd05b55080d882e7a06974d71f8024866c675e3e2596" ,
"7a9702ed0470ae87e2f7f3f111e1ea57b4ded1072285534a31a819db8fd3406f" ,
"e4901e80d2fc06c72a5b8a5f240c58706c58d9e92a0ae3fd2366146a2dae5dd3" ,
"74cc94a78f6de166b150a66bd94564befffb46a84cc1c7aa2423f5d693746bbc" ,
"e1b2bd0296256e05c21f99e5f9f95915c61bb1032fd7648a795ebcb364eb5416" ,
"4c2c64daebf9ec622dfe536f7be0e0f43a72126b6166c17cd2f72640a9fde643" ,
"7e07838b7f24c0749d25cac8d0171d372bc1ae7db4bc366e1273407e431ece1c" ,
"fb0b4ceef101529b30ce99a673f3eaa63e36fd77a74091e8384d5b7e86bed4fb" ,
"55353a211f3bcaa509d185e13d6d70efaec5af26ac9d350b1312dcbc41a14b4d" ,
"8b64ef1abb171ffaaa729dece62178566cd0f9744813dd01c988190c08604833" ,
"8eb84d1ed27570fd422b9fc36c6b66ef85fb03940a3a3248e31b2f7a4ed6870b" ,
"2bbff77f12e4f09c1c2deeb2fb5378234714a1bd2ff7e2aa6283e4919d370ebb" ,
"35e3a43ccb3379ec7f48942283e74e834cc2cf9034234ee6820665f601635776" ,
"240911306e2d10daf2aaefd1c996115f65402c57032ccd7b4881131fbbcc5355" ,
"de18c2982e666d975b11b06434dad986d514153549ef5154a09a719d11836b06" ,
"b5ad0fac97ee221bf470144ad8e7e365cfdefba8dd924097ae6c449054796475" ,
"25b807ddf10a261bd1e9bcd469bd9883beabcb3282f958124332c10aa6049288" ,
"dadd6da1170e78e898e619904ef1177fca7c476dc559c67f00d97a5f7ad57850" ,
"13d9d278c78ba6b8bf1f9a963794753fa30b35e91676fd49b96e3caac43b7e2d" ,
"7940168938c22127b4608a72676dedceefda818879a620352fc8b3aa0da8dd3c" ,
"692f8ca003223a7157d08362c9168910828c68e571ff252bfc624fef71153af8" ,
"6fa61c71a853e685a24a3622a305a906f58b719b5795d32b2327636bf2b5fae5" ,
"320506efd52985b4c5e343077ef0e5b12b1a7b40655c4657957c9502fb0b7c86" ,
"98c0a40458c4e9e0bcb3aac93a33a0791ded710f6bf03573d6dc50963ec00911" ,
"cba89ede100b858889ff78e787d6d9780534ea948ea8fb166329c6085640e6e8" ,
"3769633bb867a9262abdaf77c5c4787852693167de9e2175d556ff6cdcf4f62b" ,
...
Get xpub
Returns balances and transactions of an xpub or output descriptor, applicable only for Bitcoin-type coins.
Method: GET
Copy https://dcr-blockbook.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
Copy {
"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
Copy https://dcr-blockbook.nownodes.io/api/v2/utxo/<address|xpub|descriptor>[?confirmed=true]
Example response: 200
Copy [
{
"txid" : "07af777d0bdad94c84a1d53affba9048028f33cc1058ecbaef3087eae91df829" ,
"vout" : 1 ,
"value" : "7749005" ,
"height" : 861375 ,
"confirmations" : 3 ,
"coinbase" : true ,
"scriptPubKey" : "76a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac"
} ,
{
"txid" : "a6acf3a5c9b378cfc71d0fcecfb05b3a2aa0aff289990e17db8d9a1a02a1171e" ,
"vout" : 1 ,
"value" : "7762870" ,
"height" : 861374 ,
"confirmations" : 4 ,
"coinbase" : true ,
"scriptPubKey" : "76a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac"
} ,
{
"txid" : "9546dc3c5b3779403c467cddcc4351b1e714c7fed93bbca02ab22cba10876565" ,
"vout" : 1 ,
"value" : "7762870" ,
"height" : 861372 ,
"confirmations" : 6 ,
"coinbase" : true ,
"scriptPubKey" : "76a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac"
} ,
{
"txid" : "44607ea40d1cb815e27caa6ffcb46c67059fb3c08241b5ead1cf194784df4d65" ,
"vout" : 1 ,
"value" : "9317378" ,
"height" : 861369 ,
"confirmations" : 9 ,
"coinbase" : true ,
"scriptPubKey" : "76a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac"
} ,
{
"txid" : "22dc5403781ca3bba3c8b167fde07e3748e301cefb410115f3880bda03371dd1" ,
"vout" : 1 ,
"value" : "12353791" ,
"height" : 861363 ,
"confirmations" : 15 ,
"coinbase" : true ,
"scriptPubKey" : "76a914ddf4f6b49d6135ce52cdacd12f7883f7c420c50e88ac"
} ,
...
Get block
Returns information about block with transactions, subject to paging.
Method: GET
Copy https://dcr-blockbook.nownodes.io/api/v2/block/<block height|block hash>
Example response: 200
Copy {
"page" : 1 ,
"totalPages" : 1 ,
"itemsOnPage" : 1000 ,
"hash" : "6cd012738478fee7496ed7458e5ee75b91915bff8cf13439dbd79408c6a08835" ,
"previousBlockHash" : "650197267103c6b3a29bbac320ecd865905d86684a9a8cda6ad880be6ccd50e1" ,
"nextBlockHash" : "99fd1e9102ef0a71044cc21f0a16e41115a270a698b0e2c17b7142914389d052" ,
"height" : 861375 ,
"confirmations" : 4 ,
"size" : 2407 ,
"time" : 1713271508 ,
"version" : 10 ,
"merkleRoot" : "c22ef34d0a63fe00756b216bd7b2368cd451ec34a7c2c15fece10b32a6d4b14a" ,
"nonce" : "2567218366" ,
"bits" : "1a10ab6d" ,
"difficulty" : "1.00643853699125e+06" ,
"txCount" : 2 ,
"txs" : [
{
"txid" : "07af777d0bdad94c84a1d53affba9048028f33cc1058ecbaef3087eae91df829" ,
"vin" : [
{
"n" : 0 ,
"isAddress" : true ,
"value" : "0"
}
] ,
"vout" : [
{
"value" : "0" ,
"n" : 0 ,
"addresses" : [
"OP_RETURN bf240d00a4b027514f6f6c63"
] ,
"isAddress" : true
} ,
{
"value" : "7749005" ,
"n" : 1 ,
"addresses" : [
"DsmCWHCbq2qnWLxefUraZ1yV85GF2spqSTh"
] ,
"isAddress" : true
}
] ,
"blockHash" : "6cd012738478fee7496ed7458e5ee75b91915bff8cf13439dbd79408c6a08835" ,
"blockHeight" : 861375 ,
"confirmations" : 3 ,
"blockTime" : 1713271508 ,
"value" : "7749005" ,
"valueIn" : "0" ,
"fees" : "0"
} ,
...
Send transaction
Sends new transaction to backend.
Method: GET
Copy https://dcr-blockbook.nownodes.io/api/v2/sendtx/<hex tx data>
Example response: 200
Copy {
"result" : "7c3be24063f268aaa1ed81b64776798f56088757641a34fb156c4f51ed2e9d25"
}
or in case of error
Copy {
"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
Copy https://dcr-blockbook.io/api/v2/tickers-list/?timestamp=<timestamp>
Example response: 200
Copy {
"error" : "No tickers found for date 2023-11-23 09:46:40 +0000 UTC."
}
Balance history
Returns a balance history for the specified XPUB or address.
Method: GET
Copy https://dcr-blockbook.nownodes.io/api/v2/balancehistory/<XPUB|address>?from=<dateFrom>&to=<dateTo>[&fiatcurrency=<currency>&groupBy=<groupBySeconds>]
Example response: 200
Copy [
{
"time" : 1702627200 ,
"txs" : 1 ,
"received" : "74507" ,
"sent" : "0" ,
"sentToSelf" : "0"
} ,
{
"time" : 1702630800 ,
"txs" : 4 ,
"received" : "475486" ,
"sent" : "229450" ,
"sentToSelf" : "0"
} ,
{
"time" : 1702634400 ,
"txs" : 7 ,
"received" : "1137609" ,
"sent" : "0" ,
"sentToSelf" : "0"
} ,
{
"time" : 1702638000 ,
"txs" : 7 ,
"received" : "825407" ,
"sent" : "0" ,
"sentToSelf" : "0"
} ,
{
"time" : 1702641600 ,
"txs" : 6 ,
"received" : "597307" ,
"sent" : "2283559" ,
"sentToSelf" : "0"
} ,
{
"time" : 1702645200 ,
"txs" : 3 ,
"received" : "335749" ,
"sent" : "0" ,
"sentToSelf" : "0"
} ,
{
"time" : 1702648800 ,
"txs" : 6 ,
"received" : "748381" ,
"sent" : "0" ,
"sentToSelf" : "0"
} ,
...