> ## Documentation Index
> Fetch the complete documentation index at: https://gasdocs-en.gasstation.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

## I. Common Request Parameters

| Param | Description |
| :- | - |
| domain | Production domain name ([https://openapi.gasstation.ai/](https://openapi.gasstation.ai/) ),Not supported in the test environment |
| app\_id: | Please create the API first, then retrieve it |
| secrect: | Please create the API first, then retrieve it |

### AES Encryption Method

Operation Mode：ECB

Cryptography：PKCS7

Output Format: Base64 UrlSafe

## II. Interface Rules

| Param | Description |
| :- | - |
| Transmission Method: | https |
| Response Status Code: | `0` indicates processing `success`, non-0 indicates **request error** or **system exception** |
| Request Address: | Domain + Interface Address |
| Encryption Algorithm: | AES |

## III. Common Response Parameters

| Param | Type | Required | Description |
| :- | :- | :- | :- |
| app\_id | String | Required | Merchant unique identifier |
| data | String | Required | `Data in JSON format` Encrypted string; encrypted with the Client's AES key, specific encryption information is described in the `Request Parameter Data Structure` of each interface |

**Example Request Parameters：**
`{ "time": "1600128590"}`

**Encrypted data：**
`UJ3SABwJnabqiDf0WMSANU5L99g29LQDOcSsdTrUXXU=`

```curl cURL theme={null}
   curl -X POST \
   'https://openapi.gasstation.ai/api/tron/gas/balance?app_id=49e9c57da66788e5178c8fec2905067b&data=UJ3SABwJnabqiDf0WMSANU5L99g29LQDOcSsdTrUXXU='
```

### Response Parameter Format

| Param | Type | Required | Description |
| :- | :- | :- | :- |
| code | String | Yes | Status code, e.g., 100002 |
| msg | String | Yes | Explanation of the response result, e.g., Request parameter error |
| data | String | No | Specific response data; data structure defined in the `Response Parameter Data Structure` of each interface |

```json theme={null}
{
  "code": 0,
  "msg": "Success",
  "data": {
    "symbol": "trx",
    "balance": "92.4792050000000000"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.