Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

beefy_subscribeJustifications - Kusama

Example code for the beefy_subscribeJustifications WebSocket method. Complete guide on how to use beefy_subscribeJustifications WebSocket in GetBlock Web3 documentation.

Streams BEEFY finality justifications. WebSocket only. BEEFY is a companion gadget to GRANDPA that produces compact, bridge-friendly finality proofs for light clients on other chains (for example Ethereum).

Parameters

This method takes no parameters; send an empty params array.

Subscribe

wscat -c wss://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

# then send:
{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "method": "beefy_subscribeJustifications",
    "params": []
}

Subscription ID

The initial response returns the subscription id used to correlate and cancel the stream:

Notifications

While subscribed, the node pushes a notification per update:

Notification Fields

Field
Type
Description

result

string

Hex-encoded BEEFY signed commitment

Use Cases

  • Trustless Bridges: Consume BEEFY proofs on other chains

  • Light Clients: Efficient finality verification

  • Interoperability: Anchor cross-ecosystem messaging

Error Handling

Error
Message
Description

-32603 / Internal error

Subscription error

The subscription could not be established

403 / RBAC: access denied

Access denied

The GetBlock access token is missing or incorrect

Last updated

Was this helpful?