> For the complete documentation index, see [llms.txt](https://piotreq-scripts.gitbook.io/piotreq-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://piotreq-scripts.gitbook.io/piotreq-scripts/assets-and-guides/phone/crypto.md).

# CRYPTO

1. Adding new crypto currency (ESX)

You need first to add new account in your es\_extended config like below

<figure><img src="https://3808595786-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWtp2CzACAMvuPWbeJ3cy%2Fuploads%2Fi4p99lZ0wNRBD4lpL6FG%2Fimage.png?alt=media&amp;token=1517eb92-12a7-48cc-a598-3a6379831ef4" alt="" width="563"><figcaption><p>Example</p></figcaption></figure>

When you add new account, go to crypto config and add this account here

<figure><img src="https://3808595786-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWtp2CzACAMvuPWbeJ3cy%2Fuploads%2FgIQEWaEVkxAmLogGbneE%2Fimage.png?alt=media&amp;token=a8caa1d3-8cf9-4fec-ab88-377b10368ca4" alt="" width="563"><figcaption><p>Example</p></figcaption></figure>

2. Adding crypto history

{% tabs %}
{% tab title="Server Side" %}

* sender `string`
* receiver? `string`
* amount `number`
* crypto `string`

```lua
exports['piotreq_phone']:AddCryptoHistory(sender, receiver, amount, crypto)

-- Example
exports['piotreq_phone']:AddCryptoHistory('000001', '000002', 10, 'sultanium')
```

{% endtab %}
{% endtabs %}
