Skip to main content
Your app works with AIR Kit through one class, AirService. It handles login, smart accounts, and issuing and verifying credentials. This page lists every method and type in the Web and Flutter SDKs. To issue credentials from your server without the user presence, see the REST API Reference.

Platforms

Web SDK

npm package @mocanetwork/airkit. Browser-first; works in any JS framework.

Flutter SDK

OnePub package airkit. Native iOS and Android via platform channels.

Install

See Initialization for init options and environment selection.

Authentication

  • AIR Account login — the SDK runs the user flow and returns an access token. See User authentication.
  • Partner authentication (JWT) — your backend signs a Partner JWT with your private key for server-to-server calls. See Partner authentication.
Pick an environment per BUILD_ENV (SANDBOX or PRODUCTION). Production serves Moca Chain mainnet — see Production mainnet access.

AirService

claimAirId and the show*UI methods are experimental and may change in future releases.fieldsToDisclose is required for SD_JWT_VC verification programs; "*" discloses every field, and dotted paths such as address.city select nested fields. See Selective Disclosure. nonce is optional: pass a fresh value from your backend so that credentials with a holder key return a key-binding JWT. See Verify SD-JWT on your backend.

Types