Polkadot RPC API文档

author
author_hasKey author_hasSessionKeys author_insertKey author_pendingExtrinsics author_removeExtrinsic author_rotateKeys author_submitAndWatchExtrinsic author_submitExtrinsic
babe
babe_epochAuthorship
chain
chain_getBlock chain_getBlockHash chain_getFinalizedHead chain_getHeader chain_subscribeAllHeads chain_subscribeFinalizedHeads chain_subscribeNewHeads
childstate
childstate_getKeys childstate_getStorage childstate_getStorageHash childstate_getStorageSize
contracts
contracts_call contracts_getStorage contracts_rentProjection
engine
engine_createBlock engine_finalizeBlock
grandpa
grandpa_proveFinality grandpa_roundState grandpa_subscribeJustifications
offchain
offchain_localStorageGet offchain_localStorageSet
payment
payment_queryInfo
rpc
rpc_methods
state
state_call state_getChildKeys state_getChildStorage state_getChildStorageHash state_getChildStorageSize state_getKeys state_getKeysPaged state_getMetadata state_getPairs state_getReadProof state_getRuntimeVersion state_getStorage state_getStorageHash state_getStorageSize state_queryStorage state_queryStorageAt state_subscribeRuntimeVersion state_subscribeStorage
syncstate
sync_state_genSyncSpec
system
system_accountNextIndex system_addLogFilter system_addReservedPeer system_chain system_chainType system_dryRun system_health system_localListenAddresses system_localPeerId system_name system_networkState system_nodeRoles system_peers system_properties system_removeReservedPeer system_resetLogFilter system_syncState system_version

grandpa_roundState

grandpa_roundState调用返回当前的最优轮次状态以及正在进行的后台轮次。

请求参数

返回结果

grandpa_roundState调用返回ReportedRoundStates轮次状态报告对象。

示例代码