# Base API

<mark style="color:blue;">`GET`</mark> `https://api2.chainge.finance/fun/getBalance`

#### Query Parameters

| Name                                      | Type   | Description  |
| ----------------------------------------- | ------ | ------------ |
| ticker<mark style="color:red;">\*</mark>  | String | krc20 ticker |
| address<mark style="color:red;">\*</mark> | String | User address |

{% tabs %}
{% tab title="200:OK" %}

```json
{
    "code": 0,
    "msg": "success",
    "data": {
        "balance": "574614762",
        "hrpBalance": "5.74614762"
    }
}
```

{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `https://api2.chainge.finance/fun/getPrice`

#### Query Parameters

| Name                                     | Type   | Description  |
| ---------------------------------------- | ------ | ------------ |
| ticker<mark style="color:red;">\*</mark> | String | krc20 ticker |

{% tabs %}
{% tab title="200:OK" %}

```json
{
    "code": 0,
    "msg": "success",
    "data": {
        "price": "0.1146347503953139",
        "updateTime": 1737882838,
        "source": "chaingedex"
    }
}
```

{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `https://api2.chainge.finance/fun/getKasFee`

{% tabs %}
{% tab title="200:OK" %}

```json
{
    "code": 0,
    "msg": "success",
    "data": {
        "priorityFee": "10000000",
        "normalFee": "10000000",
        "timeStamp": 1737882952
    }
}
```

{% endtab %}
{% endtabs %}
