Last updated 1 year ago
You can test your signature in x-api-signature within this method.
/api-gateway/test-signature
Public API-key
Signing the request body with a private API-key
Request content type
application/json
curl -L \ --request POST \ --url 'https://ocp.onchainpay.io/api-gateway/test-signature' \ --header 'Content-Type: application/json'
{ "success": true, "response": { "checkSignatureResult": true, "signature": "e86f22fca0ee12d29730d87a2354bde56d7e3e0137fb28ef4b24467e24b7ca66", "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"a22052e9-ce9b-4c22-98b0-73f4a7b86cfc\"}", "errors": [ "No public key passed." ] } }