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
This function initializes WalletConnect and start listening to the events.
Listen to events
Listen to connection event:
This event will be triggered when any dApp initiates a connection request.
Listen to dApp function calls:
This event will be triggered when any dApp initiates any function call
To execute the function calls,
Last updated