# XDC Network, Enterprise-Grade Hybrid Blockchain

## XDC Network RPC plans and rate limits

- **Free plan:** 20 responses per second, up to 100,000 responses a day.
- **Plans:** $49/mo, $299/mo, $999/mo with 25M, 150M, and 500M included responses. Overages billed at $5/$3/$2 per million responses respectively.
- **Paid rate limits:** 100 to 5,000 responses per second (bursts from 500 to 10,000), no daily limit.
- **Billing:** 1 response = 1 API credit on every shared plan, over HTTPS or WebSocket (WSS) where XDC Network supports it.

Details: [Pricing](https://www.dwellir.com/docs/getting-started/pricing) · [Rate limits](https://www.dwellir.com/docs/getting-started/rate-limits) · [Authentication](https://www.dwellir.com/docs/getting-started/authentication) · [Archive nodes](https://www.dwellir.com/docs/getting-started/archive-nodes)

## Why Build on XDC Network

- **Enterprise ready:** Optimized for trade finance, tokenized real-world assets, and enterprise-grade integrations
- **Hybrid architecture:** Public network with optional private state channels for sensitive data
- **Ethereum-compatible tooling:** Seamless migration for Solidity smart contracts and EVM tooling
- **ISO 20022 alignment:** Built with financial messaging standards and compliance workflows in mind
- **Efficient consensus:** XinFin Delegated Proof of Stake (XDPoS) delivers \~2 second block times and low fees

## Quick Start

### Connect Endpoints

## Network Information

| Parameter          | Value              | Details |
| ------------------ | ------------------ | ------- |
| Mainnet Chain ID   | 50 (0x32)          |         |
| Testnet Chain ID   | 51 (0x33), Apothem |         |
| Native Token       | XDC                |         |
| Average Block Time | \~2 seconds        |         |

## Installation & Setup

Ethers.js v6
Web3.js
Viem
web3.py

```javascript
import { JsonRpcProvider } from 'ethers';

// Connect to XDC Network mainnet
const provider = new JsonRpcProvider('https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY');

// Verify connection
const { chainId } = await provider.getNetwork();
console.log('Connected to XDC Network:', chainId === 50n);

// Fetch latest block
const block = await provider.getBlock('latest');
console.log('Latest block:', block.number);
```

```javascript
import Web3 from 'web3';

const web3 = new Web3('https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY');

const chainId = await web3.eth.getChainId();
console.log('Connected to XDC Network:', chainId === 50);

const gasPrice = await web3.eth.getGasPrice();
console.log('Current gas price (XDC):', gasPrice);
```

```typescript
import { createPublicClient, defineChain, http } from 'viem';

const xdc = defineChain({
  id: 50,
  name: 'XDC Network',
  nativeCurrency: { name: 'XDC', symbol: 'XDC', decimals: 18 },
  rpcUrls: {
    default: { http: ['https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY'] }
  }
});

const client = createPublicClient({ chain: xdc, transport: http() });

const blockNumber = await client.getBlockNumber();
console.log('Latest block:', blockNumber);
```

```python
from web3 import Web3

w3 = Web3(Web3.HTTPProvider('https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY'))

if w3.is_connected():
    chain_id = w3.eth.chain_id
    print(f'Connected to XDC Network (chain ID: {chain_id})')

balance = w3.eth.get_balance('0x0000000000000000000000000000000000000000')
print('Foundation balance (wei):', balance)
```

### Consensus & Validator Model

| Parameter     | Value     | Details                   |
| ------------- | --------- | ------------------------- |
| Consensus     | XDPoS 2.0 | Delegated Proof of Stake  |
| Finality      | \~2s      | Fast settlement           |
| Validator Set | 108       | Masternodes and delegates |

## Core Features

- **Hybrid privacy:** Permissionless public ledger with optional private side-channels for data confidentiality
- **Low cost transactions:** Typical fees under $0.0002 per transfer, enabling micro-settlement use cases
- **Asset tokenization:** Native support for security tokens, invoice financing, and RWA issuance
- **Interoperability:** Bridges to Ethereum, Polygon, BNB Chain, and Corda-based networks
- **Regulatory readiness:** Compliance-first tooling, identity layers, and notarization workflows

## API Reference

Detailed method guides for XDC Network are coming soon. Standard Ethereum JSON-RPC calls (`eth_blockNumber`, `eth_getBalance`, `eth_sendRawTransaction`, etc.) are fully supported today.

Reach out to the Dwellir team if you need a specific method guide prioritized.

## Tooling & Integrations

- **Explorer**: [XDC Scan](https://xdcscan.io/)
- **Faucet**: [Apothem Faucet](https://faucet.apothem.network/)
- **Wallets**: XDC Pay, Ledger (with Chainlist), D'Cent
- **Bridges**: XDC Web Wallet bridge, Prime Numbers bridge

## Developer Resources

- [Official XDC Documentation](https://docs.xdc.network/)
- [XDC Developer Forum](https://www.xdc.dev/)
- [XinFin GitHub](https://github.com/xinfinorg)
- [Quick Start Guide](https://docs.xdc.network/xdcchain/developers/quick-guide/)

## Next Steps

1. Request your dedicated API key from the Dwellir dashboard
2. Point your existing EVM tooling to the endpoints above
3. Start deploying Solidity contracts or minting assets on XDC Network

Build confidently on XDC Network with globally distributed, low-latency RPC access from Dwellir.
