Docs
Docs
Home
Getting Started
Agent Tooling
CLI
Supported Chains
Acala
Aptos
Arbitrum
Arc
Asset Hub
Astar
Avalanche
Base
Berachain
Bifrost
Binance Smart Chain
Bittensor
Blast
Boba Network
Bridge Hub
Celo
Centrifuge
Chiliz
Cronos
Enjin
Ethereum
Etherlink
Flow EVM Gateway
Gnosis
Hydration
Hyperliquid
Immutable
Ink
IoTeX
Kusama
Linea
LISK
Manta Atlantic
Manta Pacific
Mantle
MegaETH
Monad
Movement
Neuroweb
opBNB
Optimism
Plasma
Polkadot
Polygon
Pulsechain
Robinhood
Ronin
Scroll
Sonic
Starknet
Taiko
Tempo
Sui
TRON
Unichain
Viction
World Chain
XDC Network
XX Network
Zetachain
zkSync Era
Zora
Supported ChainsStarknetJSON-RPC API

starknet_blockNumber - Get the most recent...

Get the most recent accepted block number

Starknet RPC endpoint: endpoint URLs, plans and pricing.

Get the most recent accepted block number

JSON-RPC request
{
  "jsonrpc": "2.0",
  "method": "starknet_blockNumber",
  "params": [],
  "id": 1
}

Errors

CodeMessage
32There are no blocks

Examples

starknet_blockHashAndNumber - Get the most...

Get the most recent accepted block hash and number

starknet_call - Execute Cairo Contract Calls

Execute Cairo smart contract functions without creating a transaction on Starknet.

On this page

ErrorsExamples