Skip to content

Commit

Permalink
feat: add total supply and staked API
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Apr 13, 2024
1 parent eb6612f commit 81397b6
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions content/docs/apiEndpoints/blockchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,94 @@ GET https://api.pacviewer.com/v1/fully_diluted_valuation
```
{{< /tab >}}

{{< /tabs >}}

### Get Total Supply
{{< hextra/hero-badge >}} {{< icon name="code" attributes="height=14" >}} Free, No Auth {{< /hextra/hero-badge >}}

Return Total supply.

```
GET https://api.pacviewer.com/v1/total_supply
```

{{< tabs items="Request, Response" >}}
{{< tab >}}
**Query Params**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|


**Headers**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|

**Body**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|

{{< /tab >}}
{{< tab >}}

**Status OK 200**

```json
{
"status": 200,
"message": "OK",
"data": {
"value": 928141.81715999
}
}
```
{{< /tab >}}

{{< /tabs >}}

### Get Total Staked
{{< hextra/hero-badge >}} {{< icon name="code" attributes="height=14" >}} Free, No Auth {{< /hextra/hero-badge >}}

Return Total staked.

```
GET https://api.pacviewer.com/v1/total_staked
```

{{< tabs items="Request, Response" >}}
{{< tab >}}
**Query Params**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|


**Headers**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|

**Body**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|

{{< /tab >}}
{{< tab >}}

**Status OK 200**

```json
{
"status": 200,
"message": "OK",
"data": {
"value": 700059.365163147
}
}
```
{{< /tab >}}

{{< /tabs >}}

0 comments on commit 81397b6

Please sign in to comment.