# Conseils et astuces

## Comment obtenir le prix actuel du gas&#x20;

Pour obtenir le prix du gas sur Chiliz Chain, vous pouvez utiliser [l'un des nœuds RPC publics](https://docs.chiliz.com/develop/connect-to-chiliz-chain/connect-using-rpc).&#x20;

Vous pouvez demander le prix du gas comme suit :&#x20;

```bash
curl --location 'https://rpc.ankr.com/chiliz' 
--header 'Content-Type: application/json' 
--data '{ 
    "method": "eth_gasPrice", 
    "params": [], 
    "id": 1, 
    "jsonrpc": "2.0"
}'
```

## Comment vérifier pourquoi une transaction a échoué&#x20;

Une transaction peut échouer, et vous ne savez pas toujours pourquoi, surtout lorsque l'explorateur de blocs n'affiche pas l'erreur.&#x20;

{% hint style="warning" %}
Pour que votre transaction ne reste pas trop longtemps en attente, vous devez prévoir une somme suffisante pour couvrir les frais :&#x20;

* Frais d'essence minimum : 2 500 gwei.
* Frais de priorité minimum : 1 gwei.
  {% endhint %}

Pour vérifier pourquoi votre transaction a échoué, exécutez le script suivant dans le terminal avec l'ID de transaction correct :&#x20;

```bash
curl --location 'https://chiliz-rpc.publicnode.com' \
--header 'Content-Type: application/json' \
--data '{
    "method": "debug_traceTransaction",
    "params": [
        "[Transaction ID]",
        {
            "tracer": "callTracer"
        }
    ],
    "id": 1,
    "jsonrpc": "2.0"
}'


```


---

# 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://docs.chiliz.com/fr/developper/notions-de-base/conseils-et-astuces.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.
