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

# Development Environments

> Switch between AIR Kit Sandbox and Production environments — Sandbox defaults to Moca Chain Testnet starting with AirKit 1.8.0-beta.

<Warning>
  **Breaking Change: Sandbox Now Defaults to Testnet**

  Starting with **AirKit 1.8.0-beta**, the Sandbox environment defaults to **Moca Chain Testnet**.
</Warning>

<Tip>
  Make sure you're selecting the correct chain when using different build environment. Otherwise, your app may hit unexpected errors
</Tip>

| Environment       | Moca Chain | Purpose                   | Developer Dashboard                                                                            |
| ----------------- | ---------- | ------------------------- | ---------------------------------------------------------------------------------------------- |
| Sandbox (Testnet) | Testnet    | For development & testing | [https://developers.sandbox.air3.com/dashboard](https://developers.sandbox.air3.com/dashboard) |

> Once Mainnet is available, Production credentials will be validated against Mainnet and hence previously issued credentials on Testnet will need to be re-issued. Issuance Schemas and Programs *may* be migrated. Your Issuer and Verifier DID may also change.

## Sandbox Environment Changes

Starting with **AirKit 1.8.0-beta**, the Sandbox environment defaults to **Moca Chain Testnet** instead of Devnet. Both Testnet and Devnet remain available for development, with Testnet being the recommended choice to align with Production.

### What's Changed

| Before (\< 1.8.0)                                                                     | After (1.8.0-beta+)                                                                   |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Sandbox → Devnet (Chain ID: 5151)                                                     | Sandbox → Testnet (Chain ID: 222888)                                                  |
| Dashboard: [https://developers.sandbox.air3.com](https://developers.sandbox.air3.com) | Dashboard: [https://developers.sandbox.air3.com](https://developers.sandbox.air3.com) |

### Impact

* Credentials issued on Devnet are **not** available on Testnet
* Smart Account addresses remain the same across networks
* You will need to re-issue test credentials on Testnet

<Tip>
  We recommend migrating to Testnet as soon as possible to align with production.
</Tip>

### Initializing AirService with the correct Environment

<Tabs>
  <Tab title="Web">
    ```js theme={null}
    import { AirService, BUILD_ENV } from "@mocanetwork/airkit";

    const airService = new AirService({
      partnerId: YOUR_PARTNER_ID
    });
    await airService.init({
      buildEnv: BUILD_ENV.SANDBOX, // BUILD_ENV.PRODUCTION
      enableLogging: true
    });
    ```
  </Tab>

  <Tab title="Flutter">
    ```dart theme={null}
    Future<void> initialize({
      YOUR_PARTNER_ID,
      navigatorKey,
      Environment.sandbox, // Environment.production
      true,
    })
    ```
  </Tab>
</Tabs>

## Chains

| Chain   | Chain ID | RPC                                                                    | Explorer                                                                 |
| ------- | -------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Testnet | 222888   | [https://testnet-rpc.mocachain.org](https://testnet-rpc.mocachain.org) | [https://testnet-scan.mocachain.org](https://testnet-scan.mocachain.org) |
| Mainnet | 2288     | `coming soon`                                                          | `coming soon`                                                            |
