Skip to content

Does Lotus RPC API "Filecoin.ChainHead" fetch finalized block? #6707

Locked Answered by magik6k
BomaxChen asked this question in General Q&A
Discussion options

You must be logged in to vote

ChainHead returns current best tipset, which isn't finalized (has zero finality). You can use ChainGetPath between calls to see if there were any reorgs.

Alternatively you can use ChainNotify to get atomic notifications (assuming that your jsonrpc client supports go-jsonrpc channels)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dayou5168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chain Area: Chain area/messages status/archived Archive label, use when closing/locking old discussions.
2 participants
Converted from issue

This discussion was converted from issue #6704 on July 08, 2021 13:51.