starknet_blockHashAndNumber - Get the most...
Get the most recent accepted block hash and number
Starknet RPC endpoint: endpoint URLs, plans and pricing.
Get the most recent accepted block hash and number
{
"jsonrpc": "2.0",
"method": "starknet_blockHashAndNumber",
"params": [],
"id": 1
}Errors
| Code | Message |
|---|---|
| 32 | There are no blocks |
Examples
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