Replies: 2 comments 2 replies
-
Maybe some proxy around |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @Arch0125. We are thinking of ways to support eth_requestAccounts from within a snap, but we are also working on an Accounts API which will likely solve the issue you are referring to. We plan to launch it in MetaMask Flask in a couple months. Please keep an eye on our SIPs repo for more news on this: https://github.com/metamask/sips |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@GuillaumeRx @Montoya
Expected Workflow of the Account Abstraction snap :
Assumptions : The pvt key is derived using the snap and signatures are not manually done by the EOA
-> User clicks on "Connect with MetaMask" button
-> Extension overrides and listens to 'eth_requestAccounts' rpc call and prompts user to use a AA wallet or not
-> If yes snap derives the pvt key/generates one and creates a AA wallet and connects to the dapp
The problem arises here is that theres no connector for the SCW account similar to what we have EOA here
-> Using the interceptor i could only return the address of SCW account to the provider through the interceptor but can't send transactions since its not actually "connected"
![Screenshot 2023-05-22 at 6 30 59 AM](https://private-user-images.githubusercontent.com/72722967/239778399-0ca5aced-0946-4cde-87e7-05ef0b65ad5f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzQ0ODMsIm5iZiI6MTczODk3NDE4MywicGF0aCI6Ii83MjcyMjk2Ny8yMzk3NzgzOTktMGNhNWFjZWQtMDk0Ni00Y2RlLTg3ZTctMDVlZjBiNjVhZDVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAwMjMwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmODc2YWQ4MTM3NTI1YzdjZTNlYjI0ZTAwNDQ1ZDE1ODdlMmJmMmYyZGE5ZGJjNTZlMTkwZWY4ZjhiNzEzNzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.vr-lwxKuPMsYuTt2P9sd2ENQ2w-Sco8jhcvraOACp9k)
So, is there a module/sdk which can be used to connect the account with dapp ?
Beta Was this translation helpful? Give feedback.
All reactions