Unity(Beta)

CROSSx Unity SDK

C# SDK for OAuth authentication, wallet signing/sending, and EVM RPC access in Unity games.

What you can do

  • Authenticate users with OAuth (Google / Apple) via platform-native browser
  • Restore/refresh session state (InitializeAsync, EnsureLoggedInAsync)
  • Create wallet, get addresses
  • Sign message / typed data / transaction via SDK confirmation UI
  • Send transaction and wait for receipt
  • Use RPC helpers (WalletRpcAsync, GetBalanceAsync, GetNonceAsync)

Quick start path

  1. Getting Started Install SDK, configure deep link scheme, create CROSSxSDK.
  2. Authentication Implement OAuth sign-in, callback handling, and session lifecycle.
  3. Wallet Integrate sign/send and receipt polling flows.
  4. WebGL Platform-specific notes for WebGL builds.
  5. API Reference Check full signatures and object details.

Minimum integration example

var config = new SDKConfig
{
    ProjectId = "YOUR_PROJECT_ID",
    OAuthServerUrl = "https://dev-cross-wallet-oauth.crosstoken.io",
    AuthApiUrl = "https://dev-cross-auth.crosstoken.io",
    EmbeddedWalletGatewayUrl = "https://dev-embedded-wallet-gateway.crosstoken.io/api/v1"
};

var sdk = CROSSxSDKFactory.Create(config);
await sdk.InitializeAsync();

Platform support

PlatformOAuth method
AndroidChrome Custom Tabs
iOSASWebAuthenticationSession
WindowsDefault browser (Application.OpenURL)
WebGLNot yet supported in SDK

Notes

  • Chain routing is explicit for wallet/RPC flows (chainId required where applicable, use eip155:<number> such as eip155:612044).
  • WalletRpcAsync is call/read oriented (for example eth_call), not transaction sign/send.
  • The SDK uses UI Toolkit for confirmation modals (sign, wallet found, PIN input).

© 2025 NEXUS Co., Ltd. All Rights Reserved.