Does Lotus RPC API "Filecoin.ChainHead" fetch finalized block? #6707
-
as titile, rpc api "Filecoin.ChainHead" fetch finalized block? If not, how do I check reorg situation |
Beta Was this translation helpful? Give feedback.
Answered by
magik6k
Jul 8, 2021
Replies: 1 comment
-
ChainHead returns current best tipset, which isn't finalized (has zero finality). You can use Alternatively you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dayou5168
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)