cURL
curl --request GET \
--url https://tonapi.io/v2/blockchain/masterchain/{masterchain_seqno}/blocks{
"blocks": [
{
"tx_quantity": 130,
"value_flow": {
"from_prev_blk": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"to_next_blk": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"imported": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"exported": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"fees_collected": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"fees_imported": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"recovered": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"created": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"minted": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"burned": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
}
},
"workchain_id": 0,
"shard": "8000000000000000",
"seqno": 21734019,
"root_hash": "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85",
"file_hash": "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB",
"global_id": -239,
"version": 0,
"after_merge": true,
"before_split": true,
"after_split": true,
"want_split": true,
"want_merge": true,
"key_block": true,
"gen_utime": 1674826775,
"start_lt": 23814011000000,
"end_lt": 23814011000001,
"vert_seqno": 0,
"gen_catchain_seqno": 0,
"min_ref_mc_seqno": 0,
"prev_key_block_seqno": 0,
"prev_refs": [
[
"(-1",
4234235,
"8000000000000000)"
]
],
"in_msg_descr_length": 0,
"out_msg_descr_length": 0,
"rand_seed": "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85",
"created_by": "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB",
"gen_software_version": 0,
"gen_software_capabilities": 0,
"master_ref": "(-1,4234234,8000000000000000)"
}
]
}Get Blockchain Masterchain Blocks
Get all blocks in all shards and workchains between target and previous masterchain block according to shards last blocks snapshot in masterchain. We don’t recommend to build your app around this method because it has problem with scalability and will work very slow in the future.
GET
/
v2
/
blockchain
/
masterchain
/
{masterchain_seqno}
/
blocks
cURL
curl --request GET \
--url https://tonapi.io/v2/blockchain/masterchain/{masterchain_seqno}/blocks{
"blocks": [
{
"tx_quantity": 130,
"value_flow": {
"from_prev_blk": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"to_next_blk": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"imported": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"exported": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"fees_collected": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"fees_imported": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"recovered": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"created": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"minted": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"burned": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
}
},
"workchain_id": 0,
"shard": "8000000000000000",
"seqno": 21734019,
"root_hash": "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85",
"file_hash": "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB",
"global_id": -239,
"version": 0,
"after_merge": true,
"before_split": true,
"after_split": true,
"want_split": true,
"want_merge": true,
"key_block": true,
"gen_utime": 1674826775,
"start_lt": 23814011000000,
"end_lt": 23814011000001,
"vert_seqno": 0,
"gen_catchain_seqno": 0,
"min_ref_mc_seqno": 0,
"prev_key_block_seqno": 0,
"prev_refs": [
[
"(-1",
4234235,
"8000000000000000)"
]
],
"in_msg_descr_length": 0,
"out_msg_descr_length": 0,
"rand_seed": "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85",
"created_by": "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB",
"gen_software_version": 0,
"gen_software_capabilities": 0,
"master_ref": "(-1,4234234,8000000000000000)"
}
]
}Documentation Index
Fetch the complete documentation index at: https://tonapi.ness.su/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?
⌘I