post https://api.infstones.com/starknet/mainnet/
Get the most recent accepted block hash and number
Parameter
None
Result
The latest block hash and number
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_blockHashAndNumber"
}
'
Return
{
"jsonrpc": "2.0",
"result": {
"block_hash": "0x52fb9e9b9cf7bde70b8372b5ca85600f6a652f315197319bd7b6de5916a97aa",
"block_number": 51278
},
"id": 1
}