Get Nakamoto tenure blocks

RPC node

Fetch a sequence of Nakamoto blocks in a tenure.


GET
/v3/tenures/{block_id}

Path Parameters

block_idstring

The tenure-start block ID of the tenure to query

Query Parameters

stop?string

The block ID hash of the highest block in this tenure that is already known to the caller. Neither the corresponding block nor any of its ancestors will be served. This is used to fetch tenure blocks that the caller does not have.

Response Body

curl -X GET "http://localhost:20443/v3/tenures/string?stop=string"
fetch("http://localhost:20443/v3/tenures/string?stop=string")
package main

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

func main() {
  url := "http://localhost:20443/v3/tenures/string?stop=string"

  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 = "http://localhost:20443/v3/tenures/string?stop=string"

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

print(response.text)
"string"