curl --request GET \
--url https://api.mnemom.ai/v1/on-chain/status/{agent_id}import requests
url = "https://api.mnemom.ai/v1/on-chain/status/{agent_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.mnemom.ai/v1/on-chain/status/{agent_id}', 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://api.mnemom.ai/v1/on-chain/status/{agent_id}",
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://api.mnemom.ai/v1/on-chain/status/{agent_id}"
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://api.mnemom.ai/v1/on-chain/status/{agent_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/on-chain/status/{agent_id}")
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{
"agent_id": "<string>",
"latest_score_publication": {
"id": "<string>",
"score": 123,
"grade": "<string>",
"tx_hash": "<string>",
"block_number": 123,
"chain": "base-sepolia",
"status": "pending",
"published_at": "2023-11-07T05:31:56Z"
},
"latest_anchor": {
"id": "<string>",
"merkle_root": "<string>",
"tx_hash": "<string>",
"block_number": 123,
"leaf_count": 123,
"tree_depth": 123,
"gas_used": 123,
"chain": "base-sepolia",
"status": "pending",
"anchored_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"merkle_tree": {
"merkle_root": "<string>",
"leaf_count": 123,
"tree_depth": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Get on-chain status
Get the current on-chain anchoring status for an agent.
curl --request GET \
--url https://api.mnemom.ai/v1/on-chain/status/{agent_id}import requests
url = "https://api.mnemom.ai/v1/on-chain/status/{agent_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.mnemom.ai/v1/on-chain/status/{agent_id}', 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://api.mnemom.ai/v1/on-chain/status/{agent_id}",
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://api.mnemom.ai/v1/on-chain/status/{agent_id}"
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://api.mnemom.ai/v1/on-chain/status/{agent_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/on-chain/status/{agent_id}")
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{
"agent_id": "<string>",
"latest_score_publication": {
"id": "<string>",
"score": 123,
"grade": "<string>",
"tx_hash": "<string>",
"block_number": 123,
"chain": "base-sepolia",
"status": "pending",
"published_at": "2023-11-07T05:31:56Z"
},
"latest_anchor": {
"id": "<string>",
"merkle_root": "<string>",
"tx_hash": "<string>",
"block_number": 123,
"leaf_count": 123,
"tree_depth": 123,
"gas_used": 123,
"chain": "base-sepolia",
"status": "pending",
"anchored_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"merkle_tree": {
"merkle_root": "<string>",
"leaf_count": 123,
"tree_depth": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Path Parameters
Agent identifier (e.g. smolt-abc123)
Response
On-chain status for the agent, as assembled by the get_on_chain_status RPC (migrations 057/058): the agent's latest score publication, the latest confirmed anchor, and the agent's current Merkle-tree summary. Each of the three nested objects is null when no matching row exists.
The agent's most recent row in score_publications, or null when the agent has never been published.
Show child attributes
Show child attributes
The most recent confirmed on-chain anchor, or null when none is confirmed yet. (The RPC filters to status='confirmed' and omits gas_used/created_at.)
Show child attributes
Show child attributes
Summary of the agent's current Merkle tree (from agent_merkle_trees), or null when the agent has no tree.
Show child attributes
Show child attributes