XE Snap for MetaMask

XE accounts inside MetaMask. Set it up in MetaMask Flask, send and receive, and connect sites and XE apps.

The XE Snap ("XE Network") adds XE accounts to MetaMask, from the MetaMask wallet's own recovery phrase. Every payment and every site connection opens a MetaMask window before you approve.

It runs in MetaMask Flask, MetaMask's version for developers, until MetaMask has reviewed it. Try it without MetaMask in the simulation.

#Set it up

The steps, the files and their checksums are on the Snap's page. In short:

  1. Install MetaMask Flask in a separate browser profile, with a new wallet that holds no real funds.
  2. Download the Snap's files and serve them on your computer with node serve.mjs (Node 18 or newer; it listens on this computer only).
  3. Open the Snap's page in the Flask profile, enter local:http://127.0.0.1:8080 and press Connect.

MetaMask refuses a Snap whose files don't match its checksum.

#Use it

Your XE accounts are on the Snap's page in MetaMask: Menu, Snaps, XE Network. There you can:

  • see your balance on each network, copy your address, and send XE;
  • take in pending payments with Receive all;
  • switch network (XE Sim or the XE testnet) and account;
  • see the sites you've connected, and the sites you let keep an account's key, each with Stop.

Before any signature, MetaMask shows what you sign, read by the Snap from the block itself: the network, what it does, the payee, the amount, the memo, your balance afterwards and the account.

#With XE apps

Pick MetaMask when an XE app asks you to connect: XE AI Chat, XE Stake, XE Pay, XE Markets and the Web Wallet (as its key) all work with it.

For sites: ask MetaMask for the Snap with wallet_requestSnaps, then call xe_connect through wallet_invokeSnap. The methods are in the Snap's README.

#Limits

  • It can reach only your XE keys, not your Ethereum keys or any other network's.
  • There is no second phrase to keep: MetaMask's backup is your XE accounts' backup.
  • Flask is for developers. Use a new wallet with no real funds, as MetaMask asks.

#Troubleshooting

You seeWhat to do
MetaMask won't install itUse MetaMask Flask: regular MetaMask doesn't install local Snaps
The Snap's page can't connectCheck node serve.mjs is running, and that you entered local:http://127.0.0.1:8080
An XE app says your wallet can't do something yetServe the newest version of the Snap's files and connect again