Skip to main content

GetAgentCertificate

Retrieves a single agent attestation certificate by its ID.

Request

GET /nxt?requestType=getAgentCertificate

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
certificatestringCertificate ID (unsigned long)Yes
includeCountersbooleanInclude block height countersNo

Response

{
"certificate": "9876543210123456789",
"name": "AgentAttestation",
"type": "AGENT_ATTESTATION",
"account": "1234567890123456789",
"issuer": "9876543210123456789",
"issuerRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"timestamp": 1700000000,
"expirationTimestamp": 1893456000,
"signature": "hex_encoded_signature...",
"canonicalContent": "hex_encoded_content...",
"revoked": false,
"active": true,
"errorCode": 0,
"errorDescription": ""
}

Example

curl "http://localhost:22024/nxt?requestType=getAgentCertificate&certificate=9876543210123456789"