# Front End

## Wallet integration

In general, every EVM compatible wallet can interact with Galactica. We recommend to focus on Metamask because Galactica provides the Galactica Snap for additional wallet features required to utilize the full potential. This allows DApps to require compliance proofs from users while giving them zero-knowledge privacy and self custody over self sovereign identity documents.

Read [Galactica Snap for Metamask](/galactica-developer-documentation/galactica-components/galactica-snap-for-metamask.md) for details.

To integrate the Galactica snap, you can use  the [requestSnaps call](https://docs.metamask.io/guide/snaps-rpc-api.html#unrestricted-methods) passing the snapId `npm:@galactica-net/snap`.

The package [`@galactica-net/snap-api`](https://www.npmjs.com/package/@galactica-net/snap-api) provides simple to use methods to integrate in the front-end.

General RPC functions for EVM are documented [here](https://docs.metamask.io/wallet/category/reference). RPC functions specific to the Galactica Snap can be found in [Galactica Snap JSON-RPC API](/galactica-developer-documentation/building-a-galactica-dapp/front-end/galactica-snap-json-rpc-api.md).

You can also take a look our guide to the example front-end on the following sub-pages.\
The code for it can be found [here](https://github.com/Galactica-corp/galactica-snap) under `packages/galactica-dapp`.

### Chain selection

To interact with Galactica, the RPC endpoint defined here can be used in the wallet: [DevNet: Andromeda](/galactica-developer-documentation/devnet-andromeda.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.galactica.com/galactica-developer-documentation/building-a-galactica-dapp/front-end.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
