Replies: 1 comment 3 replies
-
Hi @javaspeak , if you have the permission https://docs.metamask.io/snaps/reference/permissions/#dynamic-permissions The only thing is you can't intercept transactions right now and you can't request accounts from a transaction insight entrypoint. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can a snap:
(i) get the wallet address
(ii) sign some text
(iii) send that signed text and address to an external api to login to that api?
If yes where do I find the API for that - currently cannot find that functionality in these docs:
My work around would be to get the dapp to get the address and sign the text and then pass the address and signature to the snap with a rpc call. The snap could then pass this info to the api so that it can get some trust info on the "to" address of the transaction.
The idea is this snap intercepts a transaction and warns the user if some people of the user's network have reported an issue for the contract "to" address in the past.
Any help / advice much appreciated and thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions