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
- Getting Started
Install SDK, configure deep link scheme, create
CROSSxSDK. - Authentication Implement OAuth sign-in, callback handling, and session lifecycle.
- Wallet Integrate sign/send and receipt polling flows.
- WebGL Platform-specific notes for WebGL builds.
- 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
| Platform | OAuth method |
|---|---|
| Android | Chrome Custom Tabs |
| iOS | ASWebAuthenticationSession |
| Windows | Default browser (Application.OpenURL) |
| WebGL | Not yet supported in SDK |
Notes
- Chain routing is explicit for wallet/RPC flows (
chainIdrequired where applicable, useeip155:<number>such aseip155:612044). WalletRpcAsyncis call/read oriented (for exampleeth_call), not transaction sign/send.- The SDK uses UI Toolkit for confirmation modals (sign, wallet found, PIN input).
Updated about 12 hours ago