Чанк по блоку и шарду
chunk — тип запроса.
Этот эндпоинт позволяет получить чанк по ID блока и ID шарда в блокчейне NEAR.
Ответы от выбранного эндпоинта появляются здесь после запуска запроса.
Здесь появится вывод живого ответа после запуска запроса.
Справка по запросу
application/jsonЭта операция принимает JSON-RPC тело через POST на /.
Обязательные входные данные запроса: да
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "chunk",
"params": {
"block_id": "6sddgq8nkENAz4f8qR72qxRPM25QWNBVMrkYr63DgC2E",
"shard_id": 10
}
}Схема запроса
jsonrpc *string2.0id *stringmethod *stringchunkparams *objectblock_id *один изБлок height (integer) or блока hash (string)
Блок height
Base58-encoded блока hash
shard_id *integerShard identifier
Справка по ответу
200 application/jsonУспешный ответ
Схема ответа
jsonrpc *string2.0id *один изresultobjectauthor *stringNEAR аккаунта ID
header *objectContains main info about the chunk.
balance_burnt *stringAmount in yoctoNEAR
bandwidth_requestsobjectможет быть пустымOne of multiple possible types
chunk_hash *stringBase58-encoded hash
congestion_infoobjectможет быть пустымStores the congestion level of a шард. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
encoded_length *integerencoded_merkle_root *stringBase58-encoded hash
gas_limit *stringГаз amount
gas_used *stringГаз amount
height_created *integerheight_included *integeroutcome_root *stringBase58-encoded hash
outgoing_receipts_root *stringBase58-encoded hash
prev_block_hash *stringBase58-encoded hash
prev_state_root *stringBase58-encoded hash
rent_paidstringAmount in yoctoNEAR
shard_id *integerShard identifier
signature *stringBase58-encoded cryptographic signature
tx_root *stringBase58-encoded hash
validator_proposals *arrayitemsobjectvalidator_rewardstringAmount in yoctoNEAR
квитанции *arrayitemsobjectтранзакции *arrayitemsobjecterrorobjectкодintegermessagestringdataobject