Skip to main content

starknet_blockNumber RPC Method

Get the contract class definition in the given block associated with the given hash.

Updated on
Mar 18, 2024

starknet_blockNumber RPC Method

Parameters

This method does not accept any parameters

Returns

result
integer
The block's number (its height)
Request
1
curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/' \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '{
5
"id": 1,
6
"jsonrpc": "2.0",
7
"method": "starknet_blockNumber",
8
"params": []
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free