Document timestamp
curl --request GET \
--url https://app.blockgence.com/v1/evidence/timestamp/{name}import requests
url = "https://app.blockgence.com/v1/evidence/timestamp/{name}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.blockgence.com/v1/evidence/timestamp/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.blockgence.com/v1/evidence/timestamp/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/evidence/timestamp/{name}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.blockgence.com/v1/evidence/timestamp/{name}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/evidence/timestamp/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Evidence
Document timestamp
Returns the OpenTimestamps proof of a document sealed by this service, or its status. No API key required.
- With
.otsat the end of the name, it returns the proof file as an attachment (application/vnd.opentimestamps.v1), with theX-OTS-Statusheader:pendingorcomplete. - Without
.ots, it returns the status as JSON:digest,status, the Bitcoin blocks that anchor the proof with theirmerkle_root, the calendars, the request and confirmation dates, the download link, what it proves and what it does not, and the steps to verify it.
A pending proof is completed when queried, at most once every 10 minutes per document. A complete proof can be cached for 1 day.
Errors: a name that is not a hexadecimal sha256 returns 400; a document this service did not seal returns
404.
GET
/
v1
/
evidence
/
timestamp
/
{name}
Document timestamp
curl --request GET \
--url https://app.blockgence.com/v1/evidence/timestamp/{name}import requests
url = "https://app.blockgence.com/v1/evidence/timestamp/{name}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.blockgence.com/v1/evidence/timestamp/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.blockgence.com/v1/evidence/timestamp/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/evidence/timestamp/{name}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.blockgence.com/v1/evidence/timestamp/{name}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/evidence/timestamp/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}