BSV blockchainBSV blockchain

discoverByIdentityKey

POST/discoverByIdentityKey

Discovers certificates by identity key

Body application/json

identityKeystring
limitinteger
offsetinteger
seekPermissionboolean

Response

The discovered certificates

totalCertificatesnumber
certificatesobject[]
Show certificates properties
typestring
subjectstring
serialNumberstring
certifierstring
revocationOutputstring
signaturestring
fieldsobject

Invalid input

Internal server error

Request
curl -X POST "http://localhost:3321/discoverByIdentityKey" \
  -H "Content-Type: application/json" \
  -d '{
  "identityKey": "string",
  "limit": 0,
  "offset": 0,
  "seekPermission": true
}'
Response
{
  "totalCertificates": 0,
  "certificates": [
    {
      "type": "string",
      "subject": "string",
      "serialNumber": "string",
      "certifier": "string",
      "revocationOutput": "string",
      "signature": "string",
      "fields": {}
    }
  ]
}