Skip to main content

Initialization

Create an instance with a WalletConfig object to customize.

[System.Serializable]
public class WalletConfig
{
public enum Environment
{
testnet, mainnet,
}

public enum ChainType
{
polygon, bsc, rangers,
}

public enum Theme
{
dark, light,
}

public enum ConnectType
{
both, google, email
}

// for polygon mumbai
// chainType: "polygon",
public string nodeRPC = "https://node.wallet.unipass.id/polygon-mumbai";

// for eth testnet
// chainType: "eth",
// public string nodeRPC = "https://node.wallet.unipass.id/eth-goerli",

// for bsc testnet
// chainType: "bsc",
// public string nodeRPC = "https://node.wallet.unipass.id/bsc-testnet",

// for rangers robin
// chainType: "rangers",
// public string nodeRPC = "https://node.wallet.unipass.id/rangers-robin",

public string appIcon = "";

public ChainType chainType = ChainType.polygon;

public string domain = "testnet.wallet.unipass.id";

public string protocol = "https";

public Environment env = Environment.testnet;

public string appName = "";

public Theme theme = Theme.dark;

public bool returnEmail = false;
}

Code sample

public Wallet wallet;

Unity Setup