OnFinality
New RPC users get 35% off their first monthView the offer
Astar logo

Astar RPC Endpoint and API

The Future of Smart Contracts for Multichain

Astar

Connect to Astar Mainnet with chain ID 592 and ASTR. Try OnFinality's public endpoint for EVM and Substrate requests, or create an authenticated RPC endpoint for your application.

Chain ID592
CurrencyASTR
Create a free API key for 400,000 response units per day and up to 40 response units/second. Method weights apply.
Open In Polkadot JS

Public endpoints are shared and rate-limited. View public rate limits

Quick Start
curl -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"chain_getBlock"}' 'https://astar.api.onfinality.io/public'
curl -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"chain_getBlock"}' 'https://astar.api.onfinality.io/public'
HTTPs
https://astar.api.onfinality.io/public
https://astar.api.onfinality.io/public
Websocket
wss://astar.api.onfinality.io/public-ws
wss://astar.api.onfinality.io/public-ws
Sidecar
https://astar.api.onfinality.io/rest/public/blocks/head
https://astar.api.onfinality.io/rest/public/blocks/head
GET CONNECTED

Connect to Astar

Choose OnFinality as your Astar RPC provider for EVM or Substrate. Verify chain ID 592 and compare public HTTPS, API key access, and dedicated node hosting.

Try the public interface

First request
curl 'https://astar.api.onfinality.io/public' \
  -H 'Content-Type: application/json' \
  --data '{"id":1,"jsonrpc":"2.0","method":"chain_getBlock"}'

Use the interface and request shown above for an initial check, then test the methods and traffic pattern your application actually needs.

02

Create your own access

  1. Open the dashboard and select this network.
  2. Create an endpoint and copy the access details supplied by the dashboard.
  3. Validate your application's methods, peak traffic and error handling before production.
Create an RPC endpoint for Astar
NETWORK REFERENCE

Verify Astar with a Substrate client

Use the EVM chain ID for MetaMask and Ethereum libraries. In a Substrate integration, query system_chain on the same public HTTPS endpoint to check the network identity.

bash
curl -sS 'https://astar.api.onfinality.io/public' \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"system_chain","params":[]}'

Expect Astar. For a state read your indexer must reproduce, request a finalized block hash with chain_getFinalizedHead and use that block when querying Substrate state.

Use public RPC for the first connection, then create an API key to monitor shared RPC usage. If you need a node isolated from shared workloads, use the dedicated-node option and confirm the Astar node type and historical range with your real queries.

RPC API

RPC API plans & response units

Choose a shared RPC plan by response-unit allowance and peak throughput. Method weights and network-specific availability still apply.

Developer

Free
Included response units
400,000/day
Rate limit
Up to 40 RU/s
Extra RU
Not available

Accelerate

$249/month
Included response units
100 million/month
Rate limit
500 RU/s
Extra RU
$3.75/million
Compare RPC plans

Plan figures checked 8 November 2026. RU are not always raw requests; WebSocket responses also count toward limits. Check the current pricing and this network's method documentation. Node charges and applicable taxes are additional.

NETWORK REFERENCE

Astar Mainnet RPC settings

Astar is a Polkadot parachain with an EVM interface and Substrate RPC. Use these settings for Astar Mainnet when connecting an EVM wallet or client.

Network
Astar Mainnet
EVM chain ID
592 (0x250)
Gas token
ASTR
OnFinality public HTTPS
https://astar.api.onfinality.io/public
OnFinality public WebSocket
wss://astar.api.onfinality.io/public-ws
EVM explorer
Astar Blockscout

The Astar endpoint reference lists OnFinality's public HTTPS and WebSocket addresses. Validate the WebSocket connection from your client before relying on subscriptions.

NETWORK REFERENCE

Check the Astar connection

Send an EVM chain ID request to verify a wallet or app is connected to Astar Mainnet:

bash
curl -sS 'https://astar.api.onfinality.io/public' \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

The expected result is 0x250. For Substrate tools, the Quick Start above uses chain_getBlock; chain_getBlockHash returns the latest block hash. Both interfaces were checked on 13 November 2026.

NETWORK REFERENCE

Select an Astar endpoint

Use the public RPC for initial checks, then create an authenticated endpoint to review usage and select capacity for your application. Dedicated Astar nodes are available for workloads requiring isolated resources. Test the exact history and method access your application needs.

Astar Mainnet is separate from Shiden and Shibuya. Consult the official endpoint reference for each network's settings. Astar's smart-contract documentation says Wasm smart contracts were wound down in October 2026; current smart-contract development uses the EVM.

BUILT FOR YOUR WORKLOAD

Build with Astar

Plan access around the requests, operational requirements and release workflow your application needs.

Integration

Start with a connection check, then validate the reads, transactions or data workflows required by your application.

Usage planning

Review method-specific limits, plan allowances and usage before increasing traffic. Different methods can consume different response units.

Operations

Use your real client region and request pattern when evaluating latency, retries and service availability.

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started