getSlotLeader
getSlotLeader
方法返回当前的槽位主导人。
请求参数
<object>
- (optional) Commitment
响应结果
<string>
- Node identity Pubkey as base-58 encoded string
示例代码
请求:
curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getSlotLeader"}
响应:
{"jsonrpc":"2.0","result":"ENvAW7JScgYq6o4zKZwewtkzzJgDzuJAFxYasvmEQdpS","id":1}