> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usexfg.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Aliases API

> Resolve on-chain aliases to Fuego addresses and perform reverse lookups.

## POST /get\_alias

Resolves an alias to a Fuego address.

**Request:**

```json theme={"dark"}
{
  "alias": "alice"
}
```

The `@` prefix is optional — both `"alice"` and `"@alice"` resolve the same way.

**Response (found):**

```json theme={"dark"}
{
  "found": true,
  "alias": "alice",
  "address": "fireVHx639SLMhzmBoJ8drTXbVyv2eRG6A8aMLc1taTiRNwk8pnwXpBDUSjH1dT5fg7yVVZrKkvm31CmigAMdVDg7sgxJmAUNp",
  "status": "OK"
}
```

**Response (not found):**

```json theme={"dark"}
{
  "found": false,
  "alias": "alice",
  "address": "",
  "status": "OK"
}
```

Check `found` before using `address`. A `found: false` response with `status: "OK"` means the alias does not exist on-chain — it is not an error.

***

## POST /get\_alias\_by\_address

Reverse lookup: find the alias registered for a given address.

**Request:**

```json theme={"dark"}
{
  "address": "fireVHx639SLMhzmBoJ8drTXbVyv2eRG6A8aMLc1taTiRNwk8pnwXpBDUSjH1dT5fg7yVVZrKkvm31CmigAMdVDg7sgxJmAUNp"
}
```

**Response (found):**

```json theme={"dark"}
{
  "found": true,
  "alias": "alice",
  "address": "fireVHx...",
  "status": "OK"
}
```

***

## GET /get\_all\_aliases

Returns all registered aliases. Use sparingly — on a large network this can be a large response.

**Request:** `{}`

**Response:**

```json theme={"dark"}
{
  "aliases": [
    {
      "alias": "alice",
      "address": "fireVHx..."
    }
  ],
  "status": "OK"
}
```

***

## Privacy note

Alias registration and transfer data are public chain data. The AliasIndex also stores the address hash (`cn_fast_hash(spendKey||viewKey)`) for ownership checks, but that hash does not conceal the address when an RPC response or transaction extra contains it.

* `/get_all_aliases` returns every alias and its recorded address.
* `/get_alias` returns the recorded address for one alias.
* `/get_alias_by_address` returns the alias and recorded address for a given address.

These endpoints are enumerable while the daemon's RPC endpoint is reachable. The alias handlers do not block access in restricted RPC mode. Do not treat alias resolution as private; registration subaddresses and both old and new transfer addresses are visible in public transaction extras.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.