Phương thức RPC getSlotLeader

Trả về leader của slot hiện tại

$ 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

Đối tượng cấu hình chứa các trường sau:

result

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

Pubkey định danh Node dưới dạng chuỗi mã hóa base-58

Is this page helpful?