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
在线工具推荐: Three.js AI纹理开发包 - YOLO合成数据生成器 - GLTF/GLB在线编辑 - 3D模型格式在线转换 - 可编程3D场景编辑器

system_addReservedPeer

system_addReservedPeer调用添加保留节点。

请求参数

  • peer:要添加的保留节点

返回结果

system_addReservedPeer返回Text数据

示例代码