# 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&#x26;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&#x26;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 %}


---

# 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://piotreq-scripts.gitbook.io/piotreq-scripts/assets-and-guides/phone/crypto.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.
