GetChainParameters

查询全部链参数的当前值——所有可由委员会提案修改的网络参数实时快照。

📘

按 key 名查询,永远不要用数组下标

返回值是一个参数数组,但顺序不稳定——升级、新增参数等都会改变下标。读取时务必按 key 名匹配(如 getMaxFeeLimit、getEnergyFee、getAllowTvmCompatibleEvm),不要硬编码数组索引。

📘

默认值字段可能省略

该接口使用 proto3 JSON 映射,字段值为其类型的默认值时,可能从 JSON 响应中省略。value 的类型为 int64,默认值为 0。详见 Proto3 默认值省略。


相关资源

Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json