> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magic.link/llms.txt
> Use this file to discover all available pages before exploring further.

# XDC Network

> Users can effortlessly create wallets and interact with XDC using the Magic SDK.

## Overview

[XDC Network](https://xdc.community/) is an open-source, decentralized blockchain platform based on the XDPoS consensus algorithm. It features high scalability, low transaction fees, and a two-second block time.

**As XDC Network is EVM compatible**, you can follow the [Ethereum](/embedded-wallets/blockchains/ethereum/javascript) documentation to send your first transaction and utilize all other features.

## Configure XDC Network

<CodeGroup>
  ```js Testnet icon="square-js" theme={null}
  const XdcNetworkOptions = {
    rpcUrl: 'https://erpc.apothem.network', // XDC Apothem testnet RPC URL
    chainId: 51, // XDC Apothem chain id
  };

  // Setting network to point to XDC
  const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: XdcNetworkOptions });
  ```

  ```js Mainnet icon="square-js" theme={null}
  const XdcNetworkOptions = {
    rpcUrl: 'https://erpc.xinfin.network', // XDC mainnet RPC URL
    chainId: 50, // XDC chain id
  };

  // Setting network to point to XDC
  const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: XdcNetworkOptions });
  ```
</CodeGroup>

## Compatibility

* All `Auth`, `User` and most `Wallet` module methods\*
* All EVM Provider functionality to respond to supported [RPC methods](/embedded-wallets/sdk/client-side/javascript#evm-rpc-methods)

*\*Some features are not yet compatible such as NFT Viewer and Fiat On-ramps.*

*Need a feature or see a problem?* File an issue on our [github repo](https://github.com/magiclabs/magic-js).

## Resources & Tools

* Documentation: [https://docs.xdc.community/](https://docs.xdc.community/)
* Block Explorers:
  * [https://apothem.xdcscan.io/](https://apothem.xdcscan.io/) (testnet)
  * [https://xdcscan.io/](https://xdcscan.io/) (mainnet)
* Testnet Faucet: [https://faucet.blocksscan.io/](https://faucet.blocksscan.io/)
