Перейти к основному содержимому

Чанк по хешу

chunk — тип запроса.

Этот эндпоинт позволяет получить чанк по его хешу в блокчейне NEAR.

Сеть
API-ключ FastNearНет сохранённого ключа
Получить API-ключ
Эндпоинтhttps://rpc.mainnet.fastnear.com
Авторизацияне обнаружена
Живой ответ

Ответы от выбранного эндпоинта появляются здесь после запуска запроса.

Здесь появится вывод живого ответа после запуска запроса.

Справка по запросу

application/json

Эта операция принимает JSON-RPC тело через POST на /.

Обязательные входные данные запроса: да

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "chunk",
  "params": {
    "chunk_id": "H6zcZFttQB82dDKUgZUcB3D7kU2TKCToujEu4dAmNtey"
  }
}

Схема запроса

object
требует jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Пример: fastnear

method *string
chunk
params *object
требует chunk_id
chunk_id *string

Base58-encoded chunk hash

Справка по ответу

200 application/json

Успешный ответ

Схема ответа

objectJsonRpcResponse
требует jsonrpc, id
jsonrpc *string
2.0
id *один из
stringnumber
resultobject
требует author, header, транзакции, квитанции
author *string

NEAR аккаунта ID

header *object
требует chunk_hash, prev_block_hash, outcome_root, prev_state_root, encoded_merkle_root, encoded_length, height_created, height_included, shard_id, gas_used, gas_limit, balance_burnt, outgoing_receipts_root, tx_root, validator_proposals, signature

Contains main info about the chunk.

balance_burnt *string

Amount in yoctoNEAR

bandwidth_requestsobjectможет быть пустым

One of multiple possible types

chunk_hash *string

Base58-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 *integer
encoded_merkle_root *string

Base58-encoded hash

gas_limit *string

Газ amount

gas_used *string

Газ amount

height_created *integer
height_included *integer
outcome_root *string

Base58-encoded hash

outgoing_receipts_root *string

Base58-encoded hash

prev_block_hash *string

Base58-encoded hash

prev_state_root *string

Base58-encoded hash

rent_paidstring

Amount in yoctoNEAR

Значение по умолчанию: 0

shard_id *integer

Shard identifier

signature *string

Base58-encoded cryptographic signature

tx_root *string

Base58-encoded hash

validator_proposals *array
itemsobject
validator_rewardstring

Amount in yoctoNEAR

Значение по умолчанию: 0

квитанции *array
itemsobject
транзакции *array
itemsobject
errorobject
кодinteger
messagestring
dataobject