Blockchain
GET /v2/blockchain/masterchain/{masterchain_seqno}/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.
Request
- Base URLhttps://tonapi.io
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
masterchain_seqnointeger required
Example:123456
masterchain block seqno
Response
blockchain blocks
Example response
{
"blocks": [
{
"after_merge": true,
"after_split": true,
"before_split": true,
"created_by": "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB",
"end_lt": 23814011000001,
"file_hash": "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB",
"gen_utime": 1674826775,
"global_id": -239,
"key_block": true,
"master_ref": "(-1,4234234,8000000000000000)",
"rand_seed": "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85",
"root_hash": "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85",
"seqno": 21734019,
"shard": "8000000000000000",
"start_lt": 23814011000000,
"tx_quantity": 130,
"value_flow": {
"burned": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"created": {
"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"
}
]
},
"from_prev_blk": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"imported": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"minted": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"recovered": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
},
"to_next_blk": {
"grams": 10000000000,
"other": [
{
"id": 13,
"value": "10000000000"
}
]
}
},
"want_merge": true,
"want_split": true
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.