XDC Network RPC Endpoints
Mainnet
- Chain ID
- Family
- EVM
HTTPS
https://api-xdc-mainnet.n.dwellir.com/<your-api-key>
WSS
wss://api-xdc-mainnet.n.dwellir.com/<your-api-key>
Quick Start
BASH
curl -sS -X POST https://api-xdc-mainnet.n.dwellir.com/<your-api-key> \-H 'Content-Type: application/json' \-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
JAVASCRIPT
import { JsonRpcProvider } from 'ethers';const provider = new JsonRpcProvider('https://api-xdc-mainnet.n.dwellir.com/<your-api-key>');const latest = await provider.getBlockNumber();console.log('block', latest);
PYTHON
import requestsurl = 'https://api-xdc-mainnet.n.dwellir.com/<your-api-key>'payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': [] }resp = requests.post(url, json=payload)print(resp.json())
GO
package mainimport ("bytes""fmt""net/http""io/ioutil")func main() {url := "https://api-xdc-mainnet.n.dwellir.com/<your-api-key>"payload := []byte("{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_blockNumber\",\"params\":[]}")resp, err := http.Post(url, "application/json", bytes.NewBuffer(payload))if err != nil { panic(err) }defer resp.Body.Close()body, _ := ioutil.ReadAll(resp.Body)fmt.Println(string(body))}
XDC Network is an enterprise-grade, open-source blockchain protocol focused on decentralized finance and global trade. Powered by the XDPoS consensus mechanism, it delivers 2,000+ TPS, near-instant finality, and negligible gas fees. Its EVM-compatible smart-contract layer enables developers to port Ethereum dApps while benefiting from superior performance and cost-efficiency. XDC's hybrid architecture and ISO-20022 compliant messaging make it ideal for tokenizing real-world assets, trade finance instruments, and supply-chain solutions.
Shared Node Pricing
How many calls do you make per month?
/ month
Growth
$299
/month
- 500 Responses /sec
- Pay in Crypto
- Dedicated Account Manager
XDC Network Unlimited Node
- Unmetered requests within your tier
- Five tiers from 25 to 1,000 RPS
- No API credits, no overages
- Pay in Crypto
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Same endpoint URL and API key
- Self-serve in the dashboard
- Fixed monthly invoice
XDC Network Dedicated Node Cluster
- Unlimited RPS & Responses
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Pay in Crypto
- Dedicated Account Manager
- Tailored load balancing
- Access to Engineering teams
- Global data centers
Developer Resources
FAQs
What is XDC Network and what makes it unique?
Is XDC Network compatible with Ethereum tools?
What are common use cases for XDC Network?
How does XDC achieve low fees and high throughput?
What is the XDC token used for?
Get your API key
and join other leading Web3 companies using Dwellir's infrastructure