Try Astar Endpoints
Mainnet
Shibuya
HTTPS
https://api-astar.n.dwellir.com/1a4a621f-4f4a-432f-bcc3-76e741750166
WSS
wss://api-astar.n.dwellir.com/1a4a621f-4f4a-432f-bcc3-76e741750166
Quick Start
BASH
curl -sS -X POST https://api-astar.n.dwellir.com/1a4a621f-4f4a-432f-bcc3-76e741750166 \-H 'Content-Type: application/json' \-d '{"id":1,"jsonrpc":"2.0","method":"chain_getBlockHash","params":[0]}'
JAVASCRIPT
import { ApiPromise, WsProvider } from '@polkadot/api';const provider = new WsProvider('wss://api-astar.n.dwellir.com/1a4a621f-4f4a-432f-bcc3-76e741750166');const api = await ApiPromise.create({ provider });const hash = await api.rpc.chain.getBlockHash(0);console.log(hash.toHex());
PYTHON
from substrateinterface import SubstrateInterfacesubstrate = SubstrateInterface(url='wss://api-astar.n.dwellir.com/1a4a621f-4f4a-432f-bcc3-76e741750166')block_hash = substrate.get_block_hash(block_id=0)print(block_hash)
GO
package mainimport ("fmt"gsrpc "github.com/centrifuge/go-substrate-rpc-client/v4""github.com/centrifuge/go-substrate-rpc-client/v4/types")func main() {api, err := gsrpc.NewSubstrateAPI("wss://api-astar.n.dwellir.com/1a4a621f-4f4a-432f-bcc3-76e741750166")if err != nil { panic(err) }var h types.Hashh, err = api.RPC.Chain.GetBlockHash(0)if err != nil { panic(err) }fmt.Println(h.Hex())}
Astar is a multi-chain smart contract platform that supports multiple blockchains and virtual machines. It enables interoperability and flexibility, allowing developers to build a variety of applications and services.
Pricing
How many calls do you make per month?
/ month
Growth
$299
/month
- 500 Responses /sec
- Dedicated Account Manager
150,000,000 responses ≈ 150.0M • Base $299 + Overages $0
Developer Resources
FAQs
How does the Astar blockchain work?
What are the key features of the Astar network?
What are the requirements and benefits of Astar dedicated nodes?
What SDKs are available for developers to interact with the Astar network?
Get your API key
and join other leading Web3 companies using Dwellir's infrastructure