# LiquidStorage

## Get URI information

<mark style="color:green;">`POST`</mark> `https://api.dsp.io/v1/dsp/liquidstorag/get_uri`

Retrieve IPFS URI information

#### Request Body

| Name | Type   | Description |
| ---- | ------ | ----------- |
| uri  | string | IPFS uri    |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}

## Unpin IPFS hash

<mark style="color:green;">`POST`</mark> `https://api.dsp.io/v1/dsp/liquidstorag/unpin`

Unpin IPFS hash

#### Request Body

| Name      | Type   | Description           |
| --------- | ------ | --------------------- |
| uri       | string | IPFS hash ipfs\://... |
| contract  | string | contract account name |
| sidechain | string | sidechain name        |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}

## Upload Public

<mark style="color:green;">`POST`</mark> `https://api.dsp.io/v1/dsp/liquidstorag/upload_public`

Upload to LiquidStorage

#### Request Body

| Name      | Type   | Description      |
| --------- | ------ | ---------------- |
| data      | string | data             |
| archive   | string | archive          |
| contract  | string | contract account |
| options   | object | options          |
| sidechain | string | sidechain name   |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}

## Upload Public LiquidAccount

<mark style="color:green;">`POST`</mark> `https://api.dsp.io/v1/dsp/liquidstorag/upload_public_vaccount`

Upload to LiquidStorage using LiquidAccount

#### Request Body

| Name          | Type   | Description        |
| ------------- | ------ | ------------------ |
| data          | string | data               |
| archive       | string | archive            |
| hash          | string | hash               |
| hashSignature | string | hash signature     |
| vaccountName  | string | LiquidAccount name |
| contract      | string | contract account   |
| options       | object | options            |
| sidechain     | string | sidechain name     |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}
