getSlotLeader RPC 메소드

현재 slot 리더를 반환합니다

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getSlotLeader",
> "params": [
> {
> "commitment": "finalized"
> }
> ]
> }
> '

params

objectoptional

다음 필드를 포함하는 구성 객체:

result

Response
{
"jsonrpc": "2.0",
"result": "ENvAW7JScgYq6o4zKZwewtkzzJgDzuJAFxYasvmEQdpS",
"id": 1
}
string

base-58로 인코딩된 문자열 형식의 노드 신원 pubkey

Is this page helpful?