BSV blockchainBSV blockchain

getPublicKey

POST/getPublicKey

Retrieves the public key

Body application/json

seekPermissionboolean
identityKeyboolean
protocolIDany[]
keyIDstring
privilegedboolean
privilegedReasonstring
counterpartystring
forSelfboolean

Response

The public key

publicKeystring

Invalid input

Internal server error

Request
curl -X POST "http://localhost:3321/getPublicKey" \
  -H "Content-Type: application/json" \
  -d '{
  "seekPermission": true,
  "identityKey": true,
  "protocolID": [
    null
  ],
  "keyID": "string",
  "privileged": false,
  "privilegedReason": "string",
  "counterparty": "string",
  "forSelf": false
}'
Response
{
  "publicKey": "string"
}