Skip to content

Development Environments

TIP

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

When developing and testing your app, you would want to be using sandbox against devnet.

EnvironmentMoca ChainPurposeDeveloper Dashboard
StagingDevnetInternal Development only VPN requiredhttps://developers.staging.air3.com
SandboxDevnetFor development & testinghttps://developers.sandbox.air3.com
ProductionTestnet Until mainet is availableFor production appshttps://developers.air3.com

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.

Initializing AirService with the correct Environment

js
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
});

Chains

ChainChain IDRPCExplorer
Devnet5151https://devnet-rpc.mocachain.orghttps://devnet-scan.mocachain.org
Testnet222888https://testnet-rpc.mocachain.orghttps://testnet-scan.mocachain.org
Mainnet2288coming sooncoming soon