rootSubscribe RPC Metodu

Validator tarafından yeni bir root belirlendiğinde bildirim almak için abone olun.

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

params

None

result

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

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

Bildirim Formatı:

Sonuç, en son root slot numarasıdır.

{
"jsonrpc": "2.0",
"method": "rootNotification",
"params": {
"result": 42,
"subscription": 0
}
}

Is this page helpful?