We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So I've got
var sessionData = await connectData.Approval;
How do I get the account that approved?
The text was updated successfully, but these errors were encountered:
This is my code but it might be different for you. Change WALLETCONNECT_MULTIVERSX_NAMESPACE with your chainID then debug the code
WALLETCONNECT_MULTIVERSX_NAMESPACE
_walletConnectSession = await _walletConnect.Approval; var selectedNamespace = _walletConnectSession.Namespaces[WALLETCONNECT_MULTIVERSX_NAMESPACE]; if (selectedNamespace != null && selectedNamespace.Accounts.Length > 0) { var currentSession = selectedNamespace.Accounts[0]; var parameters = currentSession.Split(':'); Address = parameters[2]; }
Sorry, something went wrong.
Thank you so much! I got it working with this for my namespace:
var selectedNamespace = sessionData.Namespaces["eip155"]; if (selectedNamespace != null && selectedNamespace.Accounts.Length > 0) { var currentSession = selectedNamespace.Accounts[0]; var parameters = currentSession.Split(':'); accountAddress = parameters[2]; }
No branches or pull requests
So I've got
How do I get the account that approved?
The text was updated successfully, but these errors were encountered: