-
Notifications
You must be signed in to change notification settings - Fork 2
FAQ
Here are some frequently asked questions about MinaPortal and its usage:
MetaMask Snaps is a system that enables the expansion of MetaMask capabilities through isolated programs called snaps.
MinaPortal is a demo project designed to allow users to interact with the Mina protocol using the mina-portal snap
implementation of MetaMask Snaps.
The mina-portal snap
is a snap which allows MetaMask users to interact with the Mina Protocol.
The zkApp will have a connect button that calls the 'wallet_requestSnaps' method. Once the user clicks the button, an install prompt appears on Metamask. This is how the method gets triggered.
ethereum.request({
method: 'wallet_requestSnaps',
params: { “npm:mina-portal": { version: `^${version}` } }
})
The user will need to accept all permissions that the snap requires and then the MinaPortal will be available.
To use MinaPortal’s features, call the 'wallet_invokeSnap' method with the following parameters. Replace the ‘snapMethodName’ with the methods here.
ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: “npm:mina-portal”,
request: { method: `${snapMethodName}`, },
},
})
You can find all these mina-portal snap
features in the ‘Methods’ section of the package here. (Take note that you can only send zkApp transactions on the Berkeley testnet at the moment)
Click on the picture below to watch a demo video showing how a user can switch networks and send tokens.
This mina-portal snap
does not store your private keys on any servers. All your keys are derived and managed in the Metamask extension.
This is the live Mina blockchain. The MinaPortal can connect to this network and send Mina tokens to other accounts. This network does not currently support zkApps.
This is the test Mina blockchain which supports zkApps.
zkApps (zero knowledge apps) are Mina Protocol smart contracts powered by zero knowledge proofs, specifically using zk-SNARKs. zkApps generate proofs on the client which are then verified on-chain. This allows for private computation and state that can be either private or public.
Go to https://minaportal.sotatek.works/ in your chrome browser and click the "Connect To MetaMask" button.
Click on the picture below to watch a demo video showing how a user can connect the MinaPortal to MetaMask.
You can recover your funds if you have saved the private key generated by the snap (you can get that key by using the export private key function in the portal site) and import that key into another wallet like the Auro wallet. You will then be able to access your account again.
- If you find a bug in our MinaPortal, you can open an issue in our github repository, we will try to resolve it.
- MinaPortal community email support: devrel@minafoundation.com
- MinaPortal Community Discord: https://discord.com/channels/484437221055922177/1145999516558958592