From 81397b6674f90f556f0e356670b76b7d07e73cdb Mon Sep 17 00:00:00 2001 From: Javad Date: Sat, 13 Apr 2024 21:33:48 +0330 Subject: [PATCH] feat: add total supply and staked API --- content/docs/apiEndpoints/blockchain.md | 90 +++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/content/docs/apiEndpoints/blockchain.md b/content/docs/apiEndpoints/blockchain.md index aade660..b2aec57 100644 --- a/content/docs/apiEndpoints/blockchain.md +++ b/content/docs/apiEndpoints/blockchain.md @@ -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 >}} \ No newline at end of file