HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

eth_blockNumber

Returns the number of the most recent block.

Parameters
None

Returns
QUANTITY - integer of the current block number the client is on.

Example

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Result

{"jsonrpc":"2.0","id":1,"result":"0x20e7a06"}