Block Height - Method

Does the SDK already offer a method for getting the block height? I’m considering using txPointer to get it.

Hey @miguel that’s one way you could go about it. I think the recommended route should be to use the fetchChain method which returns chain information for the current provider network, including the block height.

If you happen to want information about a specific block you could also use the getBlock method.

2 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.