Get inscription count per block
Retrieves statistics on the number of inscriptions revealed per block.
Query Parameters
from_block_height?Block Height
Bitcoin block height
Pattern
"^[0-9]+$"
to_block_height?Block Height
Bitcoin block height
Pattern
"^[0-9]+$"
Response Body
Default Response
TypeScript Definitions
Use the response body type in TypeScript.
resultsarray<object>
Default Response
TypeScript Definitions
Use the response body type in TypeScript.
errorstring
Value in
"Not found"
curl -X GET "https://api.hiro.so//ordinals/v1/stats/inscriptions?from_block_height=777678&to_block_height=777678"
fetch("https://api.hiro.so//ordinals/v1/stats/inscriptions?from_block_height=777678&to_block_height=777678")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.hiro.so//ordinals/v1/stats/inscriptions?from_block_height=777678&to_block_height=777678"
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//ordinals/v1/stats/inscriptions?from_block_height=777678&to_block_height=777678"
response = requests.request("GET", url)
print(response.text)
{
"results": [
{
"block_height": "778921",
"block_hash": "0000000000000000000452773967cdd62297137cdaf79950c5e8bb0c62075133",
"inscription_count": "100",
"inscription_count_accum": "3100",
"timestamp": 1677733170000
}
]
}
{
"error": "Not found"
}