BSV blockchainBSV blockchain

acquireCertificate

POST/acquireCertificate

Acquires a certificate

Body application/json

certifierstring
typestring
fieldsobject
privilegedReasonstring
privilegedboolean

Response

The acquired certificate

typestring
subjectstring
serialNumberstring
certifierstring
revocationOutputstring
signaturestring
fieldsobject

Invalid input

Internal server error

Request
curl -X POST "http://localhost:3321/acquireCertificate" \
  -H "Content-Type: application/json" \
  -d '{
  "certifier": "string",
  "type": "string",
  "fields": {},
  "privilegedReason": "string",
  "privileged": false
}'
Response
{
  "type": "string",
  "subject": "string",
  "serialNumber": "string",
  "certifier": "string",
  "revocationOutput": "string",
  "signature": "string",
  "fields": {}
}