# Wallet

This API suite covers wallet management (for cryptocurrency or blockchain applications) and a PRISM agent system that handles verification policies, schema registries, and event webhooks. The PRISM agent part relates to decentralized identity and credential management.

## Generate a new wallet mnemonic

<mark style="color:green;">`POST`</mark> `/api/v1/wallet/mnemonic`

\<Description of the endpoint>

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `None`             |

**Body**

**Response**

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

```json
{
    "data": {
        "mnemonic": "present reward chair dad achieve title pair issue pink rubber bitter chef smoke mutual fringe",
        "seed": "b33264248e04f9c5c9847128b0f35e7b34e026b7dc94d20945d05d04042b44453b832b39e651ae660ae31703409acfeb4f32c29ab423230fd50831af3c35493e"
    }
}
```

{% endtab %}
{% endtabs %}

## Retrieves wallet information based on a provided mnemonic

<mark style="color:green;">`GET`</mark> `/api/v1/wallet/{mnemonic}`

\<Description of the endpoint>

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `None`             |

**Body**

| Name     | Type   | Description                  |
| -------- | ------ | ---------------------------- |
| mnemonic | string | The wallet's mnemonic phrase |

**Response**

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

```json
{
    "data": {
        "addr": "addr_test1qqhr25v8d3gtxfvcu9p793hfhx3d2zkl7dkv9zl7yg84ctzm32sqdg9h5av4u7sey3x0psgdsa2utc78w6txhz4jfzdqtpqsjv",
        "private": "ed25519e_sk1szv82puuu0nhlz29wdwvjf6jshv0vkmaqkrre5vyg3dckjj5u9vpc52k5gscu7ls4xc0gkcpv43f4fjgrj7cz9p9dc3qmqy4x2uyz3ggedgad",
        "mnemonic": "present reward chair dad achieve title pair issue pink rubber bitter chef smoke mutual fringe",
        "seed": "b33264248e04f9c5c9847128b0f35e7b34e026b7dc94d20945d05d04042b44453b832b39e651ae660ae31703409acfeb4f32c29ab423230fd50831af3c35493e"
    }
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "data": null,
  "status": 400,
  "statusText": "Mnemonic required"
}
```

{% endtab %}
{% endtabs %}
