> For the complete documentation index, see [llms.txt](https://docs.galactica.com/galactica-developer-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.galactica.com/galactica-developer-documentation/building-a-galactica-dapp/front-end.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
