Get Masterchain Block Signatures
curl --request GET \
--url https://toncenter.com/api/v2/getMasterchainBlockSignaturesimport requests
url = "https://toncenter.com/api/v2/getMasterchainBlockSignatures"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://toncenter.com/api/v2/getMasterchainBlockSignatures', 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://toncenter.com/api/v2/getMasterchainBlockSignatures",
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://toncenter.com/api/v2/getMasterchainBlockSignatures"
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://toncenter.com/api/v2/getMasterchainBlockSignatures")
.asString();require 'uri'
require 'net/http'
url = URI("https://toncenter.com/api/v2/getMasterchainBlockSignatures")
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{
"ok": true,
"result": {
"@type": "blocks.blockSignatures",
"id": {
"@type": "ton.blockIdExt",
"workchain": -1,
"shard": "-9223372036854775808",
"seqno": 51148806,
"root_hash": "I/+MoS7TB7Zuw+g5QH3bPBFMcM5Wf4h1Coig3g2osFQ=",
"file_hash": "BhPAjDTVPDqH8z6DLq9jAjZiZiiIUQW/f667jJgfoyw="
},
"signatures": [
{
"@type": "blocks.signature",
"node_id_short": "axRYlEuV/4Fo94EbDtfpEnqJukpAsNNgmZqQz7e01ew=",
"signature": "xTBbMLBnJau/VxzOln6jW2zwIMx4WY/+hO3IWwqklNnAAzvYY2X/pqutkJNj5E1f4BjKp84sukuTErS0fFZUAA=="
}
],
"@extra": "1755813145.584844:11:0.877388442408124"
}
}Blocks
Get Masterchain Block Signatures
Get up-to-date masterchain state.
GET
/
getMasterchainBlockSignatures
Get Masterchain Block Signatures
curl --request GET \
--url https://toncenter.com/api/v2/getMasterchainBlockSignaturesimport requests
url = "https://toncenter.com/api/v2/getMasterchainBlockSignatures"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://toncenter.com/api/v2/getMasterchainBlockSignatures', 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://toncenter.com/api/v2/getMasterchainBlockSignatures",
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://toncenter.com/api/v2/getMasterchainBlockSignatures"
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://toncenter.com/api/v2/getMasterchainBlockSignatures")
.asString();require 'uri'
require 'net/http'
url = URI("https://toncenter.com/api/v2/getMasterchainBlockSignatures")
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{
"ok": true,
"result": {
"@type": "blocks.blockSignatures",
"id": {
"@type": "ton.blockIdExt",
"workchain": -1,
"shard": "-9223372036854775808",
"seqno": 51148806,
"root_hash": "I/+MoS7TB7Zuw+g5QH3bPBFMcM5Wf4h1Coig3g2osFQ=",
"file_hash": "BhPAjDTVPDqH8z6DLq9jAjZiZiiIUQW/f667jJgfoyw="
},
"signatures": [
{
"@type": "blocks.signature",
"node_id_short": "axRYlEuV/4Fo94EbDtfpEnqJukpAsNNgmZqQz7e01ew=",
"signature": "xTBbMLBnJau/VxzOln6jW2zwIMx4WY/+hO3IWwqklNnAAzvYY2X/pqutkJNj5E1f4BjKp84sukuTErS0fFZUAA=="
}
],
"@extra": "1755813145.584844:11:0.877388442408124"
}
}⌘I

