feat: Add height to namesummary
All checks were successful
Build Docker / BuildImage (push) Successful in 34s

This commit is contained in:
2025-08-22 21:03:21 +10:00
parent 499b19562d
commit 8617a819d1

View File

@@ -334,6 +334,7 @@ def api_namesummary(name):
try:
summary = {
"name": name,
"height": None,
"value": None,
"blocksUntilExpire": None,
"owner": None,
@@ -365,7 +366,7 @@ def api_namesummary(name):
summary["error"] = "Name info not found"
return jsonify(summary), 404
summary["height"] = name_info['info'].get('height', None)
summary["hash"] = name_info['info'].get('nameHash', None)
summary["state"] = name_info['info'].get('state', None)