# ERIP-6

```javascript
from: your wallet 
to: seller wallet 
value: sell price


interface Buy{
   p: string;
   op: string;
   tx: string;
}




```

<pre class="language-json"><code class="lang-json"><strong>//Example :
</strong>{
   "p": "era-20",
   "op": "buy",
   "tx": "7c0815f5b366e3d254fd9dfedf791e937512cd706bb8cf94f732c2616ebd8386",
}




</code></pre>

To list a token, the wallet must create an inscription transaction in accordance with the Buy interface .&#x20;

{% hint style="danger" %}
The amount sent (value) must be higher or equal to the price in the List inscripton code. Otherwise the transaction is considered failed.
{% endhint %}

{% hint style="danger" %}
In order for the protocol to work in a decentralized and free manner, the data is stored entirely on the blockchain. In buy operations, it is necessary to check whether a buy has been made before. If more than one buy operator is triggered for the same listing, the first incoming record is accepted. The values sent in subsequent requests cannot be reversed.
{% endhint %}

```javascript
// Types
"p" => Protocol
"op" => Operation
"tx" => List Transaction Id

```
