Skip to main content

registerMoonGateWallet

Registers a new Moongate wallet adapter with the specified configuration.
function registerMoonGateWallet(config: MoongateWalletConfig): void

Parameters

ParameterTypeRequiredDefaultDescription
configMoongateWalletConfigYes-Configuration object for the wallet

MoongateWalletConfig

interface MoongateWalletConfig {
  authMode: 'Google' | 'Apple' | 'Ethereum' | 'Twitter';
  logoDataUri?: string;
  position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
  buttonLogoUri?: string;
  environment?: 'production' | 'staging' | 'development';
  displayState?: 'fullscreen' | 'minimized' | 'hidden';
}

Example

import { registerMoonGateWallet } from '@moongate/moongate-adapter';

registerMoonGateWallet({
  authMode: 'Google',
  environment: 'production',
  position: 'top-right',
  displayState: 'fullscreen'
});

🆘 Need Help?

I