starknet_blockHashAndNumber - Get the most...
Get the most recent accepted block hash and number
Get the most recent accepted block hash and number
Request Parameters
This method accepts no parameters.
Response Body
The latest block hash and number Object with latest block hash and number
Errors
| Code | Message |
|---|---|
| 32 | There are no blocks |
Examples
curl -X POST https://api-starknet-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "starknet_blockHashAndNumber",
"params": [],
"id": 1
}'Starknet - Cairo-Powered Validity Rollup Documentation
Complete guide to Starknet integration with Dwellir RPC. Learn how to build on Cairo-powered Starknet, access JSON-RPC methods, and deploy scalable dApps with STARK proof security.
starknet_blockNumber - Get the most recent...
Get the most recent accepted block number