FIRO Blockbook
Status
Status page returns current status of Blockbook and connected backend.
Method: GET
https://firobook.nownodes.io/api/
Example response: 200
{
"blockbook": {
"coin": "Firo",
"host": "2a32e4045630",
"version": "devel",
"gitCommit": "1322a919",
"buildTime": "2023-06-08T12:23:48+00:00",
"syncMode": true,
"initialSync": false,
"inSync": true,
"bestHeight": 877810,
"lastBlockTime": "2024-04-28T16:11:55.065464552Z",
"inSyncMempool": true,
"lastMempoolTime": "2024-04-28T16:12:37.255031768Z",
"mempoolSize": 2,
"decimals": 8,
"dbSize": 17241300379,
"about": "Blockbook - blockchain indexer for Trezor Suite https://trezor.io/trezor-suite. Do not use for any other purpose."
},
"backend": {
"chain": "main",
"blocks": 877810,
"headers": 877810,
"bestBlockHash": "f2da407314508c3387b846f88fcdb6cef90452185a57a40ab66d87fe29a7bd3f",
"difficulty": "3621.153551383194",
"version": "141301",
"subversion": "/Satoshi:0.14.13.1/",
"protocolVersion": "90031"
}
}
Get block hash
Method: GET
https://firobook.nownodes.io/api/v2/block-index/<block height>
Example response: 200
{
"blockHash": "f2da407314508c3387b846f88fcdb6cef90452185a57a40ab66d87fe29a7bd3f"
}
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://firobook.nownodes.io/api/v2/tx/<txid>
Example response: 200
{
"txid": "94cfa8405b79bae17b196bddb8a4feb79d3b88c996270d5267f4deb998085e4e",
"version": 3,
"vin": [
{
"sequence": 4294967295,
"n": 0,
"isAddress": false,
"coinbase": "03f2640d0444752e660800000000000191ab1b324d696e6572732068747470733a2f2f326d696e6572732e636f6d"
}
],
"vout": [
{
"value": "156254022",
"n": 0,
"hex": "76a91437a6e757a63929ce02f38251ce788defae965b9488ac",
"addresses": [
"a5nir8JaBXh8RHNM3sjGf8RTQn4Hokas4p"
],
"isAddress": true
},
{
"value": "312500000",
"n": 1,
"hex": "76a914e84f5ec9000c7f91c06784ab3d2b4bed1b1c050488ac",
"addresses": [
"aMtob9kFzfE7s5Kex9QA2nixs7aYhJhfs1"
],
"isAddress": true
},
{
"value": "93750000",
"n": 2,
"hex": "76a914daffe12663a94d0bce8afa20458fb2df4745d64a88ac",
"addresses": [
"aLgRaYSFk6iVw2FqY1oei8Tdn2aTsGPVmP"
],
"isAddress": true
},
{
"value": "62500000",
"n": 3,
"hex": "76a9149e6778ee1011af76f6f800873032ea8e15ada4ca88ac",
"addresses": [
"aFA2TbqG9cnhhzX5Yny2pBJRK5EaEqLCH7"
],
"isAddress": true
}
],
"blockHash": "f2da407314508c3387b846f88fcdb6cef90452185a57a40ab66d87fe29a7bd3f",
"blockHeight": 877810,
"confirmations": 3,
"blockTime": 1714320708,
"size": 304,
"vsize": 304,
"value": "625004022",
"valueIn": "0",
"fees": "0",
"hex": "03000500010000000000000000000000000000000000000000000000000000000000000000ffffffff2e03f2640d0444752e660800000000000191ab1b324d696e6572732068747470733a2f2f326d696e6572732e636f6dffffffff04463f5009000000001976a91437a6e757a63929ce02f38251ce788defae965b9488ac205fa012000000001976a914e84f5ec9000c7f91c06784ab3d2b4bed1b1c050488acf0829605000000001976a914daffe12663a94d0bce8afa20458fb2df4745d64a88aca0acb903000000001976a9149e6778ee1011af76f6f800873032ea8e15ada4ca88ac00000000460200f2640d0000f45f218b5cc1d1f97510d2f38fef448c2870993a5698d199310beb0b8e7505376e8ee36a85c951c87c131786214df8feb46e3816cbb4c10222592db5833e96"
}
Get transaction specific
Returns transaction data in the exact format as returned by backend, including all coin specific fields:
Method: GET
https://firobook.nownodes.io/api/v2/tx-specific/<txid>
Example response: 200
{
"hex": "03000500010000000000000000000000000000000000000000000000000000000000000000ffffffff2e03f2640d0444752e660800000000000191ab1b324d696e6572732068747470733a2f2f326d696e6572732e636f6dffffffff04463f5009000000001976a91437a6e757a63929ce02f38251ce788defae965b9488ac205fa012000000001976a914e84f5ec9000c7f91c06784ab3d2b4bed1b1c050488acf0829605000000001976a914daffe12663a94d0bce8afa20458fb2df4745d64a88aca0acb903000000001976a9149e6778ee1011af76f6f800873032ea8e15ada4ca88ac00000000460200f2640d0000f45f218b5cc1d1f97510d2f38fef448c2870993a5698d199310beb0b8e7505376e8ee36a85c951c87c131786214df8feb46e3816cbb4c10222592db5833e96",
"txid": "94cfa8405b79bae17b196bddb8a4feb79d3b88c996270d5267f4deb998085e4e",
"hash": "94cfa8405b79bae17b196bddb8a4feb79d3b88c996270d5267f4deb998085e4e",
"size": 304,
"vsize": 304,
"version": 3,
"locktime": 0,
"type": 5,
"vin": [
{
"coinbase": "03f2640d0444752e660800000000000191ab1b324d696e6572732068747470733a2f2f326d696e6572732e636f6d",
"sequence": 4294967295
}
],
"vout": [
{
"value": 1.56254022,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 37a6e757a63929ce02f38251ce788defae965b94 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91437a6e757a63929ce02f38251ce788defae965b9488ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"a5nir8JaBXh8RHNM3sjGf8RTQn4Hokas4p"
]
}
},
{
"value": 3.12500000,
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 e84f5ec9000c7f91c06784ab3d2b4bed1b1c0504 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914e84f5ec9000c7f91c06784ab3d2b4bed1b1c050488ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"aMtob9kFzfE7s5Kex9QA2nixs7aYhJhfs1"
]
}
},
{
"value": 0.93750000,
"n": 2,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 daffe12663a94d0bce8afa20458fb2df4745d64a OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914daffe12663a94d0bce8afa20458fb2df4745d64a88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"aLgRaYSFk6iVw2FqY1oei8Tdn2aTsGPVmP"
]
}
},
...
Get address
Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.
Method: GET
https://firobook.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": 393,
"itemsOnPage": 1000,
"address": "aLgRaYSFk6iVw2FqY1oei8Tdn2aTsGPVmP",
"balance": "9937500000",
"totalReceived": "59607982577190",
"totalSent": "59598045077190",
"unconfirmedBalance": "0",
"unconfirmedTxs": 0,
"txs": 392653,
"txids": [
"66b2941ab87fdd60a70e4577244297810e1bca8830eea89128dbd45957f7654c",
"29256d0104f2f2227d602b80cddec6792e478426a7b13ba35a2898144e64bcac",
"94cfa8405b79bae17b196bddb8a4feb79d3b88c996270d5267f4deb998085e4e",
"9c7ea573a888e56486e95c21bc6dab113f7cf6622ec0592afed5e99732b639eb",
"4cae461e44f472795d368c36bea7ac27be985e6c79f7a2d5f770f0be56bbd1d4",
"67481e51a623fc270989538b85254a3caf9c5cf2be17d07b355042b3c5c0393b",
"017cc7d3aa6c97df3679e82a892a10eb9ee97121319b5c2a9fc12608e8a7661d",
"bcf371be289ad5b39be5dd460554feb60998edb566e602f93651c61be97bd9e9",
"ef0b435f395fe5659821ba4d8859fb3ae8567648a8416a10e26d56283cb704c4",
"c1e4251f1edda5a7bb15e6bac9c35a01e4bf67efa528035e88b6c8325fc46008",
"f1a2edef34ee5544bd6bdaf509e4bf7013c4b7107182c5a139981e0dc11d0be3",
"0fe8380037a1617ae2461383f154f1946dee52cec8b95e61bfd2085ecc0c6384",
"f6eb15ba5ec587512cc0ffb94193074b183652e6db33be9fa30a6ce89ae12f5e",
"bd04ff3f855bff4a08d55e04eab99db8e6e3d06a862d9adb0c74ba35e40586df",
"00c2ad35d4fd23459775d4e43d23189d500f0f61e15bd6923a8af49e28d7cdac",
"96c7c08fe3f7552504341a01fc3309d7666a779134c6c59e1c6267658c4d0b26",
"7e4cf6308c7eb3522d3511b93009a5d2eb046326cf9291299b190eb0d168675b",
"1e295f5f34466726e606764c8b68dc486a4d1cab0a38c66236fc8bb5218f30c1",
"632b8ef13a4f520bc4b85364e11e2a18519c890337c5a0f67e796733ca966bc6",
"305042985950c7043e80fc13a2384f844e9ed239c96d52dff6d1b00639348f94",
"b33de8ec312eafd67ced81ec0787472c42e4dbe63eebae40dfb764c87ef3a7b7",
"0d0c45f31c8cc3772e3598197d2ab1e5dee45cc933ef54179d0b662710c0586a",
"32795f1828c54716f3ca722b4c285894327ca6b322c1e1c942e0a96f1976c4c9",
"387650ab76f997941edb6d90b4849836637004b58eff9a4856208e37b1d94fdc",
"1074a7c09e77afa050d7818dedf1acb039b97ef77bb424571b32ce5ebcbb2019",
"e0c3081482133627bea3ede216552e3b73eaf31e3f027e24a73b0162b383aa7b",
"7a05df78b5a3594f4456af31516d53b29e0538dc7e52860672ff454787449298",
"cf157829448b5c7d667f99483df8bc93c0e531bf27589b78cbaf13c8d7e39632",
"d946c3c4807d4b0dff67933a4fcf57b68d9a4017bb1aa15c744729b39ac90169",
"a7fb6475360968834cf5d5c81f9e11cf3ee7079ff3bee7bd5785166663f16d5e",
"b81e3c40476411f8f324afe73916435f78dbe47dd33528928276a60645d2226d",
"6431bd16cc49c0ea0c54fa21a57065df7f7569d539d43456b841ae584ed1aaa8",
"7c66f01ef6863923fd79cf36d9e1963e741a44544ff001c022fc3f5ea9642971",
"14ad3fdaaefbeaa3c2330217dbdc089610eaf0439ff21ea9e244f49e8a9c7a71",
...
Get xpub
Returns balances and transactions of an xpub or output descriptor, applicable only for Bitcoin-type coins.
Method: GET
https://firobook.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://firobook.nownodes.io/api/v2/utxo/<address|xpub|descriptor>[?confirmed=true]
Example response: 200
[
{
"txid": "e5e5773a61a6cdf6031d2f7c1ca3684bb2cfff97548a023c4333f218c63c0e93",
"vout": 2,
"value": "93750000",
"height": 877814,
"confirmations": 1,
"coinbase": true
},
{
"txid": "ce11ff77a1c9e80ac32c90074fd56e54fc074a91587112f845d0afbbbc0a9591",
"vout": 2,
"value": "93750000",
"height": 877813,
"confirmations": 2,
"coinbase": true
},
{
"txid": "66b2941ab87fdd60a70e4577244297810e1bca8830eea89128dbd45957f7654c",
"vout": 2,
"value": "93750000",
"height": 877812,
"confirmations": 3,
"coinbase": true
},
{
"txid": "29256d0104f2f2227d602b80cddec6792e478426a7b13ba35a2898144e64bcac",
"vout": 2,
"value": "93750000",
"height": 877811,
"confirmations": 4,
"coinbase": true
},
{
"txid": "94cfa8405b79bae17b196bddb8a4feb79d3b88c996270d5267f4deb998085e4e",
"vout": 2,
"value": "93750000",
"height": 877810,
"confirmations": 5,
"coinbase": true
},
{
"txid": "9c7ea573a888e56486e95c21bc6dab113f7cf6622ec0592afed5e99732b639eb",
"vout": 2,
"value": "93750000",
"height": 877809,
"confirmations": 6,
"coinbase": true
},
...
Get block
Returns information about block with transactions, subject to paging.
Method: GET
https://firobook.nownodes.io/api/v2/block/<block height|block hash>
Example response: 200
{
"page": 1,
"totalPages": 1,
"itemsOnPage": 1000,
"hash": "f2da407314508c3387b846f88fcdb6cef90452185a57a40ab66d87fe29a7bd3f",
"previousBlockHash": "9fdcb777e3c36ccf35982466b6222f663f3ceebf8b76994ecb392b857cc4f697",
"nextBlockHash": "c01f18ea832416b790256dde0991fea9d523a1f1ba00a3d43cce0d23f60e950f",
"height": 877810,
"confirmations": 3,
"size": 3365,
"time": 1714320708,
"version": 536875008,
"merkleRoot": "ae169db1acda6035614a55cea9e7444079fc866dd6486e79585399c43630fe8c",
"nonce": "0",
"bits": "1b12190b",
"difficulty": "3621.153551383194",
"txCount": 2,
"txs": [
{
"txid": "94cfa8405b79bae17b196bddb8a4feb79d3b88c996270d5267f4deb998085e4e",
"vin": [
{
"n": 0,
"isAddress": false,
"value": "0"
}
],
"vout": [
{
"value": "156254022",
"n": 0,
"addresses": [
"a5nir8JaBXh8RHNM3sjGf8RTQn4Hokas4p"
],
"isAddress": true
},
{
"value": "312500000",
"n": 1,
"addresses": [
"aMtob9kFzfE7s5Kex9QA2nixs7aYhJhfs1"
],
"isAddress": true
},
{
"value": "93750000",
"n": 2,
"addresses": [
"aLgRaYSFk6iVw2FqY1oei8Tdn2aTsGPVmP"
],
"isAddress": true
},
{
"value": "62500000",
"n": 3,
"addresses": [
"aFA2TbqG9cnhhzX5Yny2pBJRK5EaEqLCH7"
],
"isAddress": true
}
],
"blockHash": "f2da407314508c3387b846f88fcdb6cef90452185a57a40ab66d87fe29a7bd3f",
"blockHeight": 877810,
"confirmations": 2,
"blockTime": 1714320708,
"value": "625004022",
"valueIn": "0",
"fees": "0"
},
{
"txid": "8e6a589befec33e4e545756d2f3e6a2d01dc94076007078dd8c8f14819201ac9",
"vin": [
{
"n": 0,
"isAddress": false,
"value": "0"
}
],
"vout": [
{
"value": "0",
"n": 0,
"addresses": null,
"isAddress": false
}
],
"blockHash": "f2da407314508c3387b846f88fcdb6cef90452185a57a40ab66d87fe29a7bd3f",
"blockHeight": 877810,
"confirmations": 2,
"blockTime": 1714320708,
"value": "0",
"valueIn": "0",
"fees": "0"
}
]
}
Send transaction
Sends new transaction to backend.
Method: GET
https://firobook.nownodes.io/api/v2/sendtx/<hex tx data>
Example response: 200
{
"result": "99a507aa1c0c9fd755efcc19bcf88e15ab44f14886b7c32a9dc90be68033ea39 "
}
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://firobook.nownodes.io/api/v2/tickers-list/?timestamp=<timestamp>
Example response: 200
{
"error": "No tickers found"
}
Balance history
Returns a balance history for the specified XPUB or address.
Method: GET
https://firobook.nownodes.io/api/v2/balancehistory/<XPUB|address>?from=<dateFrom>&to=<dateTo>[&fiatcurrency=<currency>&groupBy=<groupBySeconds>]
Example response: 200
[
{
"time": 1655305200,
"txs": 1,
"received": "133700000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1655366400,
"txs": 1,
"received": "0",
"sent": "133700000",
"sentToSelf": "0"
},
{
"time": 1655380800,
"txs": 21,
"received": "1968750000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1655384400,
"txs": 26,
"received": "2437500000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1655388000,
"txs": 36,
"received": "3375000000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1655391600,
"txs": 37,
"received": "3468750000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1655395200,
"txs": 26,
"received": "2437500000",
"sent": "0",
"sentToSelf": "0"
},
...
Last updated