MetaMask Snaps Bogota Guide #821
Replies: 7 comments 26 replies
-
Hello, I am getting below error from 'wallet_getSnaps' A handler for SnapController:getPermittedSnaps has not been registered Can you please advise |
Beta Was this translation helpful? Give feedback.
-
Using snaps, can we change the account displayed on metamask UI? |
Beta Was this translation helpful? Give feedback.
-
Also how can we get access to Metamask EOA account private key if possible?? I know we can request metamask to sign messages but if we are able to request permission to access the private key stored in meatmask storage, we'd be able to sign messages without showing any popup to the user. I came across this snap https://github.com/MetaMask/snap-examples/blob/main/examples/bls-signer/index.js where its requesting the "snap_getAppKey" method to get metamask EOA private key but this method is not working in latest build. |
Beta Was this translation helpful? Give feedback.
-
How to let snap code know that metamask EOA has been changed?
But it doesn't seem to be working. Any solution to this? |
Beta Was this translation helpful? Give feedback.
-
I'm building a smart contract wallet so very interested in the keyrings feature. Is there any public example you can point me to? I'm reading the docs and have a vague understanding on how to use it but I generally learn a lot faster by seeing working examples. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
I've configured this permission to get network access |
Beta Was this translation helpful? Give feedback.
-
Hey! I'm seeing |
Beta Was this translation helpful? Give feedback.
-
MetaMask Snaps Bogota Guide
We have some features specifically for Devcon 2022. Here’s how you can get started using them.
Installing Flask
chrome://extensions
in a new tab.New features only in this build
Keyrings
Keyrings allow you integrate custom blockchains and protocols in a way that's transparent both to the user and the dapp.
Example
Manifest
Extend the manifest with support for Keyrings. The
eip155
namespace means that the chain is EVM-compatible. Theeip155:5
chain is the Görli testnet.Dapp
Connect to the wallet using the new MultiChainProvider. It seamlessly matches the dapp to a snap that implements the required behavior.
Snap
Export a new object that implements a connection to the Keyring API.
TX Insights
Transaction insights allows you to add a new tab to the MetaMask pre-transaction screen that shows additional information about the user's transaction.
Example
Manifest
Extend your manifest to notify MetaMask that your snap supports insights.
Snap
Expose a handler that will be called when the user views your snap's tab in the pre-transaction confirmation window. Return a key-value
insights
object which will be displayed in your tab.Beta Was this translation helpful? Give feedback.
All reactions