Chain Info
Get Blockchain Info
This endpoint retrieves information about the state of the specified chain for the selected network.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/chainstateExample Request
shell
curl --location --request GET "https://api.turingbitchain.io/api/tbc/chainstate"Example Response
json
{
"code": "200",
"message": "OK",
"data": {
"difficulty": 3.862041659137237,
"hashes_per_sec": 0.000027339466545794758,
"profit_per_th": 65109886.774849966,
"tx_cnt_per_day": 12145,
"tx_rate_per_day": 0.14008881711748083,
"unconfirmed_tx_cnt": 140,
"unconfirmed_tx_size": 668355
}
}Get Node Info
This endpoint retrieves information about the state of the specified node for the selected network.
HTTP Request
GET https://api.turingbitchain.io/api/tbc/nodeinfoExample Request
shell
curl --location --request GET "https://api.turingbitchain.io/api/tbc/nodeinfo"Example Response
json
{
"code": "200",
"message": "OK",
"data": {
"chain": "main",
"blocks": 909836,
"headers": 909836,
"bestblockhash": "0000000014cfbfebae4f3c53849bf5031752c1380c1dce4347ac2dc38cf8fb4a",
"difficulty": 3.862041659137237,
"mediantime": 1758070955,
"verificationprogress": 0.00414318360602915,
"pruned": false,
"chainwork": "0000000000000000000000000000000000000000014f159ca1edd00ac3dfcf75"
}
}