Your public Starknet Gateway

Starknet, a decentralized permisionless ZK-Rollup, leverages Ethereum's composability and security to enable unlimited scaling for dApps

Check out our documentation for limitations and usage examples on docs.blastapi.io

Get started for free and enjoy all the benefits including a higher throughput and a dedicated endpoint with our Consumer App

Starknet Mainnet

Starknet is a L2 solution that enhances Ethereum transactions by making them faster, more affordable, and more secure through the use of zk-STARKs technology.

Public RPC Default Endpoint

Public RPC Endpoint v0.7

Public RPC Endpoint v0.6

Public RPC Endpoint v0.5

Public RPC Endpoint v0.4

Playground

starknet_chainId

Parameters

starknet_chainId

Returns the currently configured StarkNet chain id

starknet_chainId response

Returns the currently configured StarkNet chain id

resultstring

A hexadecimal value in string format representing the integer of the current chain id

Request

curl -X POST https://starknet-mainnet.public.blastapi.io \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":0,"method":"starknet_chainId"}'
Average API calls/sec402.82
Average API calls/day34,804,072
API calls last 24h37,113,456

No Data

No API calls made yet

Do you need more to power your project?

Harness the power of our Consumer App and take advantage of a decentralized underlying blockchain infrastructure. With our simple interface and detailed documentation, you can create dedicated API endpoints for multiple blockchains, in just a few clicks, organize your work in different project and benefit from a higher throughput.
If you need help, our team of experts is available 24/7 via discord support. Don't hesitate - start your blockchain journey today!

Get Started for Free