chain_subscribeFinalisedHeads
Retrieves the best finalized header via subscription
The most recent completed block headers can be tracked in real time with the help of the chain_subscribeFinalisedHeads function. It creates a subscription that delivers the header information of the most recent blocks that have been finalized on a regular basis. Clients who require the most recent blockchain information without continuous polling may find this especially helpful.
Same results for method chain_subscribeFinalizedHeads!
Example Request and Result for chain_subscribeFinalisedHeads method
In this section, we provide an illustrative example of a request made to retrieve details contents using the chain_subscribeFinalisedHeads
method. Additionally, we present the resulting response containing information about getting the best finalised header using WS subscription.
Parameters
Fields | Type | Description |
---|---|---|
subscription | string | Manages header update subscription. |
The example in this section uses a non-existing project id.
Make sure you replace it with your Vara Mainnet endpoint when issuing the API calls.
Don't have a project id? Here's a straightforward guide on how to obtain one!
Retrieves the best finalised header via subscription
POST
wss://vara-mainnet.blastapi.io/<project-id>
Request Body
Name | Type | Description |
---|---|---|
subscription | string | [] |
Curl Request example
Last updated