GetDigitalCertificates
Retrieves a list of digital certificates with optional filtering by account, issuer, name, type, and active status.
Request
GET /nxt?requestType=getDigitalCertificates
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | No |
issuer | string | Issuer account ID or SHAMWARI address | No |
certificateName | string | Certificate name | No |
certificateType | string | Certificate type | No |
activeOnly | boolean | Only return active (non-revoked, non-expired) certificates | No |
firstIndex | int | Pagination start | No |
lastIndex | int | Pagination end | No |
Response
{
"certificates": [
{
"certificate": "9876543210123456789",
"name": "IdentityCert",
"type": "IDENTITY",
"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
}
],
"account": "1234567890123456789",
"issuer": "9876543210123456789",
"errorCode": 0,
"errorDescription": ""
}
Example
curl "http://localhost:22024/nxt?requestType=getDigitalCertificates&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ&activeOnly=true"