> For the complete documentation index, see [llms.txt](https://docs.joeywallet.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.joeywallet.xyz/integration/supported-networks/xrp-ledger/chains.md).

# Chains

For the XRP Ledger, we support the Mainnet (xrpl:0), Testnet (xrpl:1) and Devnet (xrpl:2).&#x20;

* **Mainnet** (xrpl:0)&#x20;

```typescript
const mainnet: typings.ChainDetails = {
  id: 'xrpl:0',
  name: 'XRPL',
  http: ['https://s1.ripple.com:51234/'],
  ws: ['wss://s1.ripple.com/'],
  nativeCurrency: { name: 'XRP', symbol: 'XRP', decimals: 6 },
  explorers: [{ name: 'XRPL Explorer', url: 'https://livenet.xrpl.org/' }],
  isDev: false,
};
```

* **Testnet** (xrpl:1)&#x20;

```typescript
const testnet: typings.ChainDetails = {
  id: 'xrpl:1',
  name: 'XRPL Testnet',
  http: ['https://s.altnet.rippletest.net:51234/'],
  ws: ['wss://s.altnet.rippletest.net:51234/'],
  nativeCurrency: { name: 'XRP', symbol: 'XRP', decimals: 6 },
  explorers: [{ name: 'XRPL Testnet Explorer', url: 'https://testnet.xrpl.org/' }],
  isDev: true,
};
```

* **Devnet** (xrpl:2)&#x20;

```typescript
const devnet: typings.ChainDetails = {
  id: 'xrpl:2',
  name: 'XRPL Devnet',
  http: ['https://s.devnet.rippletest.net:51234/'],
  ws: ['wss://s.devnet.rippletest.net:51234/'], 
  nativeCurrency: { name: 'XRP', symbol: 'XRP', decimals: 6 },
  explorers: [{ name: 'XRPL Devnet Explorer', url: 'https://devnet.xrpl.org/' }],
  isDev: true,
};
```
