DIVI Blockbook

Status

Status page returns current status of Blockbook and connected backend.

Method: GET

https://divibook.nownodes.io/api/

Example response: 200

{
    "blockbook": {
        "coin": "Divi",
        "host": "37994b7b0022",
        "version": "devel",
        "gitCommit": "1322a919",
        "buildTime": "2023-06-08T12:23:48+00:00",
        "syncMode": true,
        "initialSync": false,
        "inSync": true,
        "bestHeight": 2928875,
        "lastBlockTime": "2024-04-18T09:12:37.626329961Z",
        "inSyncMempool": true,
        "lastMempoolTime": "2024-04-18T09:14:37.440535224Z",
        "mempoolSize": 0,
        "decimals": 8,
        "dbSize": 4057096458,
        "about": "Blockbook - blockchain indexer for Trezor Suite https://trezor.io/trezor-suite. Do not use for any other purpose."
    },
    "backend": {
        "chain": "main",
        "blocks": 2928875,
        "headers": 2928875,
        "bestBlockHash": "1eba88086fd7f4025d929625ccec8e4c767a9bdc28082d428d16aefc87aea69b",
        "difficulty": "61058.29828976",
        "version": "3.0.0.0",
        "subversion": "DIVI Core: 3.0.0.0",
        "protocolVersion": "70915"
    }
}

Get block hash

Method: GET

https://divibook.nownodes.io/api/v2/block-index/<block height>

Example response: 200

{
    "blockHash": "1eba88086fd7f4025d929625ccec8e4c767a9bdc28082d428d16aefc87aea69b"
}

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://divibook.nownodes.io/api/v2/tx/<txid>

Example response: 200

{
    "txid": "eed9da23ff221f1f89e36e522a1d5f007b4f5991d16c1572b47bc548bbf56880",
    "version": 1,
    "vin": [
        {
            "txid": "1851c3dc680225d0e72d833c00a1f94e43bae397d81785152bf7e0409f3d9784",
            "vout": 1,
            "sequence": 4294967295,
            "n": 0,
            "isAddress": false,
            "value": "1418750000000",
            "hex": "483045022100fe41534f0b39ccfa408ff5cc0925f70ff67a76a930fbd60ba0a1e080a50da3bc02206d748ace2a576d67832a9b28f6af25856a87bdffae8973252784ce5b222518c9012102f5fde017e62c37359dcda5a39c8e4621f83c90b84863a3fb30bd1e7427bf6d9a00"
        }
    ],
    "vout": [
        {
            "value": "0",
            "n": 0,
            "addresses": [],
            "isAddress": false
        },
        {
            "value": "1485150000000",
            "n": 1,
            "hex": "631484e0f7e7ed5226d70ec0c68e9aab3081b9ce39b567b914bede6bc3b812616ffad24b7bda840a7af69b22fa6878a988ac",
            "addresses": [],
            "isAddress": false
        }
    ],
    "blockHash": "ef9ba9e3add7e7518b7149dfae940a7ba772cca395ed7e7186e3d14d8f0d9442",
    "blockHeight": 2928830,
    "confirmations": 47,
    "blockTime": 1713429087,
    "value": "1485150000000",
    "valueIn": "1418750000000",
    "fees": "0",
    "hex": "010000000184973d9f40e0f72b158517d897e3ba434ef9a1003c832de7d0250268dcc35118010000006c483045022100fe41534f0b39ccfa408ff5cc0925f70ff67a76a930fbd60ba0a1e080a50da3bc02206d748ace2a576d67832a9b28f6af25856a87bdffae8973252784ce5b222518c9012102f5fde017e62c37359dcda5a39c8e4621f83c90b84863a3fb30bd1e7427bf6d9a00ffffffff020000000000000000008093d6c95901000032631484e0f7e7ed5226d70ec0c68e9aab3081b9ce39b567b914bede6bc3b812616ffad24b7bda840a7af69b22fa6878a988ac00000000"
}

Get transaction specific

Returns transaction data in the exact format as returned by backend, including all coin specific fields:

Method: GET

https://divibook.nownodes.io/api/v2/tx-specific/<txid>

Example response: 200

{
    "hex": "010000000184973d9f40e0f72b158517d897e3ba434ef9a1003c832de7d0250268dcc35118010000006c483045022100fe41534f0b39ccfa408ff5cc0925f70ff67a76a930fbd60ba0a1e080a50da3bc02206d748ace2a576d67832a9b28f6af25856a87bdffae8973252784ce5b222518c9012102f5fde017e62c37359dcda5a39c8e4621f83c90b84863a3fb30bd1e7427bf6d9a00ffffffff020000000000000000008093d6c95901000032631484e0f7e7ed5226d70ec0c68e9aab3081b9ce39b567b914bede6bc3b812616ffad24b7bda840a7af69b22fa6878a988ac00000000",
    "txid": "eed9da23ff221f1f89e36e522a1d5f007b4f5991d16c1572b47bc548bbf56880",
    "baretxid": "62b7b009d95e83c4497817e7930da272e0aa6c4ca99a10a11b866fe675904c89",
    "version": 1,
    "locktime": 0,
    "vin": [
        {
            "txid": "1851c3dc680225d0e72d833c00a1f94e43bae397d81785152bf7e0409f3d9784",
            "vout": 1,
            "scriptSig": {
                "asm": "3045022100fe41534f0b39ccfa408ff5cc0925f70ff67a76a930fbd60ba0a1e080a50da3bc02206d748ace2a576d67832a9b28f6af25856a87bdffae8973252784ce5b222518c901 02f5fde017e62c37359dcda5a39c8e4621f83c90b84863a3fb30bd1e7427bf6d9a 0",
                "hex": "483045022100fe41534f0b39ccfa408ff5cc0925f70ff67a76a930fbd60ba0a1e080a50da3bc02206d748ace2a576d67832a9b28f6af25856a87bdffae8973252784ce5b222518c9012102f5fde017e62c37359dcda5a39c8e4621f83c90b84863a3fb30bd1e7427bf6d9a00"
            },
            "sequence": 4294967295
        }
    ],
    "vout": [
        {
            "value": 0.00000000,
            "valueSat": 0,
            "n": 0,
            "scriptPubKey": {
                "asm": "",
                "hex": "",
                "type": "nonstandard"
            }
        },
        {
            "value": 14851.50000000,
            "valueSat": 1485150000000,
            "n": 1,
            "scriptPubKey": {
                "asm": "OP_IF 84e0f7e7ed5226d70ec0c68e9aab3081b9ce39b5 OP_ELSE OP_REQUIRE_COINSTAKE bede6bc3b812616ffad24b7bda840a7af69b22fa OP_ENDIF OP_OVER OP_HASH160 OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "631484e0f7e7ed5226d70ec0c68e9aab3081b9ce39b567b914bede6bc3b812616ffad24b7bda840a7af69b22fa6878a988ac",
                "reqSigs": 1,
                "type": "vault",
                "addresses": [
                    "DHFhEf5TaXh5TpaVyfFBhoXY7jMScHMVme",
                    "DNYKNnVNm4JodC6Qkj7QbSCHjybBNYDeNt"
                ]
            }
        }
    ],
    "blockhash": "ef9ba9e3add7e7518b7149dfae940a7ba772cca395ed7e7186e3d14d8f0d9442",
    "height": 2928830,
    "confirmations": 50,
    "time": 1713429087,
    "blocktime": 1713429087,
    "size": 227
}

Get address

Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.

Method: GET

https://divibook.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": 1,
    "itemsOnPage": 1000,
    "address": "DNYKNnVNm4JodC6Qkj7QbSCHjybBNYDeNt",
    "balance": "0",
    "totalReceived": "0",
    "totalSent": "0",
    "unconfirmedBalance": "0",
    "unconfirmedTxs": 0,
    "txs": 0
}

Get xpub

Returns balances and transactions of an xpub or output descriptor, applicable only for Bitcoin-type coins.

Method: GET

https://divibook.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://divibook.nownodes.io/api/v2/utxo/<address|xpub|descriptor>[?confirmed=true]

Example response: 200

[]

Get block

Returns information about block with transactions, subject to paging.

Method: GET

https://divibook.nownodes.io/api/v2/block/<block height|block hash>

Example response: 200

{
    "page": 1,
    "totalPages": 1,
    "itemsOnPage": 1000,
    "hash": "ef9ba9e3add7e7518b7149dfae940a7ba772cca395ed7e7186e3d14d8f0d9442",
    "previousBlockHash": "5ccc7fc97473010304199c7701baedf2359fb7ffa6a8103bf4894a3de04c0b50",
    "nextBlockHash": "777dcc56ea7c03adfb3f447d1b006cb70a2c8bf028c60dc8575aa79cc9ff19bd",
    "height": 2928830,
    "confirmations": 56,
    "size": 472,
    "time": 1713429087,
    "version": 4,
    "merkleRoot": "72dc39cb2ec3c9696000d1acd1c32ad875ea7424e9871e6b1b70a3779ee44b66",
    "nonce": "0",
    "bits": "1b0135b2",
    "difficulty": "54172.46991751",
    "txCount": 2,
    "txs": [
        {
            "txid": "d44e9e2582f87d83b3da5ac3092391d930b9c4273ea477b746884aac03c68d9b",
            "vin": [
                {
                    "n": 0,
                    "isAddress": false,
                    "value": "0"
                }
            ],
            "vout": [
                {
                    "value": "0",
                    "n": 0,
                    "addresses": [],
                    "isAddress": false
                }
            ],
            "blockHash": "ef9ba9e3add7e7518b7149dfae940a7ba772cca395ed7e7186e3d14d8f0d9442",
            "blockHeight": 2928830,
            "confirmations": 56,
            "blockTime": 1713429087,
            "value": "0",
            "valueIn": "0",
            "fees": "0"
        },
...

Send transaction

Sends new transaction to backend.

Method: GET

https://divibook.nownodes.io/api/v2/sendtx/<hex tx data>

Example response: 200

{
  "result": "eed9da23ff221f1f89e36e522a1d5f007b4f5991d16c1572b47bc548bbf56880"
}

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://divibook.nownodes.io/api/v2/tickers-list/?timestamp=<timestamp>

Example response: 200

{
    "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

https://divibook.nownodes.io/api/v2/balancehistory/<XPUB|address>?from=<dateFrom>&to=<dateTo>[&fiatcurrency=<currency>&groupBy=<groupBySeconds>]

Example response: 200

[]

Last updated