# Mnemonic

An essential aspect of regulatory compliance of our Blockchain as a service infrastructure is to keep wallets non-custodial. Users are interacting with their very own keys and we only store those fragments that enable them to unlock them for transaction processing purposes.

#### Mnemonic Phrase

As a non-custodial wallet, users are responsible for backing up their keys. The mnemonic phrase function returns the 12 word backup seed-phrase of the wallet selected.&#x20;

```javascript
var parameters = {
    serviceId: 'optional',
    walletID: 'optional',
}
const response = await relysia.wallet.v1.mnemonic(parameters);
```

## Get your mnemonic phrase.

<mark style="color:blue;">`GET`</mark> `https://api.relysia.com/v1/mnemonic`

The mnemonic phrase secures your wallet keys. Each mnemonic acts as seed of a HDPrivatekey that itself contains hundrets of PrivateKeys.

#### Headers

| Name     | Type   | Description |
| -------- | ------ | ----------- |
| walletID | string |             |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "statusCode": 200,
  "data": {
    "status": "success",
    "msg": "Operation completed successfully",
    "mnemonic": "Trades Extend Steps Then Degrees Entice Melodious Organs keen pattern disorder vintage"
  }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Make sure you backup your mnemonic phrase and never share it with anyone.
{% endhint %}

### Retrieve Funds

The mnemonic phrase is the seed for a HDPrivateKey with millions of potential addresses. You can extract your funds from the **M/44/0/0/{1,2,3...}** path. First transactions will always go to the first addresses and their corresponding private keys, while over time, to prevent address re-usage for privacy reasons we use a larger and larger address space. Nonetheless, knowing the order of writings, you can recover all funds without Relysia.&#x20;

{% hint style="success" %}
If you want to learn more about manually extracting funds, we got you covered.&#x20;

Visit the [Satolearn.com](https://satolearn.com) platform to learn more about bitcoin coding.&#x20;
{% endhint %}


---

# 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.relysia.com/wallets/mnemonic.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.
