# Integrate Embedded Wallets with the XDC Blockchain in iOS/Swift Applications

> Integrate Embedded Wallets with the XDC Blockchain in iOS/Swift Applications | Embedded Wallets

While using the Web3Auth iOS SDK, you get the private key within the user scope after successful authorization. This private key can be used to retrieve the user's address, and interact with [XDC](https://ethereum.org/) to make any blockchain calls. We have highlighted a few here for getting you started quickly on that.

## Chain details for XDC

<Tabs
 defaultValue="mainnet"
  values={[
    { label: "Mainnet", value: "mainnet" },
    { label: "Apothem Testnet", value: "apothem" },
    { label: "Devnet", value: "devnet" },
  ]}
>
<TabItem value="mainnet">

- **Chain ID:** 0x32
- **Public RPC URL:** `https://erpc.xinfin.network`
- **Display Name:** XDC Network Mainnet
- **Block Explorer Link:** `https://xdcscan.io`
- **Ticker:** XDC
- **Ticker Name:** XDC Network

</TabItem>

<TabItem value="apothem">

- **Chain ID:** 0x33
- **Public RPC URL:** `https://rpc.apothem.network`
- **Display Name:** XDC Apothem Network
- **Block Explorer Link:** `https://apothem.xdcscan.io`
- **Ticker:** XDC
- **Ticker Name:** XDC Network

</TabItem>

<TabItem value="devnet">

- **Chain ID:** 0x227
- **Public RPC URL:** `https://devnetstats.apothem.network/devnet`
- **Display Name:** XDC Network Devnet
- **Block Explorer Link:** `https://devnet.xdcscan.io`
- **Ticker:** XDC
- **Ticker Name:** XDC Network

</TabItem>
</Tabs>

## Prerequisites

- Project is set up in the MetaMask Developer Dashboard
- Web3Auth is [integrated in your iOS app](/embedded-wallets/sdk/ios/)

## Installation

<InstallationSnippet />

## Initialize

<InitialisationSnippet />

## Get account

<GetAccountSnippet />

## Get balance

<GetBalanceSnippet />

## Sign a message

<SignMessageSnippet />

## Send transaction

<SendTransactionSnippet />
