BSV blockchainBSV blockchain

discoverByAttributes

POST/discoverByAttributes

Discovers certificates by attributes

Body application/json

attributesobject
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/discoverByAttributes" \
  -H "Content-Type: application/json" \
  -d '{
  "attributes": {},
  "limit": 0,
  "offset": 0,
  "seekPermission": true
}'
Response
{
  "totalCertificates": 0,
  "certificates": [
    {
      "type": "string",
      "subject": "string",
      "serialNumber": "string",
      "certifier": "string",
      "revocationOutput": "string",
      "signature": "string",
      "fields": {}
    }
  ]
}