Block
Get by Hash
This endpoint retrieves the block details of a given hash.
TIP
For blocks with a maximum of 20 transactions, this call returns all transaction IDs.
- If a block has more than 20 transactions, only the first 20 transaction IDs are returned.
- To retrieve the remaining IDs, see the Get Block Pages section.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/blockByHash/hash/{hash}Example Request
curl --location --request GET "https://api.turingbitchain.io/api/tbc/blockByHash/hash/000000005c361f8e2b1d501021fd96e79586b1450dde80bb7f6de66c3d3fa168"Example Response
{
"code": "200",
"message": "OK",
"data": {
"bits": "1d009804",
"coinbase": "\u0003P�\f",
"coinbasefee": 0,
"coinbaseinfo": "A1CWDA==",
"coinbasereward": 625000000,
"coinbasetxid": "4b9583daa3a1539bc472813272293ad5d5544891b63daa7e2087445f744cf6bd",
"confirmations": 84926,
"difficulty": 1.68401171754548,
"hash": "000000005c361f8e2b1d501021fd96e79586b1450dde80bb7f6de66c3d3fa168",
"height": 824912,
"merkleroot": "4b9583daa3a1539bc472813272293ad5d5544891b63daa7e2087445f744cf6bd",
"nexthash": "0000000050b736dd1da6a01045991feb153cc366cf3e1b396e3e519a43bed998",
"nonce": 88153498,
"previoushash": "0000000071add0fc9b909a77b287cf7500f5c8cdef2a5aabaf729a29ba8047bc",
"reward": 0,
"size": 388,
"time": 1708785357,
"tx": [
"4b9583daa3a1539bc472813272293ad5d5544891b63daa7e2087445f744cf6bd"
],
"txcnt": 1,
"version": 536870912,
"versionhex": "20000000"
}
}URL Parameters
| Parameter | Description |
|---|---|
| hash | Block hash. |
Get by Height
This endpoint retrieves the block details of a given block height.
Note
For blocks with up to 20 transactions, this call returns all transaction IDs.
- If the block has more than 20 transactions, only the first 20 transaction IDs are returned.
- To get the remaining IDs, refer to the Get Block Pages section.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/blockByHeight/height/{height}Example Request
curl --location --request GET "https://api.turingbitchain.io/api/tbc/blockByHeight/height/824190"Example Response
{
"code": "200",
"message": "OK",
"data": {
"bits": "1d00efff",
"coinbase":"~�\f",
"coinbasefee": 0,
"coinbaseinfo": "A36TDA==",
"coinbasereward": 625000000,
"coinbasetxid": "666a860f2af836985ea01ef20dbe7d0f012e6a399eaf2b8c997497c35c701f06",
"confirmations": 85648,
"difficulty": 1.066667751753772,
"hash": "0000000058968601042df9b0d57e41b092c76d6f91f333dc231cdd4cc4fd861d",
"height": 824190,
"merkleroot": "666a860f2af836985ea01ef20dbe7d0f012e6a399eaf2b8c997497c35c701f06",
"nexthash": "00000000741ce17614ba9283ce49dd43c8c46d174144c9e51cc05540696c67a7",
"nonce": 563364325,
"previoushash": "000000008cbb162a198ea6d21c2bff298d5cfed1f93454f616fa43a36290d710",
"reward": 0,
"size": 389,
"time": 1708354684,
"tx": [
"666a860f2af836985ea01ef20dbe7d0f012e6a399eaf2b8c997497c35c701f06"
],
"txcnt": 1,
"version": 536870912,
"versionhex": "20000000"
}
}URL Parameters
| Parameter | Description |
|---|---|
| height | Block height. |
Get Headers
Retrieve the latest block information using pagination. The maximum number of blocks per request is 10, meaning the difference between start and end must not exceed 10.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/recentblocks/start/{start}/end/{end}Example Request
curl --location --request GET "https://api.turingbitchain.io/api/tbc/recentblocks/start/0/end/10"Example Response
{
"code": "200",
"message": "OK",
"data": [
{
"bits": "1c4484da",
"coinbase":"�\rF0D 0�{��K�~D�h$ɟ\b�Z��G�\n�h4� ?\\�����_c��N2�J�� Y3jU�<���",
"coinbasefee": 782,
"coinbaseinfo": "AxPiDUYwRAIgMAHie9neHEukGH5E9xZoGyTJnwiTWr0Ou0flCqloNK8CID9coPvmzsYRX2O87k4y4UqauiBZfzMFalXMPIujGxKe",
"coinbasereward": 312500000,
"coinbasetxid": "acc4a0cf01799142363bfa08edb42b6affbe021c0fc42ca145ce876aa2fc9a2f",
"confirmations": 1,
"difficulty": 3.736135601312828,
"hash": "00000000093bebcc6fe692955534e22a60d3c9fbbbdc2b788eb6c3dacd84d75a",
"height": 909843,
"merkleroot": "c90b7e816ad0aff10ae34a6b3173bf4624e47e49b4bd8453214a15427207a278",
"nexthash": "",
"nonce": 1901533251,
"previoushash": "0000000029f505a9922104e2027985a9e7b763e181b8ae444132573fd8c08c30",
"reward": 0,
"size": 4722,
"time": 1758078708,
"txcnt": 7,
"version": 536870912,
"versionhex": "20000000"
},
{
"bits": "1c4399e9",
"coinbase":"�\rF0D N� ὰ�-]��{��j�>�������ю�!�� K�`���ݳ\r�6�ó��\tґB8�n~���\f�",
"coinbasefee": 19907,
"coinbaseinfo": "AxLiDUYwRAIgTugg4b2wrS1doIh77qVqiD7S9qTrgfeqFxrRjtshgsoCIEvRYIXQ+N2zDa82tMOzgIcDCdKRQjjWbn7ZALbCAgy5",
"coinbasereward": 312500000,
"coinbasetxid": "6225657b3335b3d93590dfbf8cd573c57898128908b5cb35f6fa74bb0df16379",
"confirmations": 2,
"difficulty": 3.786856594556637,
"hash": "0000000029f505a9922104e2027985a9e7b763e181b8ae444132573fd8c08c30",
"height": 909842,
"merkleroot": "53e44ecbf6cfd4453a7c1a24e2d4df75982856aba4c9d3116e971394ba96e2d2",
"nexthash": "",
"nonce": 2795153160,
"previoushash": "00000000056db7ad88abb7b6a10199be53fb64426ab10cc201d69a36bee7f824",
"reward": 0,
"size": 230698,
"time": 1758078593,
"txcnt": 55,
"version": 536870912,
"versionhex": "20000000"
},
......
]
}URL Parameters
| Parameter | Description |
|---|---|
| start | Starting position or offset (integer). |
| end | Ending position or offset (integer). |
Get Block TX by Hash
This endpoint retrieves the block txs of a given hash. The maximum number of transactions per request is 100.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/txbyblockhash/blockhash/{blockhash}/start/{start}/end/{end}Example Request
curl --location --request GET 'https://api.turingbitchain.io/api/tbc/txbyblockhash/blockhash/0000000024397ca3f5ce32c6805f62abe8e8580ae558e853c54d960cb76c146b/start/0/end/10'Example Response
{
"code": "200",
"message": "OK",
"data": {
"coinbase_txid": "73f4a248e76673ea4964fd54481f130cbd31614903667e01bab7d374282c89fb",
"coinbase":"-�\rG0E!����\r��BT���|�B$�s�w����ۈ� |=���O�Z�\u000b�a�I�Ӿ�8Au\b��}�",
"txs": [
{
"hash": "73f4a248e76673ea4964fd54481f130cbd31614903667e01bab7d374282c89fb",
"height": 902445,
"vin": [
{
"address": "coinbase",
"value": 0
}
],
"vout": [
{
"address": "",
"value": 109378063
},
{
"address": "16QPoVW1aKeg7ixny5wgNHccyS1NMAn5uh",
"value": 203130690
}
],
"fee": 0,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "df907245270b0a8e8510a2c42d505db42f7d98fca67e20faf5e75638f5b0ec3f",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7390506
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7389626
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "0989a91d242d4587009f69c7f788afce016143d81670faa63191d04e14be5eb0",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7389626
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7388746
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "522b6188df1f4bccc9c3b277ff9dbb87375fd9a9b86b3aacbcee61b57e1f230a",
"height": 902445,
"vin": [
{
"address": "1QCYSuje1kdkjmzDg4fvXn1QBnYUavSMPZ",
"value": 295986
}
],
"vout": [
{
"address": "1F54HCQeogRVCX2JREFP4HXq7dQ9xpX6m2",
"value": 100000
},
{
"address": "1QCYSuje1kdkjmzDg4fvXn1QBnYUavSMPZ",
"value": 195906
}
],
"fee": 80,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "e6a20147a8c74c25679c0347bcbe2ed54e4e56268a6dc53f7a62385106dd4112",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7388746
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7387866
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "2d631af66aed766d1e4dc651fc744e59537b4b492cad398efff14c5cc78b5600",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7387866
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7386986
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "2e21baacadf91265dc7e88ead72aaf9fd554bbbba34c7f4bdc4e900da99f3a4d",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 500
},
{
"address": "1F54HCQeogRVCX2JREFP4HXq7dQ9xpX6m2",
"value": 100000
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "1F54HCQeogRVCX2JREFP4HXq7dQ9xpX6m2",
"value": 100175
}
],
"fee": 325,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "daed7de1e130acf93f9221682685dd48f4799ad3b8df08e5b901546d7dd3e427",
"height": 902445,
"vin": [
{
"address": "",
"value": 653183882248
},
{
"address": "",
"value": 500
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 10000
}
],
"vout": [
{
"address": "",
"value": 653137241579
},
{
"address": "",
"value": 0
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 46500677
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "1Fa6Uy64Ub4qNdB896zX2pNMx4a8zMhtCy",
"value": 139992
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 9008
}
],
"fee": 992,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "8c570c1720425515c8ff337dcb4168171969ee1f049e827cc4782a0817a58e38",
"height": 902445,
"vin": [
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 46500677
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 9008
}
],
"vout": [
{
"address": "1F54HCQeogRVCX2JREFP4HXq7dQ9xpX6m2",
"value": 46508685
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 920
}
],
"fee": 80,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "abee32b2554755d86d68ba3c5768f99b2e256192789170c2892c8492a558197f",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7386986
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7386106
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
}
]
}
}URL Parameters
| Parameter | Description |
|---|---|
| hash | Block hash. |
| start | Starting position or offset (integer). |
| end | Ending position or offset (integer). |
Get Block TX by Height
This endpoint retrieves the block txs of a given block height. The maximum number of transactions per request is 100.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/txbyblockheight/height/{height}/start/{start}/end/{end}Example Request
curl --location --request GET 'https://api.turingbitchain.io/api/tbc/txbyblockheight/height/902445/start/0/end/10'Example Response
{
"code": "200",
"message": "OK",
"data": {
"coinbase_txid": "73f4a248e76673ea4964fd54481f130cbd31614903667e01bab7d374282c89fb",
"coinbase":"-�\rG0E!����\r��BT���|�B$�s�w����ۈ� |=���O�Z�\u000b�a�I�Ӿ�8Au\b��}�",
"txs": [
{
"hash": "73f4a248e76673ea4964fd54481f130cbd31614903667e01bab7d374282c89fb",
"height": 902445,
"vin": [
{
"address": "coinbase",
"value": 0
}
],
"vout": [
{
"address": "",
"value": 109378063
},
{
"address": "16QPoVW1aKeg7ixny5wgNHccyS1NMAn5uh",
"value": 203130690
}
],
"fee": 0,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "df907245270b0a8e8510a2c42d505db42f7d98fca67e20faf5e75638f5b0ec3f",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7390506
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7389626
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "0989a91d242d4587009f69c7f788afce016143d81670faa63191d04e14be5eb0",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7389626
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7388746
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "522b6188df1f4bccc9c3b277ff9dbb87375fd9a9b86b3aacbcee61b57e1f230a",
"height": 902445,
"vin": [
{
"address": "1QCYSuje1kdkjmzDg4fvXn1QBnYUavSMPZ",
"value": 295986
}
],
"vout": [
{
"address": "1F54HCQeogRVCX2JREFP4HXq7dQ9xpX6m2",
"value": 100000
},
{
"address": "1QCYSuje1kdkjmzDg4fvXn1QBnYUavSMPZ",
"value": 195906
}
],
"fee": 80,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "e6a20147a8c74c25679c0347bcbe2ed54e4e56268a6dc53f7a62385106dd4112",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7388746
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7387866
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "2d631af66aed766d1e4dc651fc744e59537b4b492cad398efff14c5cc78b5600",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7387866
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7386986
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "2e21baacadf91265dc7e88ead72aaf9fd554bbbba34c7f4bdc4e900da99f3a4d",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 500
},
{
"address": "1F54HCQeogRVCX2JREFP4HXq7dQ9xpX6m2",
"value": 100000
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "1F54HCQeogRVCX2JREFP4HXq7dQ9xpX6m2",
"value": 100175
}
],
"fee": 325,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "daed7de1e130acf93f9221682685dd48f4799ad3b8df08e5b901546d7dd3e427",
"height": 902445,
"vin": [
{
"address": "",
"value": 653183882248
},
{
"address": "",
"value": 500
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 10000
}
],
"vout": [
{
"address": "",
"value": 653137241579
},
{
"address": "",
"value": 0
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 46500677
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "1Fa6Uy64Ub4qNdB896zX2pNMx4a8zMhtCy",
"value": 139992
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 9008
}
],
"fee": 992,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "8c570c1720425515c8ff337dcb4168171969ee1f049e827cc4782a0817a58e38",
"height": 902445,
"vin": [
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 46500677
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 9008
}
],
"vout": [
{
"address": "1F54HCQeogRVCX2JREFP4HXq7dQ9xpX6m2",
"value": 46508685
},
{
"address": "1A43vLjwyfxVrZq72XQcLmnoA4CD1SMR3c",
"value": 920
}
],
"fee": 80,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
},
{
"hash": "abee32b2554755d86d68ba3c5768f99b2e256192789170c2892c8492a558197f",
"height": 902445,
"vin": [
{
"address": "",
"value": 500
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7386986
}
],
"vout": [
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "",
"value": 500
},
{
"address": "",
"value": 0
},
{
"address": "19DGzcz5NPtorY2hfp5a4cXJFMi66jwu16",
"value": 7386106
}
],
"fee": 380,
"coinday": 0,
"confirmations": 8157,
"time": 1753603921
}
]
}
}URL Parameters
| Parameter | Description |
|---|---|
| height | Block height. |
| start | Starting position or offset (integer). |
| end | Ending position or offset (integer). |