slotSubscribe RPC Metodu

Validator tarafından işlenen herhangi bir slot hakkında bildirim almak için abone olun

{
"jsonrpc": "2.0",
"id": 1,
"method": "slotSubscribe"
}

params

None

result

Response
{
"jsonrpc": "2.0",
"result": 0,
"id": 1
}
integer

Abonelik kimliği (abonelikten çıkmak için gereklidir)

Bildirim Formatı:

Bildirim, aşağıdaki alanları içeren bir nesne olacaktır:

  • parent: <u64> - Üst slot
  • root: <u64> - Mevcut kök slot
  • slot: <u64> - Yeni ayarlanan slot değeri

Örnek:

{
"jsonrpc": "2.0",
"method": "slotNotification",
"params": {
"result": {
"parent": 75,
"root": 44,
"slot": 76
},
"subscription": 0
}
}

Is this page helpful?