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.
Environment | Moca Chain | Purpose | Developer Dashboard |
---|---|---|---|
Staging | Devnet | Internal Development only VPN required | https://developers.staging.air3.com |
Sandbox | Devnet | For development & testing | https://developers.sandbox.air3.com |
Production | Testnet Until mainet is available | For production apps | https://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
Chain | Chain ID | RPC | Explorer |
---|---|---|---|
Devnet | 5151 | https://devnet-rpc.mocachain.org | https://devnet-scan.mocachain.org |
Testnet | 222888 | https://testnet-rpc.mocachain.org | https://testnet-scan.mocachain.org |
Mainnet | 2288 | coming soon | coming soon |