GetActiveAgentCertificate
Retrieves the currently active (non-revoked, non-expired) agent attestation certificate for a given account.
Request
GET /nxt?requestType=getActiveAgentCertificate
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
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": ""
}
Error Codes
| Code | Description |
|---|---|
| 5 | No active agent attestation certificate found for account |
Example
curl "http://localhost:22024/nxt?requestType=getActiveAgentCertificate&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"