网络
查询网络信息。
获取 获取网络配置
https://gateway.elrond.com/network/config
该端点允许用户查询关于网络配置的基本细节。
RequestResponse 🟢 200:好的
配置详细信息检索成功。
{
"data": {
"config": {
"erd_chain_id": "1",
"erd_denomination": 18,
"erd_gas_per_data_byte": 1500,
"erd_latest_tag_software_version": "v1.1.0.0",
"erd_meta_consensus_group_size": 400,
"erd_min_gas_limit": 50000,
"erd_min_gas_price": 1000000000,
"erd_min_transaction_version": 1,
"erd_num_metachain_nodes": 400,
"erd_num_nodes_in_shard": 400,
"erd_num_shards_without_meta": 3,
"erd_round_duration": 6000,
"erd_shard_consensus_group_size": 63,
"erd_start_time": 1596117600
}
},
"error": "",
"code": "successful"
}
获取 获取分片状态
https://gateway.elrond.com/network/status/:shardId
这个端点允许查询给定碎片的状态。
RequestResponse 路径参数
参数 | 需要 | 类型 | 描述 |
---|---|---|---|
shardID | 必需的 | number |
碎片 ID。0、1、2 等。使用 4294967295 来查询元链。 |
成功检索碎片状态。
{
"data": {
"status": {
"erd_current_round": 187068,
"erd_epoch_number": 12,
"erd_highest_final_nonce": 187019,
"erd_nonce": 187023,
"erd_nonce_at_epoch_start": 172770,
"erd_nonces_passed_in_current_epoch": 14253,
"erd_round_at_epoch_start": 172814,
"erd_rounds_passed_in_current_epoch": 14254,
"erd_rounds_per_epoch": 14400
}
},
"error": "",
"code": "successful"
}
重要
路径参数**shardId**
仅适用于代理端点。观察点端点不定义此参数。