Skip to main content

starknet_blockNumber RPC Method

Loading...

Updated on
Mar 18, 2024

starknet_blockNumber RPC Method

Parameters

This method does not accept any parameters

Returns

result
integer
Loading...
Request
1
# Note: You can specify Starknet version in the URL path
2
# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.6
3
curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8' \
4
--header 'accept: application/json' \
5
--header 'content-type: application/json' \
6
--data '{
7
"id": 1,
8
"jsonrpc": "2.0",
9
"method": "starknet_blockNumber",
10
"params": []
11
}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free