Get total STX supply in plain text format

Retrieves the total STX supply as plain text.

GET
/extended/v1/stx_supply/total/plain

Response Body

Default Response

TypeScript Definitions

Use the response body type in TypeScript.

content?unknown

Default Response

TypeScript Definitions

Use the response body type in TypeScript.

errorstring
message?string
[key: string]any
curl -X GET "https://api.hiro.so//extended/v1/stx_supply/total/plain"
fetch("https://api.hiro.so//extended/v1/stx_supply/total/plain")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.hiro.so//extended/v1/stx_supply/total/plain"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.hiro.so//extended/v1/stx_supply/total/plain"

response = requests.request("GET", url)

print(response.text)
{
  "content": null
}
{
  "error": "string",
  "message": "string"
}