WalletConnect Controller
WalletConnect controller handles the connections and transactions with dapps.
Create an instance
const wcController = new WCController({
baseUrl,
walletType,
selectedChainName,
environment = "mainnet",
sessionSignatures,
currentAccount,
customAuthMethod,
accessToken,
sentryDns,
aa,
selectedWallet,
}: TriaArgs);
export type TriaArgs = {
baseUrl: string;
sentryDns?: string;
walletType?: WalletType;
selectedChainName?: ChainName;
environment?: ENV;
currentAccount?: IRelayPKP;
sessionSignatures?: string;
customAuthMethod?: LitCustomAuthMethod;
accessToken?: string;
aa?: AaDetails;
selectedWallet?: "EOA" | "AA";
};Initialize
Listen to events
Listen to connection event:
Listen to dApp function calls:
Last updated